/* =====================================================
   PHOTOGRAPHY — Redesigned: dark cinematic layout
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --ph-amber:      #f59e0b;
    --ph-amber-deep: #d97706;
    --ph-gold:       #fbbf24;
    --ph-dark:       #0c0a06;
    --ph-surface:    #141210;
    --ph-card:       #1e1b16;
    --ph-ink:        #c8b89a;
    --ph-muted:      #7a6a55;
    --ph-border:     rgba(245,158,11,0.18);
}

/* ── PAGE HERO ── */
.page-hero--photography {
    position: relative;
    background: var(--ph-dark);
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.page-hero--photography::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(245,158,11,0.14) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(217,119,6,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero--photography::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ph-amber), var(--ph-gold), var(--ph-amber), transparent);
}

.page-hero--photography h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    position: relative;
}

.page-hero__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--ph-ink);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

/* ── GALLERY ── */
.page-section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.page-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a0a00;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

/* Filter pills */
.nav-pills .nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ph-muted);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid var(--ph-border);
    background: transparent;
    transition: all 0.2s;
}
.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background: var(--ph-amber);
    border-color: var(--ph-amber);
    color: #fff;
}

/* ── PHOTO VIEWER ── */
.photo-viewer-frame {
    position: relative;
    background: #0a0806;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    max-height: 72vh;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.photo-viewer {
    width: 100%; height: 100%;
    position: relative;
}

.photo-viewer-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer-item.is-active { opacity: 1; z-index: 2; }

.photo-viewer-image {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.photo-viewer-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: #fff;
}

.photo-viewer-caption h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 0.25rem;
}

.photo-viewer-caption p { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin: 0; }

/* Controls */
.photo-viewer-control {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.4rem;
    transition: background 0.2s;
}
.photo-viewer-control:hover { background: rgba(245,158,11,0.7); }
.photo-viewer-control-prev { left: 1rem; }
.photo-viewer-control-next { right: 1rem; }
.photo-viewer-control-fullscreen { top: 1rem; right: 1rem; transform: none; font-size: 1rem; }

/* Fullscreen overlay */
.photo-fs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.96);
    align-items: center;
    justify-content: center;
}
.photo-fs-overlay[aria-hidden="false"] {
    display: flex;
}

/* Centred image — pointer-events:none so clicks pass through to buttons */
.photo-fs-overlay .photo-fs-image {
    max-width: 92vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    pointer-events: none;   /* let clicks reach backdrop / buttons */
}
.photo-fs-btn {
    position: absolute;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 50%;
    width: 54px; height: 54px;
    font-size: 1.6rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.15s;
    z-index: 100000;   /* well above the image */
}
.photo-fs-btn:hover { background: rgba(245,158,11,0.6); }
.photo-fs-exit { top: 1.25rem; right: 1.25rem; }
.photo-fs-prev { top: 50%; left: 1.25rem; transform: translateY(-50%); }
.photo-fs-next { top: 50%; right: 1.25rem; transform: translateY(-50%); }

/* ── CONTACT SECTION ── */
.page-section--contact {
    background: linear-gradient(135deg, #0c0a06, #1c1408, #2d1a00);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 20px;
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.page-section--contact h2 {
    font-family: 'Playfair Display', serif;
    color: #fff; font-size: 1.8rem; margin-bottom: 0.75rem;
}
.page-section--contact p { color: rgba(255,255,255,0.7); }
.contact-cta a, .contact-cta .btn-primary {
    display: inline-block;
    background: var(--ph-amber);
    color: #fff;
    padding: 0.7rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: background 0.2s, transform 0.15s;
}
.contact-cta a:hover { background: var(--ph-amber-deep); transform: translateY(-1px); }
