
/* =========================================
   LYLE CHAPMAN PHOTOGRAPHY
   MAIN STYLESHEET
   ========================================= */


/* =========================================
   GLOBAL RESET
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #fff;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 300;
}

img {
    max-width: 100%;
}


/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
}

.navigation {
    display: flex;
    gap: 35px;
}

.navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.navigation a:hover {
    opacity: 0.5;
}


/* =========================================
   HOMEPAGE HERO
   ========================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.55)
        ),
        url("/assets/images/mustang_lyle_chapman_photography.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 800px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 30px;
    color: #ccc;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 100px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -3px;
    margin-bottom: 40px;
}

.hero-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #fff;
    transition: opacity 0.3s;
}

.hero-link:hover {
    opacity: 0.5;
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
    position: relative;
    width: 100%;
    margin-top: 80px;
    padding: 25px 6%;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 1px;
    color: #ccc;
}


/* =========================================
   CONTACT POPUP
   ========================================= */

.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.contact-overlay.active {
    display: flex;
}

.contact-box {
    background: #fff;
    color: #000;
    padding: 50px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.contact-box h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
}

.contact-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.contact-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
}

.contact-box button[type="submit"] {
    background: #000;
    color: #fff;
    padding: 14px 25px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}


/* =========================================
   GALLERY PAGE
   ========================================= */

.page-main {
    padding-top: 160px;
    padding-bottom: 40px;
    min-height: 70vh;
}

.page-heading {
    padding: 0 6% 70px;
}

.page-heading h1 {
    font-size: clamp(48px, 8vw, 110px);
    font-weight: 400;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.page-intro {
    font-size: 15px;
    color: #aaa;
    letter-spacing: 0.5px;
}


/* =========================================
   GALLERY GRID
   ========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 6%;
}

.gallery-item {
    overflow: hidden;
    background: #111;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    opacity: 0.85;
}


/* =========================================
   FULL-SCREEN GALLERY LIGHTBOX
   ========================================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 60px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* LIGHTBOX BUTTONS */

.lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 35px;
    transition: opacity 0.3s;
}

.lightbox button:hover {
    opacity: 0.5;
}

.lightbox-close {
    top: 30px;
    right: 40px;
    font-size: 45px !important;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}


/* =========================================
   TABLET RESPONSIVENESS
   ========================================= */

@media (max-width: 1000px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 768px) {

    .header {
        padding: 25px 5%;
        flex-direction: column;
        gap: 25px;
    }

    .navigation {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navigation a {
        font-size: 10px;
    }

    .hero {
        padding: 0 7%;
        text-align: center;
        justify-content: center;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 9px;
    }

    .contact-box {
        padding: 35px 25px;
    }

    .page-main {
        padding-top: 160px;
    }

    .page-heading {
        padding-bottom: 45px;
    }

    .page-heading h1 {
        letter-spacing: -1px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

}
