/* Container for oEmbed video */
.oembed_container,
.embed_container {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* Wrapper for maintaining aspect ratio */
.iframe_wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

/* Responsive iframe styling */
.oembed_container_iframe,
.iframe_wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0; /* Remove default border */
}

/* Thumbnail for custom preview */
.oembed_custom-thumbnail,
.oembed_custom-thumbnail:hover,
.oembed_custom-thumbnail:focus,
.oembed_custom-thumbnail:active {
  align-items: center;
  background-color: transparent;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  height: 100%;
  justify-content: center;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

/* Icon on custom thumbnail */
.oembed_custom-thumbnail_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.oembed_custom-thumbnail_icon svg {
  display: block;
  height: auto;
  width: 12%;
}

/* Handle IE11-specific scaling issues for SVGs */
_:-ms-fullscreen, :root .oembed_custom-thumbnail_icon svg {
