/* =============================================
   Photo Gallery page — extracted from PhotoGallery.aspx inline <style>
   All rules scoped under .page-photo-gallery.
   ============================================= */

/* ── Section heading ── */
.page-photo-gallery .gallery-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0 8px;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--main-color);
    display: inline-block;
}

/* ── Photo card ── */
.page-photo-gallery .photo-gallery figure {
    position: relative;
    margin: 0;
    overflow: hidden;
}
.page-photo-gallery .photo-gallery figure img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.page-photo-gallery .photo-gallery figure:hover img {
    transform: scale(1.05);
}
.page-photo-gallery .photo-gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    padding: 18px 12px 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.page-photo-gallery .photo-gallery figcaption span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 2px;
}

/* =============================================
   Mobile hero banner — overlay text on image with gradient scrim (≤991.98px)
   ============================================= */
@media (max-width: 991.98px) {
    .page-photo-gallery .sisf-banner {
        margin-top: 0 !important;
        position: relative;
        overflow: hidden;
    }
    .page-photo-gallery .sisf-banner .banner-img { position: relative; }
    .page-photo-gallery .sisf-banner .banner-img > div { display: none !important; }
    .page-photo-gallery .sisf-banner .banner-img figure { margin: 0; }
    .page-photo-gallery .sisf-banner .banner-img img {
        width: 100%;
        height: 420px;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    .page-photo-gallery .sisf-banner .banner-img::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.85) 100%);
        pointer-events: none;
        z-index: 1;
    }
    .page-photo-gallery .sisf-banner .sisf-page-title {
        position: absolute !important;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 24px 20px 36px;
        background: transparent;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        z-index: 2;
    }
    .page-photo-gallery .sisf-banner .sisf-page-title h1,
    .page-photo-gallery .sisf-banner .sisf-page-title .sisf-m-title,
    .page-photo-gallery .sisf-banner .sisf-page-title .entry-title {
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        color: #fff !important;
    }
}
@media (max-width: 480px) {
    .page-photo-gallery .sisf-banner .banner-img img { height: 380px; }
    .page-photo-gallery .sisf-banner .sisf-page-title h1,
    .page-photo-gallery .sisf-banner .sisf-page-title .sisf-m-title,
    .page-photo-gallery .sisf-banner .sisf-page-title .entry-title { font-size: 28px !important; }
}
