/* Video and Podcast Block Styles */

[data-name='acf_video-and-podcast'] .video-podcast__splide {
  position: relative;
  width: 100%;
}

[data-name='acf_video-and-podcast'] .video-podcast__splide .splide__track {
  width: 100%;
}

[data-name='acf_video-and-podcast'] .video-podcast__splide .splide__slide {
  min-height: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  @apply transition-all duration-500 [transition-timing-function:var(--cfeasing)];
}

[data-name='acf_video-and-podcast'] .video-podcast__splide .splide__list {
  @apply items-stretch;
}

[data-name='acf_video-and-podcast'] .video-podcast__card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

[data-name='acf_video-and-podcast'] .video-podcast__image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  min-height: 200px;
  border-radius: 8px;
}

[data-name='acf_video-and-podcast'] .video-podcast__image-container img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-name='acf_video-and-podcast'] .video-podcast__tag-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  background-color: var(--colororange);
  color: var(--coloryellow);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.48px;
  padding: 5px 8px;
  border-radius: 4px;
  line-height: 1;
  font-family: var(--fontprompt);
}

[data-name='acf_video-and-podcast'] .video-podcast__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
}

[data-name='acf_video-and-podcast'] .video-podcast__play-button {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
  margin-top: auto;
  border: none;
  background: none;
  padding: 0;
}

[data-name='acf_video-and-podcast'] .video-podcast__play-button:hover {
  color: var(--colororange);
}

[data-name='acf_video-and-podcast'] .video-podcast__play-button svg {
  flex-shrink: 0;
}

[data-name='acf_video-and-podcast'] .container {
  @apply pr-0 mr-0 pl-[25px] b480:pr-[20px] b480:mx-auto;
}

[data-name='acf_video-and-podcast'] .video-podcast__carousel-wrapper {
  padding-left: 0;
  padding-right: 0;
}

/* Video Modal Styles */
[data-name='acf_video-and-podcast'] .video-podcast__modal {
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

[data-name='acf_video-and-podcast'] .video-podcast__modal-content {
  animation: scaleIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

[data-name='acf_video-and-podcast'] .video-podcast__play-button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

[data-name='acf_video-and-podcast'] .video-podcast__play-button:focus {
  outline: 2px solid var(--coloryellow);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  [data-name='acf_video-and-podcast'] .video-podcast__modal-content {
    @apply max-w-[95vw] max-h-[95vh];
  }
}

@media (min-width: 1550px) {
  [data-name='acf_video-and-podcast'] .container {
    @apply mx-auto;
  }
}
