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

body {
    background-color: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    min-height: 100vh;
}

/* ---- Header ---- */

.site-header {
    text-align: center;
    padding: 3.5rem 1rem 2rem;
}

.site-name {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: 2.75rem;
    letter-spacing: 0.04em;
    color: #2c2c2c;
    position: relative;
    display: inline-block;
}

.site-name::after {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    background-color: #ccc;
    margin: 0.75rem auto 0;
}

/* ---- Gallery ---- */

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    line-height: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: scale(1.02);
}

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

.gallery-item:hover img {
    opacity: 0.95;
}

/* ---- Lightbox ---- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

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

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.25rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    .site-header {
        padding: 2.5rem 1rem 1.5rem;
    }

    .site-name {
        font-size: 2rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .gallery-container {
        padding: 0.75rem 1rem 3rem;
    }
}
