.photogallery-section {
    padding-bottom: 100px;
}

.photogallery-related {
    padding-top: 40px;
}

.photogallery-album-link {
    margin-top: 30px;
    text-align: center;
}

.photogallery-intro {
    max-width: 960px;
    margin-bottom: 40px;
}

.photogallery-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--primary-black);
    font-family: var(--font-Outfit);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.photogallery-description {
    margin-top: 20px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.photogallery-description > :last-child {
    margin-bottom: 0;
}

.photogallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
}

.photogallery-photo {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f2f2;
}

.photogallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.photogallery-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--primary-color);
    color: var(--primary-black);
    font-size: 22px;
    transition: background .25s ease, color .25s ease;
}

.photogallery-photo:hover img,
.photogallery-photo:focus-visible img {
    transform: scale(1.05);
}

.photogallery-photo:focus-visible {
    outline: 3px solid #0046aa;
    outline-offset: 4px;
}

.photogallery-photo:hover .photogallery-zoom {
    background: #0046aa;
    color: #fff;
}

.photogallery-empty {
    padding: 24px;
    border-left: 4px solid var(--primary-color);
    background: #f7f7f7;
}

.photogallery-lightbox #cboxLoadedContent {
    margin-bottom: 44px;
}

.photogallery-lightbox-caption #cboxLoadedContent {
    margin-bottom: 100px;
}

.photogallery-lightbox #cboxCurrent {
    bottom: 0;
    height: 25px;
    line-height: 25px;
}

.photogallery-lightbox #cboxTitle {
    box-sizing: border-box;
    bottom: 42px;
    max-height: 52px;
    padding: 0 12px;
    overflow-y: auto;
    overflow-wrap: anywhere;
    color: #222;
    font-family: var(--font-DM-Sans);
    font-size: 15px;
    line-height: 1.4;
    white-space: pre-line;
}

.photogallery-lightbox .photogallery-download {
    position: absolute;
    right: 32px;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 10px;
    background: var(--primary-color);
    color: var(--primary-black);
    font-family: var(--font-Outfit);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
}

.photogallery-lightbox .photogallery-download:hover {
    background: #0046aa;
    color: #fff;
}

.photogallery-lightbox .photogallery-download:focus-visible {
    outline: 2px solid #0046aa;
    outline-offset: 2px;
}

@media (max-width: 1199px) {
    .photogallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .photogallery-section {
        padding-bottom: 60px;
    }

    .photogallery-intro {
        margin-bottom: 28px;
    }

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

    .photogallery-zoom {
        right: 8px;
        bottom: 8px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .photogallery-photo img,
    .photogallery-zoom {
        transition: none;
    }
}
