/* ============================================================
   Headshots by Jim — Responsive Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: rgb(235, 235, 235);
    color: rgb(70, 70, 70);
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================================
   SITE HEADER
   Left: HEADSHOTS by JIM (flush left, very large)
   Right: phone, email, Instagram (flush right)
   ============================================================ */
.site-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px 28px 20px;
    background-color: rgb(235, 235, 235);
}

.site-header .brand {
    flex: 0 0 auto;
}

/* HEADSHOTS by JIM — Urbanist SemiBold 600 */
.site-header h1 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    letter-spacing: 0.01em;
    color: rgb(70, 70, 70);
    line-height: 1.1;
    white-space: nowrap;
}

.site-header h1 em {
    font-style: italic;
    font-weight: 600;
}

.site-header .contact-info {
    flex: 0 0 auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    padding-top: 8px;
}

/* Contact details — Urbanist SemiBold 600 */
.site-header .contact-info span,
.site-header .contact-info a {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2.6vw, 1.65rem);
    color: rgb(70, 70, 70);
    text-decoration: none;
    white-space: nowrap;
    display: block;
    line-height: 1.4;
}

.site-header .contact-info a:hover {
    text-decoration: underline;
}

.site-header .ig-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

.site-header .ig-link img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* ============================================================
   MAIN HEADSHOTS BANNER
   Centered below header, never upsized beyond original size,
   NOT clickable
   ============================================================ */
.main-banner {
    text-align: center;
    background-color: rgb(235, 235, 235);
    padding: 10px 0 18px;
    line-height: 0;
}

.main-banner img {
    display: inline-block;
    width: 100%;
    max-width: 1400px;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}

/* ============================================================
   DESCRIPTION / INTRO TEXT — Courier New (unchanged)
   ============================================================ */
.site-description {
    padding: 18px 28px 22px;
    background-color: rgb(235, 235, 235);
}

.site-description p {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: rgb(70, 70, 70);
    line-height: 1.8;
    margin-bottom: 2px;
}

.site-description p strong {
    font-weight: bold;
}

.site-description .contact-link {
    color: rgb(70, 70, 70);
    text-decoration: underline;
}

.site-description .contact-link:hover {
    color: rgb(120, 120, 120);
}

/* ============================================================
   SECTION LABEL — Courier New (unchanged)
   ============================================================ */
.section-label {
    padding: 10px 28px 14px;
    background-color: rgb(235, 235, 235);
}

.section-label p {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: rgb(70, 70, 70);
}

/* ============================================================
   PHOTO GALLERY — 3-COLUMN RESPONSIVE GRID
   ============================================================ */
.photo-gallery {
    width: 100%;
    background-color: rgb(235, 235, 235);
    padding: 0 4px;
}

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

.photo-item {
    overflow: hidden;
    background-color: rgb(235, 235, 235);
    line-height: 0;
}

.photo-item a {
    display: block;
    line-height: 0;
    cursor: zoom-in;
}

.photo-item img {
    display: block;
    width: 100%;
    max-width: 487px;
    height: auto;
    transition: opacity 0.2s ease;
}

.photo-item a:hover img {
    opacity: 0.82;
}

/* ============================================================
   CONTACT BAR — Urbanist SemiBold 600
   Inserted every ~6 photos in the gallery
   ============================================================ */
.contact-bar {
    grid-column: 1 / -1;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgb(70, 70, 70);
    padding: 10px 4px 8px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
}

.contact-bar em {
    font-style: italic;
    font-weight: 600;
}

.contact-bar a {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    color: rgb(70, 70, 70);
    text-decoration: none;
}

.contact-bar a:hover {
    text-decoration: underline;
}

/* ============================================================
   LIGHTBOX OVERLAY
   ============================================================ */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: none;
    box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

#lightbox-close {
    position: fixed;
    top: 14px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3.4rem;
    line-height: 1;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    padding: 0 6px;
    z-index: 10000;
    opacity: 0.9;
    transition: opacity 0.15s;
}

#lightbox-close:hover,
#lightbox-close:focus {
    opacity: 1;
    outline: none;
}

/* ============================================================
   FOOTER TEXT — Urbanist SemiBold 600 for contact info
   ============================================================ */
.site-footer {
    background-color: rgb(235, 235, 235);
    text-align: center;
    padding: 26px 28px 22px;
    margin-top: 14px;
}

.site-footer p {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgb(70, 70, 70);
    line-height: 1.8;
}

.site-footer em {
    font-style: italic;
    font-weight: 600;
}

.site-footer a {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    color: rgb(70, 70, 70);
    text-decoration: underline;
}

.site-footer a:hover {
    color: rgb(120, 120, 120);
}

/* ============================================================
   FOOTER IMAGE (comp.jpg)
   Original size: 1100x842px — displayed at exactly that size,
   centered, never scaled up or down, not clickable
   ============================================================ */
.footer-image {
    text-align: center;
    background-color: rgb(235, 235, 235);
    padding: 16px 0 0;
    line-height: 0;
    overflow-x: auto;
}

.footer-image img {
    display: inline-block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
    .gallery-grid {
        gap: 7px;
    }
}

/* Mobile — header stacks, still 3 columns */
@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 16px 12px;
        gap: 8px;
    }

    .site-header .contact-info {
        text-align: left;
        align-items: flex-start;
    }

    .site-description,
    .section-label {
        padding-left: 16px;
        padding-right: 16px;
    }

    .photo-gallery {
        padding: 0 2px;
    }

    .gallery-grid {
        gap: 5px;
    }

    .site-footer {
        padding: 20px 16px 18px;
    }

    .contact-bar {
        font-size: clamp(0.8rem, 3vw, 1rem);
        padding: 8px 2px 6px;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .gallery-grid {
        gap: 3px;
    }
}
