/* Becky Ostil Photography — Theme Styles */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Avenir', 'Avenir Next', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: #000;
    background: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

/* ─── Navigation ─── */

.site-nav {
    padding: 40px 0 30px;
    margin: 0 50px;
    border-bottom: 1px solid #000;
    position: relative;
    z-index: 51;
}

.nav-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.site-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: 40px;
    letter-spacing: 2.8px;
    color: #000;
    text-transform: uppercase;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #000;
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 52;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #000;
    position: absolute;
    left: 3px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-hamburger span:nth-child(1) { top: 8px; }
.nav-hamburger span:nth-child(2) { top: 13.5px; }
.nav-hamburger span:nth-child(3) { top: 19px; }

body.menu-open .nav-hamburger span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

body.menu-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
}

body.menu-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.nav-link {
    font-family: 'Avenir', 'Avenir Next', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #000;
    transition: color 0.2s;
}

.nav-link.active {
    color: rgb(148, 61, 61);
}

.nav-link:hover {
    color: rgb(148, 61, 61);
}

.nav-icon {
    display: flex;
    align-items: center;
}

.nav-icon svg {
    width: 16px;
    height: 16px;
}

/* ─── Mobile Menu Overlay ─── */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

body.menu-open .mobile-menu {
    transform: translateY(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 80px;
}

.mobile-menu-link {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: 22px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
}

.mobile-menu-link.active {
    color: rgb(148, 61, 61);
}

/* ─── Tagline ─── */

.tagline {
    padding: 50px 50px 40px;
}

.tagline-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.tagline-left,
.tagline-right {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: 19px;
    letter-spacing: 0.95px;
    color: #000;
    text-transform: uppercase;
    line-height: 1.5;
}

.tagline-right {
    text-align: right;
}

/* ─── Gallery ─── */

.gallery-section {
    padding: 0 50px 60px;
}

.masonry-grid {
    position: relative;
}

.masonry-item {
    overflow: hidden;
}

.masonry-item a {
    display: block;
    position: relative;
}

.masonry-item a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s;
}

.masonry-item a:hover::after {
    background: rgba(0, 0, 0, 0.25);
}

.masonry-item img {
    display: block;
    cursor: pointer;
}

/* ─── About Page ─── */

.about-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 50px 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-image-col img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text-col {
    padding-top: 10px;
}

.about-text-col h1,
.about-text-col h2 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: 19px;
    letter-spacing: 0.95px;
    text-transform: uppercase;
    line-height: 1.5;
    margin-bottom: 16px;
}

.about-text-col .about-details {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
    margin-bottom: 20px;
}

.about-text-col .about-details p {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.95px;
    text-transform: uppercase;
    line-height: 1.6;
    margin-bottom: 0;
}

.about-text-col .about-bio {
    font-size: 13px;
    line-height: 1.8;
    color: #000;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

/* ─── Default Content ─── */

.content-default {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 30px 80px;
}

/* ─── Footer ─── */

.site-footer {
    padding: 40px 50px;
    border-top: 1px solid #eee;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-copy {
    font-size: 12px;
    letter-spacing: 0.6px;
    color: #000;
}

.footer-icon {
    display: flex;
    align-items: center;
    color: #000;
}

.footer-icon svg {
    width: 14px;
    height: 14px;
}

/* ─── GLightbox white skin ─── */

.glightbox-clean .goverlay {
    background: #fff !important;
}

.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    filter: invert(1);
}

.glightbox-clean .gslide {
    background: transparent;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .site-nav {
        padding: 20px 0 16px;
        margin: 0 20px;
    }

    .nav-inner {
        flex-direction: row;
        align-items: center;
    }

    .site-title {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .tagline {
        padding: 16px 20px 12px;
    }

    .tagline-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .tagline-left {
        order: 2;
        text-align: right;
    }

    .tagline-right {
        order: 1;
        text-align: left;
    }

    .tagline-left,
    .tagline-right {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .gallery-section {
        padding: 0 20px 30px;
    }

    .about-page {
        padding: 40px 20px 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer {
        padding: 30px 20px;
    }

    /* Mobile lightbox: hide default controls */
    .glightbox-clean .gnext,
    .glightbox-clean .gprev,
    .glightbox-clean .gclose {
        display: none !important;
    }

    /* Custom back arrow injected by JS */
    .lightbox-back-arrow {
        position: fixed;
        top: 14px;
        left: 12px;
        z-index: 10000000;
        background: none;
        border: none;
        cursor: pointer;
        padding: 12px;
        line-height: 1;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .lightbox-back-arrow.fading {
        opacity: 0;
    }
}
