/* Gallery page hero — smooth light-to-dark gradient (readable text left, van depth right) */
.page-banner.page-banner--has-bg::before {
    background: linear-gradient(
        90deg,
        rgba(255, 248, 232, 0.92) 0%,
        rgba(255, 248, 232, 0.84) 20%,
        rgba(248, 240, 220, 0.72) 35%,
        rgba(230, 220, 205, 0.58) 48%,
        rgba(200, 192, 178, 0.46) 60%,
        rgba(150, 142, 132, 0.36) 72%,
        rgba(90, 84, 76, 0.28) 84%,
        rgba(19, 26, 34, 0.22) 100%
    ) !important;
}

/* Gallery hero description — darker than body grey, not full black */
.page-banner .page-banner-text {
    color: #3f474f;
}

/* Gallery — responsive tile grid + hover + lightbox, styled with site tokens */
.se-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 991px) { .se-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 520px)  { .se-gallery-grid { grid-template-columns: 1fr; } }

.se-gal-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow: hidden;
    background: var(--smoke-color);
    cursor: pointer;
}
.se-gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.se-gal-item:hover img { transform: scale(1.08); }

.se-gal-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background: linear-gradient(to top, rgba(19,26,34,0.82), rgba(19,26,34,0.10) 55%, rgba(19,26,34,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.se-gal-item:hover .se-gal-overlay { opacity: 1; }
.se-gal-cap {
    color: #fff;
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    transform: translateY(10px);
    transition: transform 0.45s ease;
}
.se-gal-item:hover .se-gal-cap { transform: none; }
.se-gal-zoom { display: none; }

/* Lightbox */
.se-lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 11, 15, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.se-lb.open { opacity: 1; visibility: visible; }
.se-lb-figure { max-width: 92vw; max-height: 88vh; text-align: center; }
.se-lb-figure img {
    max-width: 92vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.se-lb-cap { color: #fff; font-family: var(--title-font); font-weight: 600; font-size: 16px; margin-top: 18px; }
.se-lb-btn {
    position: absolute;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}
.se-lb-btn:hover { background: var(--theme-color); color: var(--title-color); }
.se-lb-close { top: 26px; right: 26px; }
.se-lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.se-lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575px) {
    .se-lb-prev { left: 12px; }
    .se-lb-next { right: 12px; }
    .se-lb-btn { width: 46px; height: 46px; }
}
