/* RWU Vertical Video Component Styling */

/* YouTube Vertical Video Styling */
.paragraph--type--rwu-components-vertical-video iframe[src*="youtube"] {
  border: none;
}
/* Vimeo Vertical Video Styling */
.paragraph--type--rwu-components-vertical-video iframe[src*="vimeo"] {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50vw;
    height: 75vh;
    transform: translate(-50%, -50%) scale(2);
    object-fit: cover;
    background-color: #000 !important;
    transition: opacity 0.2s ease;
}

/* Prevent white flash during Vimeo loading */
.paragraph--type--rwu-components-vertical-video iframe[src*="vimeo"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: -1;
}

/* Container background for Vimeo videos */
.paragraph--type--rwu-components-vertical-video .media-wrapper {
    background-color: #000;
}
button.ytp-large-play-button.ytp-button.ytp-large-play-button-red-bg {
    display: none !important;
}
iframe.media-oembed-content {
    max-width: unset !important;
}
.vertical-video-grid .responsive-video-iframe {
    overflow: hidden;
}
/* Vimeo Vertical Video Container */
.paragraph--type--rwu-components-vertical-video .vimeo-vertical-container {
  position: relative;
  width: 399px;
  height: 550px;
  overflow: hidden;
  display: inline-block;
}

.paragraph--type--rwu-components-vertical-video .media-wrapper {
  position: relative;
  display: inline-block;
}

/* Responsive adjustments for vertical video */
@media (max-width: 768px) {
  .paragraph--type--rwu-components-vertical-video iframe {
    width: 100vw;
    height: 56vh;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@media (max-width: 480px) {
  .paragraph--type--rwu-components-vertical-video iframe {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Loading state styling for vertical video */
.paragraph--type--rwu-components-vertical-video .media-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: -1;
}
