/* Youthville podcast archive and single templates */
.yv-podcast-container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
    padding-block: 36px;
}


/* Guest heading */
.yv-single-podcast-header {
    margin-bottom: 24px;
}

.yv-single-podcast-header h1 {
    margin: 0 0 5px;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family:  "Merriweather", Sans-serif;
}

.yv-podcast-guest-details {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.yv-podcast-separator {
    padding: 0 4px;
}

/* Gallery layout */
.yv-podcast-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yv-podcast-main {
    width: 100%;
}

.yv-podcast-main > img,
.yv-podcast-main-trigger img {
    display: block;
    width: 100%;
    height: auto;
}

.yv-podcast-main-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.yv-podcast-main-trigger img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Three thumbnails underneath */
.yv-podcast-bottom-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.yv-podcast-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.yv-podcast-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    transition: transform .3s ease;
}

.yv-podcast-gallery-item:hover img {
    transform: scale(1.04);
}

/* Play buttons */
.yv-podcast-main-trigger .yv-podcast-play,
.yv-podcast-gallery-item .yv-podcast-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 42px;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background: #f00;
    color: #fff;
    font-size: 22px;
    pointer-events: none;
}

/* Description */
.yv-podcast-description {
    margin-top: 30px;
    font-size: 15px;
    line-height: 1.8;
}

/* Mobile */
@media (max-width: 767px) {
    .yv-podcast-container {
        width: calc(100% - 30px);
    }

    .yv-single-podcast-header {
        margin-bottom: 18px;
    }

    .yv-single-podcast-header h1 {
        font-size: 25px;
    }

    .yv-podcast-guest-details {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .yv-podcast-gallery {
        gap: 12px;
    }

    .yv-podcast-bottom-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .yv-podcast-description {
        margin-top: 22px;
    }
}





/* YouTube popup overlay */
.yv-video-modal {
    position: fixed !important;
    inset: 0;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.yv-video-modal.is-open {
    display: flex !important;
}

/* Dark background */
.yv-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

/* Popup container */
.yv-video-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 1000px);
    max-width: 1000px;
    margin: auto;
    background: #000;
    overflow: visible;
}

/* Responsive 16:9 video */
.yv-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.yv-video-frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Close button */
.yv-video-close {
    position: absolute;
    top: -42px;
    right: 0;
    z-index: 5;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.yv-video-modal-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 767px) {
    .yv-video-modal {
        padding: 15px;
    }

    .yv-video-modal-dialog {
        width: 100%;
    }

    .yv-video-close {
        top: -42px;
    }
}