/*
Theme Name: Panzeri Portfolio
Theme URI: https://example.com
Author: Your Name
Description: Dark, editorial one-page DP/videographer portfolio with an on-site video lightbox, plus two unlisted page templates (wedding films, vertical social content) for sending private links to studios and clients.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: panzeri-portfolio
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0a;
    --fg: #f0ede8;
    --muted: #666;
    --nav-h: 56px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    overflow-x: hidden;
}

a { color: inherit; }

/* ── NAV (homepage) ── */
nav.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 100;
}

nav.site-nav .wordmark {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--fg);
}

nav.site-nav .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav.site-nav .nav-links a {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s;
}

nav.site-nav .nav-links a:hover { color: var(--fg); }

/* ── Simple header (unlisted pages) ── */
header.simple-header {
    padding: 40px 28px 32px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

header.simple-header .wordmark {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

header.simple-header .tag {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid #2a2a2a;
    padding: 6px 12px;
}

.intro {
    max-width: 640px;
    padding: 56px 28px 8px;
    margin: 0 auto;
}

.intro p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

/* ── HERO ── */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: flex-end;
    padding: 0 28px 48px;
}

#hero video,
#hero .hero-fallback,
#hero .yt-bg-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

#hero .hero-fallback {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 60%, #1c1410 100%);
}

#hero .yt-bg-wrap { overflow: hidden; z-index: 0; }
#hero .yt-bg-wrap iframe {
    position: absolute; top: 50%; left: 50%;
    width: 177.78vh; min-width: 100%;
    height: 100vh; min-height: 56.25vw;
    transform: translate(-50%, -50%);
    border: 0;
}

#hero .hero-text {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.05;
}

#hero h1 em {
    font-style: normal;
    color: var(--muted);
}

#hero .hero-sub {
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── REEL ── */
#reel {
    padding: 100px 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}

.reel-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #111;
    cursor: pointer;
}

.reel-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--muted);
}

.reel-placeholder .play-icon {
    width: 56px;
    height: 56px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-placeholder .play-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--muted);
    margin-left: 3px;
}

.reel-placeholder span {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ── WORKS GRID (homepage) ── */
#works { padding: 0 0 100px; }
#works .section-label {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 0 28px;
}

.grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
    gap: 3px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.grid-item.span-8 { grid-column: span 8; }
.grid-item.span-4 { grid-column: span 4; }
.grid-item.span-6 { grid-column: span 6; }

.grid-item .thumb {
    display: block;
    width: 100%;
    padding-bottom: 60%;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 60%, #1c1410 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s;
}

.grid-item.span-4 .thumb { padding-bottom: 100%; }
.grid-item.span-6 .thumb { padding-bottom: 75%; }

.grid-item:hover .thumb { transform: scale(1.04); opacity: 0.6; }

.grid-item .info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s, transform 0.3s;
}

.grid-item:hover .info { opacity: 1; transform: translateY(0); }

.info .title { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.info .meta { margin-top: 4px; font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }

/* ── WEDDING GRID (unlisted) ── */
.grid--wedding {
    max-width: 1100px;
    margin: 56px auto 100px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    align-items: start;
}
.grid--wedding .grid-item .thumb { padding-bottom: 60%; }
.grid--wedding .grid-item .play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 48px; height: 48px; border: 1px solid #333; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.grid--wedding .grid-item .play-icon svg { width: 16px; height: 16px; fill: var(--muted); margin-left: 2px; }

/* ── VERTICAL / INSTAGRAM GRID (unlisted) ── */
.grid--vertical {
    max-width: 1100px;
    margin: 56px auto 100px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    align-items: start;
}
.grid--vertical .grid-item { aspect-ratio: 9 / 16; }
.grid--vertical .grid-item .thumb {
    position: absolute; inset: 0; padding-bottom: 0;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 60%, #1c1410 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.grid--vertical .grid-item .play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; border: 1px solid #333; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.grid--vertical .grid-item .play-icon svg { width: 14px; height: 14px; fill: var(--muted); margin-left: 2px; }
.grid--vertical .info { padding: 12px; }
.grid--vertical .info .title { font-size: 10px; }

@media (max-width: 640px) {
    .grid--wedding { grid-template-columns: 1fr; }
    .grid--vertical { grid-template-columns: repeat(2, 1fr); }
}

/* ── ABOUT ── */
#about { padding: 100px 28px; max-width: 780px; margin: 0 auto; }
#about p { font-size: 22px; font-weight: 300; line-height: 1.65; color: var(--fg); letter-spacing: -0.01em; }
#about p + p { margin-top: 24px; }
#about .credits {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
}
#about .credit-item .label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
#about .credit-item .value { font-size: 13px; line-height: 1.6; }

/* ── CONTACT ── */
#contact {
    border-top: 1px solid #1e1e1e;
    padding: 80px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}
#contact .contact-left h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
#contact .contact-right { display: flex; flex-direction: column; gap: 12px; text-align: right; }
#contact .contact-right a {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; transition: color 0.2s;
}
#contact .contact-right a:hover { color: var(--fg); }

/* ── FOOTER ── */
footer.site-footer {
    border-top: 1px solid #1a1a1a;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
footer.site-footer span { font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

/* ── INSTAGRAM EMBED GRID (unlisted content page) ── */
.instagram-grid {
    max-width: 1100px;
    margin: 56px auto 100px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-items: center;
}
.instagram-grid blockquote.instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
.instagram-grid iframe.instagram-media-rendered {
    max-width: 100% !important;
    width: 100% !important;
}
@media (max-width: 760px) {
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .instagram-grid { grid-template-columns: 1fr; }
}

/* ── VIDEO MODAL ── */
#video-modal {
    position: fixed; inset: 0; z-index: 200;
    display: none; align-items: center; justify-content: center;
    padding: 28px;
}
#video-modal.is-open { display: flex; }
#video-modal .backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
#video-modal .inner { position: relative; z-index: 1; width: 100%; max-width: 1100px; }
#video-modal .frame { position: relative; width: 100%; padding-bottom: 56.25%; background: #000; }
#video-modal .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#video-modal .close {
    position: absolute; top: -40px; right: 0;
    background: none; border: 1px solid #333; color: var(--fg);
    width: 34px; height: 34px; font-size: 20px; cursor: pointer;
}
/* Vertical (9:16) player variant, used on the social content page */
#video-modal.modal--vertical .inner { width: auto; height: 100%; max-height: 800px; }
#video-modal.modal--vertical .frame {
    height: 100%; aspect-ratio: 9 / 16; width: auto; max-width: 100%;
    padding-bottom: 0; margin: 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .grid-item.span-8, .grid-item.span-4, .grid-item.span-6 { grid-column: span 12; }
    nav.site-nav .nav-links { display: none; }
    #contact { flex-direction: column; }
    #contact .contact-right { text-align: left; }
}
