.jc-photo-gallery-section {
    padding: 22px 0 44px;
    background: #030a10;
}

/* Match the deliberately inset width of the page banner above. */
.cg-jc-page .jc-photo-gallery-section .cg-container {
    width: min(1180px, calc(100% - 48px));
    max-width: none;
    margin-inline: auto;
}

.jc-photo-gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.jc-photo-gallery-item {
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid rgba(67, 229, 164, .28);
    border-radius: 9px;
    background: #071522;
}

.jc-photo-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.jc-photo-gallery-item:hover img,
.jc-photo-gallery-item:focus-visible img {
    opacity: .9;
    transform: scale(1.04);
}

.jc-photo-gallery-item:focus-visible {
    outline: 2px solid #43e5a4;
    outline-offset: 3px;
}

body.cg-lightbox-open { overflow: hidden; }
.jc-photo-lightbox[hidden] { display: none; }
.jc-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    place-items: center;
    padding: 2rem 4.5rem;
    background: rgba(1, 5, 9, .92);
}

.jc-photo-lightbox figure {
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 4rem);
    margin: 0;
    text-align: center;
}

.jc-photo-lightbox figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    margin: auto;
    border-radius: 9px;
    object-fit: contain;
}

.jc-photo-lightbox figcaption {
    margin-top: .9rem;
    color: #d9e1e9;
    font-family: Inter, Arial, sans-serif;
    font-size: .9rem;
}

.jc-photo-lightbox-close,
.jc-photo-lightbox-nav {
    position: absolute;
    border: 0;
    padding: .75rem;
    color: #fff;
    background: transparent;
    font-family: Inter, Arial, sans-serif;
    line-height: 1;
    cursor: pointer;
}

.jc-photo-lightbox-close { top: 1rem; right: 1.3rem; font-size: 2.6rem; }
.jc-photo-lightbox-nav { top: 50%; font-size: 4rem; transform: translateY(-50%); }
.jc-photo-lightbox-prev { left: 1rem; }
.jc-photo-lightbox-next { right: 1rem; }

@media (max-width: 767px) {
    .jc-photo-gallery-section { padding: 16px 0 34px; }
    .jc-photo-gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .jc-photo-gallery-item:last-child { grid-column: 1 / -1; }
    .jc-photo-lightbox { padding: 1.25rem 2.75rem; }
    .jc-photo-lightbox figure img { max-height: calc(100vh - 6rem); }
    .jc-photo-lightbox-close { top: .4rem; right: .65rem; }
    .jc-photo-lightbox-nav { padding: .35rem; font-size: 2.8rem; }
    .jc-photo-lightbox-prev { left: .1rem; }
    .jc-photo-lightbox-next { right: .1rem; }
}
