/* =========================================
   RESET & BASE
========================================= */

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

:root {
    --bg-grey: #545454;
    --bg-black: #000000;
    --text-white: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.6);

    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Cormorant Garamond", "Times New Roman", serif;

    --transition-fast: 0.3s ease;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    background-color: #000;
    color: var(--text-white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* =========================================
   MOBILE HEADER & NAV
========================================= */

.mobile-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-grey);
    width: 100%;
    z-index: 900;
    flex-shrink: 0;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-white);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* header credit (top text) */
.header-credit {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    margin-left: auto;
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile navigation overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-grey);
    z-index: 1500;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1501;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 28px;
}

.mobile-nav-content a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-white);
    text-decoration: none;
    text-transform: capitalize;
    letter-spacing: 1px;
    transition: letter-spacing var(--transition-fast);
}

.mobile-nav-content a:hover {
    letter-spacing: 3px;
}

/* =========================================
   LAYOUT (MOBILE-FIRST)
========================================= */

/* The main container fills all space between header + footer */
.split-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    overflow: hidden;
}

/* Desktop sidebar - hidden on mobile */
.left-side {
    display: none;
}

/* Right side: hero image or gallery area */
.right-side {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

/* =========================================
   MOBILE FIX - HERO IMAGE SHOULD NOT CROP
========================================= */
@media (max-width: 768px) {
    .split-container {
        min-height: 100vh;
        height: 100vh;
        display: block;
    }

    .right-side {
        height: 100vh;
        width: 100%;
        overflow:hidden;
        position: relative;
    }

    .hero-image-link,
    .hero-image-link img {
        width: 100%;
        height: 100vh;
        display: block;
    }

    /* IGNORE aspect ration and fill screen */
    .hero-image-link img {
        object-fit: cover;
        object-position: center;
    }
}

/* =========================================
   HERO IMAGE ZOOM EFFECT
========================================= */
.hero-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-image-link img:hover {
    transform: scale(1.07);
    transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

/* =========================================
   GALLERY (MOBILE-FIRST)
========================================= */

.gallery-right {
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: var(--bg-black);
    overflow-y: auto;
    overflow-x: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 1 column on mobile */
    grid-auto-rows: 200px;
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000000;
    transition:
        transform 0.5s ease,
        filter 0.3s ease,
        opacity 0.3s ease;
}

/* Lazy loading fade-in */
.gallery-item img[loading="lazy"] {
    opacity: 0;
}

.gallery-item img[loading="lazy"].loaded {
    opacity: 1;
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
    pointer-events:none;
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.gallery-item:hover::before {
    background: rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar for gallery (Webkit) */
.gallery-right::-webkit-scrollbar {
    width: 10px;
}

.gallery-right::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.gallery-right::-webkit-scrollbar-thumb {
    background: var(--bg-grey);
    border-radius: 5px;
}

.gallery-right::-webkit-scrollbar-thumb:hover {
    background: #6a6a6a;
}

/* =========================================
   TYPOGRAPHY (Desktop left-side sections)
========================================= */

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.side-nav a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-white);
    text-decoration: none;
    text-transform: capitalize;
    padding: 5px 0;
    letter-spacing: 1px;
    position: relative;
    transition: padding-left var(--transition-fast);
}

.side-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--text-white);
    transition: width var(--transition-fast);
}

.side-nav a:hover {
    padding-left: 8px;
}

.side-nav a:hover::after {
    width: 100%;
}

.bio {
    padding: 40px 0;
}

.bio p {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
}

.credit {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--accent-soft);
    margin-top: 20px;
}

/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
    z-index: 1000;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 95%;
    max-height: 80%;
    object-fit: contain;
    transform: translate(-50%, -50%) scale(0.98);
    opacity: 0;
    user-select: none;
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
}

.lightbox.open .lightbox-content.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 1001;
}

.lightbox-close:hover {
    color: #cccccc;
}

/* =========================================
   CONTACT MODAL
========================================= */

.contact-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 300ms ease, visibility 300ms ease;
    z-index: 2000;
    cursor: pointer;
}

.contact-modal.open {
    opacity: 1;
    visibility: visible;
}

.contact-content {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 92%;
    position: relative;
    cursor: default;
    transform: scale(0.95);
    transition: transform 300ms ease;
    text-align: center;
}

.contact-modal.open .contact-content {
    transform: scale(1);
}

.contact-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #000000;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.contact-close:hover {
    color: var(--bg-grey);
}

.contact-text-top {
    margin-bottom: 25px;
}

.contact-text-top p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
}

.contact-image {
    margin: 25px 0;
}

.contact-image img {
    max-width: 80px;
    height: auto;
    opacity: 1;
    filter:
        drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.25))  /* soft glow */
        drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.35));       /* depth shadow */
}

.contact-text-bottom {
    margin-top: 25px;
}

.email-display {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #000000;
    margin-bottom: 10px;
}

.email-display strong {
    font-weight: 600;
}

.email-instruction {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #545454;
    margin-bottom: 20px;
}

.email-button {
    display: inline-block;
    padding: 12px 32px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-serif);
    color: #ffffff;
    background-color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #000000;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.email-button:hover {
    background-color: #ffffff;
    color: #000000;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
========================================= */
/* Mobile (max 480px) */
@media (max-width: 480px) {
    .gallery-grid {
        grid-auto-rows: 220px;
        gap: 12px;
    }

    .contact-content {
        padding: 32px 22px;
    }
}


/* Tablet and up (768px+) */
@media (min-width: 768px) {
    /* Hide mobile header on larger screens */
    .mobile-header {
        display: none;
    }

    body {
        height: 100vh;
        overflow: hidden;
    }

    .split-container {
        flex-direction: row;
        height: 100vh;
    }

    .left-side {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 50%;
        background-color: var(--bg-grey);
        padding: 60px 50px;
        color: var(--text-white);
    }

    .right-side {
        width: 50%;
        height: 100vh;
    }

    .gallery-right {
        width: 50%;
        height: 100vh;
        padding: 30px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
        gap: 15px;
    }

    .contact-content {
        padding: 50px 60px;
        width: 90%;
    }

    .contact-close {
        top: 15px;
        right: 25px;
        font-size: 35px;
    }

    .contact-text-top p {
        font-size: 1rem;
    }

    .email-button {
        padding: 15px 40px;
        font-size: 0.9rem;
    }

    .lightbox-content {
        max-width: 90%;
        max-height: 90%;
    }

    .lightbox-close {
        top: 30px;
        right: 50px;
        font-size: 50px;
    }
}

/* Large screens (1400px+) — 3 columns in gallery */
@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .bio p {
        font-size: 1rem;
    }

    .side-nav a {
        font-size: 1.9rem;
    }
}
