/* --------------------------------------------------
   Base
-------------------------------------------------- */

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

html {
    background: #fafaf9;
}

body {
    margin: 0;
    padding: 3rem 1.5rem 4rem;
    background: #fafaf9;
    color: #1c1917;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


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

.site-header {
    margin: 0 auto 3rem;
    text-align: center;
}

.site-header h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

/* --------------------------------------------------
   Download Button
-------------------------------------------------- */

.download-container {
    text-align: center;
    margin: 40px 0;
}

.download-button {
    display: inline-block;
    padding: 12px 22px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 15px;
    transition: background 0.2s ease;
}

.download-button:hover {
    background: #555;
}

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

.gallery {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    width: min(100%, 1200px);
    margin: 0 auto;
}

.gallery a {
    display: block;
    overflow: hidden;
    background: #e7e5e4;
}

.gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;

    transition:
        transform 500ms cubic-bezier(0.2, 0, 0, 1),
        opacity 500ms ease;
}

.gallery a:hover img {
    transform: scale(1.015);
}

.gallery a:focus-visible {
    outline: 2px solid #1c1917;
    outline-offset: 3px;
}


/* --------------------------------------------------
   lightGallery
-------------------------------------------------- */

.lg-backdrop,
.lg-outer {
    background-color: #0b0b0b;
}

.lg-toolbar {
    background: transparent;
    box-shadow: none;
}

.lg-toolbar .lg-icon {
    color: rgba(255, 255, 255, 0.8);
}

.lg-toolbar .lg-icon:hover {
    color: #ffffff;
}

.lg-actions .lg-next,
.lg-actions .lg-prev {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
}

.lg-actions .lg-next:hover,
.lg-actions .lg-prev:hover {
    color: #ffffff;
}


/* --------------------------------------------------
   Thumbnails
-------------------------------------------------- */

.lg-thumb-outer {
    background-color: rgba(11, 11, 11, 0.96);
}

.lg-thumb-item {
    border-color: transparent;
    opacity: 0.55;
    transition: opacity 200ms ease;
}

.lg-thumb-item:hover,
.lg-thumb-item.active {
    opacity: 1;
}


/* --------------------------------------------------
   Reduced motion
-------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .gallery img {
        transition: none;
    }

    .gallery a:hover img {
        transform: none;
    }
}


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

@media (max-width: 600px) {
    body {
        padding: 2rem 1rem 3rem;
    }

    .site-header {
        margin-bottom: 2rem;
    }

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

