.youtube-video-container {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    align-items: center;
    width: 100%;
    height: auto;
    /* Seems to sets height to the smallest content - iframe in this case */

    transition: grid-template-columns 0.5s ease;
}

.youtube-video-container-center iframe {
    aspect-ratio: 16/9;
    /* max-width: 1200px; */
    height: auto;
}

.youtube-video-container-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.youtube-video-container-left {
    background-image: url('../images/webp/10.webp');
    background-position: center;
    background-size: cover;

    width: 100%;
    height: 100%;
}

.youtube-video-container-right {
    background-image: url('../images/webp/12.webp');
    background-position: center;
    background-size: cover;

    width: 100%;
    height: 100%;
}

@media screen and (max-width: 1388px) {
    /* once screen width below 1200px change the template to exclude the left and right divs so the video can take the full width */
    /* 1200px is the max-width of the iframe */
    .youtube-video-container {
        grid-template-columns: 0fr 1fr 0fr;
    }
} 








.info-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.info-container-join {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    background-image: var(--gradient-light);
    border: 0.125rem solid var(--highlight-colour);
    border-radius: var(--radius1);

    transition: width 0.5s ease;
}

.info-container-join li {
    text-align: left;
}

.info-container-join-links {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1rem;
}

.info-container-join-links a img {
    height: var(--nav-height);
    width: var(--nav-height);

    transition: scale 0.5s ease, filter 0.5s ease;
}

.info-container-join-links a img:hover {
    scale: 1.1;
    filter: brightness(130%);
}

.info-container-join a {
    color: white;
    transition: color 0.2s ease;
}

.info-container-join a:hover {
    color: var(--highlight-colour);
}













/* === JOIN PAGE: ACTIVITIES SLIDESHOW ABOVE HOW-TO-JOIN === */
/* Wrapper matches join section width and centers it */
.join-activities-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.join-activities {
    margin: 1.5rem;
    margin-bottom: 0;
    width: 100%;
}

/* Slideshow frame */
.join-slideshow {
    position: relative;
    width: 100%;
    border-radius: var(--radius1);
    overflow: hidden;
    /* background: greenyellow; */
}

/* Visible window */
.join-slideshow .viewport {
    height: 40vh;
    min-height: 260px;
    max-height: 420px;
    overflow: hidden;
}

/* Slides row */
.join-slideshow .slides {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 1.5rem;                 /* space between cards */
    box-sizing: border-box;
}

/* Each slide container */
.join-slideshow .slide {
    flex: 1 1 0;
    display: flex;
    opacity: 0.85;
    transition: opacity 180ms ease;
}

.join-slideshow .slide.visible {
    opacity: 1;
}

/* Hidden slides are completely removed from layout */
.join-slideshow .slide.hidden {
    display: none;
}


/* Card itself – style to match join info box */
.activity-card {
    width: 100%;
    border-radius: var(--radius1);
    background-image: var(--gradient-light);
    border: 0.125rem solid var(--highlight-colour);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    color: white;
    overflow-y: auto;
}

/* Card text */
.activity-card h2 {
    margin: 0 0 0.5rem;
    font-family: 'Obsidian', Arial, sans-serif;
    /* font-size: clamp(1.4rem, 1.1rem + 0.8vw, 2rem); */
}

.activity-card p {
    margin: 0;
    /* font-size: 0.95rem; */
}

/* Controls – same look & feel as your prototype */
.join-slideshow .control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: white;
    border: 0;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    outline: none;

    border: 0.125rem solid var(--highlight-colour);
    border-radius: var(--radius1);
}

.join-slideshow .control:hover,
.join-slideshow .control:focus-visible {
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.join-slideshow .control:active {
    transform: translateY(-50%) scale(0.98);
}

.join-slideshow .control.prev {
    left: 10px;
}

.join-slideshow .control.next {
    right: 10px;
}

/* Play/pause button centred at bottom */
.join-slideshow .control.playpause {
    top: auto;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 0);
    width: auto;
    min-width: 44px;
    padding: 8px 14px;
    font-weight: 600;
    gap: 8px;
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    /* border-radius: 999px; */
    letter-spacing: 0.2px;
}

.join-slideshow .icon {
    font-size: 20px;
    line-height: 1;
}

.join-slideshow .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive: adjust height & visible count via JS breakpoints */
@media (max-width: 1388px) {
    .join-slideshow .viewport {
        /* height: 36vh; */
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .join-slideshow .viewport {
        /* height: 32vh; */
        min-height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .join-slideshow .slide,
    .join-slideshow .control {
        transition: none;
    }
}


