.its-gallery {
    width: 100%;
    padding: clamp(2.5rem, 5vw, 4.5rem) 1rem;
    background: var(--its-background, #fff);
}

.its-gallery__inner {
    width: min(calc(100% - 1rem), var(--its-content-width, 1100px));
    margin-inline: auto;
}

.its-gallery__heading {
    margin: 0 0 .75rem;
    color: var(--its-text, #20262d);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.its-gallery__intro {
    max-width: 48rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.its-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.its-gallery__item {
    min-width: 0;
    margin: 0;
}

.its-gallery__item--lead {
    grid-column: 1 / -1;
}

.its-gallery__open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
    cursor: zoom-in;
}

.its-gallery__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--its-surface, #f4f6f8);
}

.its-gallery__item--lead .its-gallery__image {
    aspect-ratio: 16 / 7;
}

.its-gallery__open .its-gallery__image {
    border-radius: 0;
    transition: transform .2s ease;
}

.its-gallery__open:hover .its-gallery__image,
.its-gallery__open:focus-visible .its-gallery__image {
    transform: scale(1.015);
}

.its-gallery__open:focus-visible {
    outline: 3px solid var(--its-primary, #003f73);
    outline-offset: 3px;
}

.its-gallery__caption {
    display: grid;
    gap: .2rem;
    padding: .6rem .2rem 0;
    color: var(--its-text, #20262d);
    font-size: .9rem;
    line-height: 1.4;
}

.its-gallery__title {
    font-size: .98rem;
}

.its-gallery__description {
    opacity: .85;
}

.its-gallery__source {
    font-size: .75rem;
    opacity: .65;
}

.its-gallery-lightbox {
    width: min(94vw, 1200px);
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #111;
    color: #fff;
}

.its-gallery-lightbox::backdrop {
    background: rgba(0, 0, 0, .82);
}

.its-gallery-lightbox__bar {
    display: flex;
    justify-content: flex-end;
    padding: .7rem;
}

.its-gallery-lightbox__close,
.its-gallery-lightbox__nav {
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
}

.its-gallery-lightbox__close {
    padding: .55rem .8rem;
    border-radius: .4rem;
}

.its-gallery-lightbox__stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    min-height: min(72vh, 780px);
}

.its-gallery-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    margin: auto;
    object-fit: contain;
}

.its-gallery-lightbox__nav {
    width: 3rem;
    height: 4rem;
    font-size: 2.3rem;
}

.its-gallery-lightbox__caption {
    min-height: 2.5rem;
    padding: .85rem 1rem 1rem;
    text-align: center;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .its-gallery {
        padding: 2rem .75rem;
    }

    .its-gallery__inner {
        width: 100%;
    }

    .its-gallery__grid {
        grid-template-columns: 1fr 1fr;
        gap: .65rem;
    }

    .its-gallery__item--lead {
        grid-column: 1 / -1;
    }

    .its-gallery__image {
        aspect-ratio: 1 / 1;
        border-radius: .8rem;
    }

    .its-gallery__item--lead .its-gallery__image {
        aspect-ratio: 16 / 10;
    }

    .its-gallery-lightbox {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .its-gallery-lightbox__stage {
        min-height: calc(100vh - 8rem);
        grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    }

    .its-gallery-lightbox__nav {
        width: 2.5rem;
        height: 3.5rem;
    }
}
