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

html {
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
}

/* Splash Screen */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999;
    background-image: url('Assets/intro.jpg');
    background-size: 108%;
    background-position: center calc(50% + 4cm + 0.5in);
    background-repeat: no-repeat;
    background-color: #fff;
    padding-top: env(safe-area-inset-top);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(1.5rem - 10px);
}

.splash-logo {
    height: auto;
    width: auto;
    max-height: 85px;
    max-width: 75vw;
    mix-blend-mode: multiply;
}

.splash-enter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    height: 67px;
    width: auto;
    max-width: 80vw;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
    line-height: 0;
}

.nav-container {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem 0 1rem;
    line-height: normal;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
}

/* Header hero */
.header-hero {
    width: 100%;
    background: #fff;
    overflow: hidden;
    border-bottom: 0px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
}

.hero-title {
    width: 100%;
    text-align: center;
    font-size: clamp(28px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
    transform: scaleX(1.04);
}

@media (max-width: 768px) {
    .header-hero { height: 56px; }
    .hero-title { font-size: clamp(20px, 8vw, 36px); }
}

@media (max-width: 480px) {
    .header-hero { height: 44px; }
    .hero-title { font-size: clamp(16px, 10vw, 24px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
    border-bottom: 2px solid #000;
}

/* Sections */
.section {
    display: none;
    min-height: calc(100vh - 60px);
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Portfolio Section */
.portfolio-container {
    width: 100%;
    min-height: calc(100vh - 60px);
    background-color: #fff;
}

/* Gallery Feed */
.gallery-feed {
    width: 100%;
    background-color: #fff;
}

.gallery-item {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}


.gallery-item--paired {
    flex-direction: row;
    gap: 0.5cm;
    align-items: center;
    justify-content: center;
}

.paired-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.paired-col--contain {
    flex: 1;
}

.paired-col--contain .item-image-wrapper {
    width: auto;
    max-width: 100%;
    height: auto;
}

.paired-col--contain .item-image-wrapper img,
.paired-col--contain .item-image-wrapper video {
    width: auto;
    height: 75vh;
    max-width: 100%;
    object-fit: unset;
}

.gallery-item--contain {
    padding: 5vh 5vw;
}

.gallery-item--paired .item-image-wrapper {
    width: 100%;
    max-width: 100%;
    height: 90vh;
    margin-bottom: 0;
}

.gallery-item--paired .item-image-wrapper img,
.gallery-item--paired .item-image-wrapper video {
    object-fit: cover;
}

.gallery-item--paired .item-image-wrapper--contain img,
.gallery-item--paired .item-image-wrapper--contain video {
    object-fit: contain;
}

.paired-caption {
    width: 100%;
    text-align: center;
    padding-top: 0.4rem;
}

.item-image-wrapper {
    width: 100%;
    max-width: 100%;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0;
    position: relative;
}

.hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3rem;
    overflow: hidden;
    box-sizing: border-box;
}

.item-image-wrapper:hover .hover-overlay {
    opacity: 1;
}

.hover-overlay--left {
    justify-content: flex-start;
}

.hover-overlay--left .hover-text {
    margin-right: 0;
    max-width: 45%;
}

.hover-overlay--center {
    justify-content: center;
}

.hover-overlay--center .hover-text {
    margin-right: 0;
    text-align: left;
}

.item-image-wrapper--has-text img,
.item-image-wrapper--has-text video {
    transition: opacity 0.4s ease;
}

.item-image-wrapper--has-text:hover img,
.item-image-wrapper--has-text:hover video {
    opacity: 0.45;
}

.hover-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #222;
    text-align: left;
    max-width: 100%;
    margin-right: 2cm;
}

.item-image-wrapper--portrait {
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: 90vh;
}

.item-image-wrapper--portrait img {
    object-fit: cover;
}

.item-image-wrapper img,
.item-image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: imageLoad 0.6s ease-in;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.item-details {
    width: 100%;
    max-width: 1000px;
    color: #333;
    text-align: center;
}
.item-meta {
    display: inline-block;
    background-color: transparent;
    color: #555;
    padding: 0;
    border-radius: 0;
    font-size: 0.85rem;
    line-height: 1.1;
}

.item-meta em {
    font-style: italic;
    font-weight: 400;
}

/* About Section */
.about-container {
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.bio-section,
.contact-section {
    padding: 2rem;
    background-color: transparent;
    border-radius: 8px;
}

.bio-section {
    margin-bottom: 3rem;
}

.bio-section h3,
.contact-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

.bio-section p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.9;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    max-width: 560px;
}

.contact-info p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #555;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-info a:hover {
    border-bottom-color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Splash */
    #splash {
        background-position: center center;
        background-size: cover;
    }

    .splash-enter {
        bottom: calc(2rem + 2in);
        height: 45px;
    }

    /* Nav — stack logo above links */
    .nav-container {
        flex-direction: column;
        align-items: center;
        padding: 0.6rem 1rem;
        gap: 0.4rem;
    }

    .nav-menu {
        gap: 1.2rem;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .logo-img {
        height: 32px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-container {
        padding: 2rem 1rem;
    }

    /* Gallery */
    .gallery-item {
        padding: 0.5rem;
        min-height: auto;
    }

    .item-image-wrapper {
        height: auto;
        margin-bottom: 0.5rem;
    }

    .item-image-wrapper img,
    .item-image-wrapper video {
        width: 100%;
        height: auto;
        max-height: 85vh;
        object-fit: contain;
    }

    /* Paired images — stack vertically on mobile */
    .gallery-item--paired {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .paired-col {
        width: 100%;
        padding-bottom: 2rem;
    }

    /* Remove inline crop on mobile so images stay centred */
    .paired-col .item-image-wrapper {
        clip-path: none !important;
    }

    /* Remove portrait aspect-ratio constraint when stacked */
    .gallery-item--paired .item-image-wrapper--portrait {
        aspect-ratio: unset;
        max-height: none;
    }

    .gallery-item--paired .item-image-wrapper {
        height: auto;
        width: 100%;
    }

    .gallery-item--paired .item-image-wrapper img,
    .gallery-item--paired .item-image-wrapper video {
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
    }

    .paired-col--contain .item-image-wrapper img,
    .paired-col--contain .item-image-wrapper video {
        height: auto;
        max-height: 70vh;
        width: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-link {
        font-size: 0.8rem;
    }

    .logo-img {
        height: 28px;
    }

    .item-meta {
        font-size: 0.6rem;
    }
}
