/*
Theme Name: Galerie
Description: Minimal photography & film portfolio. Homepage estática, portfolio en Páginas, info en menú izquierda.
Version: 3.0
Text Domain: galerie
*/

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

/* ── Base ───────────────────────────────────────────────────────────── */
html { font-size: 16px; }

body {
    background: #fefefe;
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    color: #c9a0a0;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

img {
    display: block;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: #fefefe;
}

/* ── Top row ─────────────────────────────────────────────────────────── */
.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px 0;
}

/* Left group: brand + info links */
.nav-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.site-brand {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #c9a0a0;
    line-height: 1;
    white-space: nowrap;
}

/* Info menu — right after the brand */
.menu-info {
    display: flex;
    gap: 22px;
    list-style: none;
    margin-left: 28px;
    padding-left: 22px;
    border-left: 0.5px solid rgba(201,160,160,0.3);
}

.menu-info a {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a0a0;
    transition: color 0.25s;
}

.menu-info a:hover,
.menu-info .current-menu-item > a,
.menu-info .current_page_item > a {
    color: #a07070;
}

/* Primary menu — top right */
.menu-primary {
    display: flex;
    gap: 28px;
    list-style: none;
}

.menu-primary a {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a0a0;
    transition: color 0.25s;
}

.menu-primary a:hover { color: #a07070; }

/* ── Portfolio nav — second row, centred ─────────────────────────────── */
.nav-portfolio {
    display: flex;
    justify-content: center;
    padding: 10px 0 8px;
}

.menu-portfolio {
    display: flex;
    gap: 32px;
    list-style: none;
}

.menu-portfolio a {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a0a0;
    transition: color 0.25s;
    padding-bottom: 2px;
    border-bottom: 0.5px solid transparent;
}

.menu-portfolio a:hover {
    color: #a07070;
    border-bottom-color: rgba(201,160,160,0.5);
}

/* Active portfolio page link */
.menu-portfolio .current-menu-item > a,
.menu-portfolio .current_page_item > a {
    color: #a07070;
    border-bottom-color: #c9a0a0;
}

/* ── Header height helper ────────────────────────────────────────────── */
/* Row 1 ≈ 22px padding + 14px text + 0 = ~44px
   Row 2 ≈ 10px padding + 14px text + 8px = ~32px
   Total ≈ 76px → use 88px for breathing room                           */
:root { --header-h: 88px; }

/* ── Homepage — static image ─────────────────────────────────────────── */
.home-wrap {
    padding-top: var(--header-h);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero {
    max-width: 520px !important;
    max-height: calc(100vh - var(--header-h) - 40px);
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: saturate(0.88) contrast(0.97);
}

/* ── Portfolio page ──────────────────────────────────────────────────── */
.portfolio-page {
    padding-top: var(--header-h);
    padding-bottom: 80px;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Video embed — responsive 16:9 */
.portfolio-content .video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 32px;
}

.portfolio-content .video-wrap iframe,
.portfolio-content .video-wrap video {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* WordPress core embed blocks */
.portfolio-content .wp-block-embed {
    margin: 0 0 32px;
}

.portfolio-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.portfolio-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Text content below the video */
.portfolio-content p,
.portfolio-content h2,
.portfolio-content h3,
.portfolio-content ul,
.portfolio-content ol {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    color: #c9a0a0;
    line-height: 1.7;
    margin-bottom: 14px;
}

.portfolio-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 32px;
    margin-bottom: 10px;
}

.portfolio-content h3 {
    font-family: 'Jost', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 24px;
    margin-bottom: 8px;
}

.portfolio-content p {
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* Credits / small text — use Cormorant italics */
.portfolio-content .wp-block-separator,
.portfolio-content hr {
    border: none;
    border-top: 0.5px solid rgba(201,160,160,0.25);
    margin: 28px 0;
}

/* ── Info pages (About, Contacto, etc.) ─────────────────────────────── */
.info-page {
    padding-top: var(--header-h);
    padding-bottom: 80px;
    max-width: 600px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.info-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 20px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c9a0a0;
    margin-top: 48px;
    margin-bottom: 28px;
}

.info-content p,
.info-content li {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #c9a0a0;
    line-height: 1.8;
    margin-bottom: 14px;
}

.info-content a:hover { color: #a07070; }

/* ── No content fallback ─────────────────────────────────────────────── */
.no-posts {
    margin-top: 80px;
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #d4b0b0;
    text-align: center;
}

/* ── Admin Bar Offset ────────────────────────────────────────────────── */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

/* ── Hamburger ───────────────────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 4px; width: 24px; height: 24px;
    flex-shrink: 0;
}

.hamburger span {
    display: block; width: 100%; height: 0.5px;
    background: #c9a0a0;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile dropdown */
.mobile-menu {
    display: none;
    padding: 12px 20px 16px;
    border-bottom: 0.5px solid rgba(201,160,160,0.15);
}

.mobile-menu.open { display: block; }

.menu-mobile {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 4px;
}

/* Subtle divider between mobile menu groups */
.mobile-menu .menu-mobile + .menu-mobile {
    border-top: 0.5px solid rgba(201,160,160,0.15);
    padding-top: 14px;
    margin-top: 2px;
}

.menu-mobile a {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a0a0;
    transition: color 0.25s;
}

.menu-mobile a:hover,
.menu-mobile .current-menu-item > a,
.menu-mobile .current_page_item > a { color: #a07070; }

/* ── Mobile breakpoint ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    :root { --header-h: 72px; }

    .nav-top { padding: 16px 18px 0; }
    .menu-info    { display: none; }
    .menu-primary { display: none; }
    .hamburger    { display: flex; }

    .nav-portfolio { padding: 8px 12px; }
    .menu-portfolio { gap: 16px; flex-wrap: wrap; justify-content: center; }

    .home-hero {
        max-width: 100% !important;
        max-height: calc(100vh - var(--header-h) - 20px);
    }

    .portfolio-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .info-page {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (min-width: 641px) {
    .hamburger    { display: none; }
    .mobile-menu  { display: none !important; }
}
