/* ========================================
   RESET
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f6f2e9;
    color: #262522;

    font-family: "Inter", sans-serif;

    -webkit-font-smoothing: antialiased;
}

:root {
    --background: #f6f2e9;
    --text: #262522;
    --muted: #78746d;
    --border: #d7d1c7;
}


/* ========================================
   NAVIGATION
======================================== */

.navbar {
    width: 100%;

    padding: 30px 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text);

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.12em;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: var(--muted);

    text-decoration: none;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    transition: color 0.25s ease;
}

nav a:hover,
nav a.active {
    color: var(--text);
}


/* ========================================
   MAIN
======================================== */

.lens-page {
    max-width: 1300px;

    margin: auto;

    padding: 100px 50px 150px;
}


/* ========================================
   INTRO
======================================== */

.lens-intro {
    max-width: 900px;

    margin-bottom: 150px;
}

.eyebrow {
    margin-bottom: 25px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.lens-intro h1 {
    font-family: "Bodoni Moda", serif;

    font-size: clamp(60px, 9vw, 130px);

    font-weight: 400;

    line-height: 0.9;

    letter-spacing: -0.05em;
}

.lens-intro h1 em {
    font-style: italic;
}

.intro-text {
    max-width: 500px;

    margin-top: 40px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;
}


/* ========================================
   GALLERY HEADING
======================================== */

.gallery-section {
    border-top: 1px solid var(--border);

    padding-top: 80px;
}

.gallery-heading {
    margin-bottom: 70px;
}

.gallery-heading h2 {
    font-family: "Bodoni Moda", serif;

    font-size: clamp(45px, 6vw, 75px);

    font-weight: 400;

    line-height: 1;
}


/* ========================================
   PHOTO GALLERY
======================================== */

.photo-gallery {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 100px 40px;
}


/* ========================================
   PHOTO CARD
======================================== */

.photo-card {
    cursor: pointer;
}

.photo-image-wrapper {
    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #ddd8cf;
}

.photo-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.photo-card:hover img {
    transform: scale(1.04);
}


/* ========================================
   PHOTO CARD INFORMATION
======================================== */

.photo-card-info {
    display: grid;

    grid-template-columns: 40px 1fr;

    gap: 20px;

    padding-top: 20px;
}

.photo-card-number {
    color: var(--muted);

    font-size: 10px;
}

.photo-card-info h3 {
    margin-bottom: 8px;

    font-family: "Bodoni Moda", serif;

    font-size: 28px;

    font-weight: 400;
}

.photo-card-info p {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.6;
}


/* ========================================
   MODAL
======================================== */

.photo-modal {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 50px;

    background: rgba(38, 37, 34, 0.96);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.photo-modal.open {
    opacity: 1;

    visibility: visible;
}


/* ========================================
   MODAL CONTENT
======================================== */

.modal-content {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 60px;

    align-items: center;
}


/* ========================================
   MODAL IMAGE
======================================== */

.modal-image-container {
    width: 100%;
    height: 80vh;
}

.modal-image-container img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ========================================
   MODAL INFORMATION
======================================== */

.modal-information {
    color: var(--background);
}

.photo-number {
    margin-bottom: 20px;

    color: #aaa69e;

    font-size: 10px;

    letter-spacing: 0.1em;
}

.modal-information h2 {
    margin-bottom: 25px;

    font-family: "Bodoni Moda", serif;

    font-size: clamp(40px, 5vw, 70px);

    font-weight: 400;

    line-height: 0.95;
}

.modal-description {
    max-width: 400px;

    margin-bottom: 50px;

    color: #aaa69e;

    font-size: 13px;

    line-height: 1.8;
}


/* ========================================
   CAMERA INFORMATION
======================================== */

.camera-information {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    border-top: 1px solid rgba(255,255,255,0.2);

    padding-top: 25px;
}

.camera-information div {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.camera-information span {
    color: #aaa69e;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}

.camera-information strong {
    font-size: 12px;

    font-weight: 400;
}


/* ========================================
   CLOSE BUTTON
======================================== */

.close-modal {
    position: absolute;

    top: 30px;
    right: 40px;

    border: none;

    background: transparent;

    color: white;

    font-size: 40px;

    font-weight: 200;

    line-height: 1;

    cursor: pointer;

    z-index: 1001;
}


/* ========================================
   FOOTER
======================================== */

footer {
    display: flex;

    justify-content: space-between;

    padding: 40px 50px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 10px;
}

footer a {
    color: var(--text);

    text-decoration: none;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 800px) {

    .navbar {
        padding: 25px 20px;
    }

    nav {
        gap: 15px;
    }

    .lens-page {
        padding: 70px 20px 100px;
    }

    .lens-intro {
        margin-bottom: 100px;
    }

    .photo-gallery {
        grid-template-columns: 1fr;

        gap: 70px;
    }

    .photo-modal {
        padding: 30px 20px;
    }

    .modal-content {
        grid-template-columns: 1fr;

        gap: 30px;

        overflow-y: auto;

        max-height: 90vh;
    }

    .modal-image-container {
        height: 50vh;
    }

    .modal-information h2 {
        font-size: 45px;
    }

    .close-modal {
        top: 15px;
        right: 20px;

        font-size: 32px;
    }

    footer {
        padding: 30px 20px;
    }

}