/* SVD programme image gallery */
.svd-programme-gallery {
    margin: 2.4rem 0 2.8rem;
}
.svd-programme-gallery__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .7rem;
}
.svd-programme-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 5px;
    background: #f2f3f4;
}
.svd-programme-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.svd-programme-gallery__item:hover img,
.svd-programme-gallery__item:focus img {
    transform: scale(1.035);
}
.svd-programme-gallery__zoom {
    position: absolute;
    right: .55rem;
    bottom: .55rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #26384a;
    font-size: 1.3rem;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.svd-programme-gallery__hint {
    margin: .6rem 0 0;
    text-align: right;
    font-size: .88em;
    opacity: .68;
}

.svd-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 5vw;
    background: rgba(8, 12, 16, .92);
}
.svd-gallery-lightbox.is-open {
    display: flex;
}
.svd-gallery-lightbox__figure {
    margin: 0;
    max-width: min(92vw, 1500px);
    max-height: 90vh;
    text-align: center;
}
.svd-gallery-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}
.svd-gallery-lightbox__caption {
    margin-top: .8rem;
    color: #fff;
    font-size: .95rem;
}
.svd-gallery-lightbox__close,
.svd-gallery-lightbox__prev,
.svd-gallery-lightbox__next {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    width: 3rem;
    height: 3rem;
    font-size: 1.8rem;
    line-height: 1;
}
.svd-gallery-lightbox__close { top: 1.1rem; right: 1.1rem; }
.svd-gallery-lightbox__prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.svd-gallery-lightbox__next { right: 1.1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
    .svd-programme-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .svd-programme-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .svd-programme-gallery__item:first-child {
        grid-column: span 2;
    }
    .svd-gallery-lightbox {
        padding: 3.5rem .8rem 1rem;
    }
    .svd-gallery-lightbox__prev,
    .svd-gallery-lightbox__next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }
}
