.yt-container {
  /* This creates the 16:9 aspect ratio container */
  width: 100%;
  padding-top: 56.25%; /* (9 / 16) * 100 = 56.25% */
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  margin-bottom: 4px;
}

.yt-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  border-radius: 20px;
  object-fit: cover !important;
  object-position: center !important;
}

.video-carousel-wrapper .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9/16 * 100) */
    height: 0;
    overflow: hidden;
}

.video-carousel-wrapper .video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
}

.video-carousel-wrapper .slick-slide {
    padding: 0 5px; /* Adjust spacing between slides */
}

/* Slick Slider specific styles for navigation arrows */
.video-carousel-wrapper .slick-prev,
.video-carousel-wrapper .slick-next {
    font-size: 0; /* Hide default text */
    line-height: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-100%);
    display: block;
    width: 25px;
    height: 100px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background-color: #FFAB00; /* Primary button color */
    border-radius: 4px;
    z-index: 2;
    transition: background-color 0.2s ease-in-out; /* Smooth hover effect */
}

.video-carousel-wrapper .slick-prev {
    left: 0;
    
}

.video-carousel-wrapper .slick-next {
    right: 0;
}

/* Font Awesome icons for slick arrows */
.video-carousel-wrapper .slick-prev::before,
.video-carousel-wrapper .slick-next::before {
    font-size: 18px;
    color: #FFFFFF;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    line-height: 1.6;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-carousel-wrapper .slick-prev::before {
    content: "\f104"; /* Chevron left icon */
}

.video-carousel-wrapper .slick-next::before {
    content: "\f105"; /* Chevron right icon */
}

.video-carousel-wrapper .slick-prev:hover,
.video-carousel-wrapper .slick-next:hover {
    background-color: #E5A300; /* Darker on hover */
}

.video-carousel-wrapper .slick-prev:hover::before,
.video-carousel-wrapper .slick-next:hover::before {
    color: #FFFFFF;
}

.video-carousel-wrapper .carousel-container {
    width: 100%;
    margin: auto;
    padding-top: 0;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 0;
}

.video-carousel-wrapper .slide-card {
    padding: 0;
    margin-top: 0px;
    margin-bottom: 10px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.video-carousel-wrapper .slide-card img {
    /* width: 100%;
    height: auto;
    margin-top: 3px;
    border-radius: 20px; */

}

.video-carousel-wrapper .slide-card h5 {
    font-size: 0.9rem;
    text-align: left;
}

.video-carousel-wrapper .badge-container {
    padding: 5px 0;
    line-height: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-carousel-wrapper .video-badge {
    font-size: 0.7rem;
    font-weight: normal;
    background-color: #a60a0a;
    color: #fff;
    padding: 0.25em 0.4em;
}

.video-carousel-wrapper .video-date {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 4px;
}

.video-title {
    font-size: 1em !important;
}

#customBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/dist/img/modal_background_grass.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#customBackdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Desktop Modal View (Default, >=992px) */
.modal-dialog {
    max-width: 950px;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 3.5rem);
}

.modal-content {
    background-color: transparent;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background-color: transparent;
    border: none;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    color: #fff;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-header .btn-share {
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    text-align: center;
}

.modal-header .btn-share span {
    display: none;
}

.modal-header .share-placeholder {
    color: white;
}

.modal-body {
    padding: 0;
    line-height: 0;
}

.modal-text-container {
    padding: 20px;
    color: #fff;
    background-color: transparent;
}

media-controller,
youtube-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 25px;
}

.modal-title-and-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-container {
  border-radius: 25px;
  overflow: hidden;
}

/* LIVE Badge Style - For Carousel */
.video-carousel-wrapper .slide-card .live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
    z-index: 5;
    text-transform: uppercase;
}

/* LIVE Badge Style - For Modal */
.modal-live-badge {
    background-color: red;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    visibility: hidden; /* This hides the element while keeping its space */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal-live-badge.show {
    visibility: visible;
    opacity: 1;
}

/* Portrait Mobile View (<576px) */
@media (max-width: 575.98px) {
    .modal-dialog {
        max-width: 100vw;
        margin: 0;
        height: 100%;
    }

    .modal-content {
        background-color: transparent;
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        display: block;
        flex-grow: 0;
    }

    .modal-header {
        position: static;
        background-color: transparent;
        justify-content: flex-end;
        padding: 1rem;
    }

    .modal-header .modal-title-and-buttons {
        display: flex;
    }

    .modal-text-container {
        color: #fff;
        padding: 10px;
        
        border-radius: 10px;
        margin-top: 10px;
    }

    .modal-live-badge {
        display: none !important;
    }
}

/* Landscape Mobile View (<992px and landscape) */
@media screen and (max-width: 991.98px) and (orientation: landscape) {
    .modal-dialog {
        max-width: 100vw;
        height: 100vh;
        margin: 0;
    }

    .modal-content {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        background-color: transparent;
        padding: 0;
    }

    .modal-body {
        width: 100%;
        height: 100%;
        padding: 20px;
        box-sizing: border-box;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }

    media-controller,
    youtube-video {
        width: 70vw;
        height: 100%;
        object-fit: cover;
        border-radius: 15px;
        margin: 0;
    }

    .modal-header {
        position: absolute;
        top: 20px;
        right: 20px;
        padding: 0;
        z-index: 1051;
        justify-content: flex-end;
    }

    .modal-header .modal-title-and-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .modal-text-container {
        display: none;
    }

    .modal-live-badge {
        display: none !important;
    }
}

/* Zoom effect for larger screens */
@media (min-width: 992px) {

}