*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --max-width: 1100px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}

.site-header {
    text-align: center;
    padding: 3.5rem 0 2rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 700;
}

galleryh1 { /*edited*/
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
}

.intro {
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--muted);
}

.gallery-section {
    padding: 1rem 0 4rem;
}

.gallery-section h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover,
.gallery-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.gallery-trigger {
    all: unset;
    display: block;
    width: 100%;
    cursor: pointer;
}

.gallery-trigger img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-trigger:hover img,
.gallery-trigger:focus img {
    transform: scale(1.03);
}

.lightbox {
    width: min(92vw, 900px);
    padding: 0.5rem;
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.78);
}

.lightbox-content img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #54a1d1; 
    width: 42px;
    height: 42px;
    border-radius: 10%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: rgba(0, 0, 0, 0.14);
    transform: scale(1.04);
    outline: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 700px) {
    .gallery-trigger img {
        height: 210px;
    }

    .lightbox {
        padding-top: 3rem;
    }
}