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

:root {
    --color-primary: #003D2A;
    --color-secondary: #E26B0A;
    --color-surface: #ffffff;
    --color-panel: #eef2f6;
    --color-text: #1f2a25;
    --color-muted: rgba(31, 42, 37, 0.75);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-panel);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--color-primary);
    padding: 1.25rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

header .logo {
    display: block;
    margin: 0 auto;
    padding: 0;
    max-width: 520px;
    width: 100%;
    height: auto;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-muted);
}

main {
    padding-bottom: 4rem;
}

.gallery-section {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-section h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.image-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    justify-items: center;
}

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

.grid-2 .image-card {
    max-width: 380px;
    width: 100%;
}

.grid-no-gap {
    gap: 0;
}

.image-grid.grid-tight {
    gap: 0;
    justify-items: stretch;
}

.image-grid.grid-tight .image-card {
    max-width: none;
}

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

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

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

.grid-1 .image-card {
    grid-column: 2;
}

@media (max-width: 1024px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .image-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-1 {
        grid-template-columns: 1fr;
    }

    .grid-1 .image-card {
        grid-column: auto;
    }
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.image-card:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(0);
}

.image-overlay h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.grid-link {
    text-align: center;
    margin-top: 2rem;
}

.grid-link a {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
}

.grid-link a:hover {
    text-decoration: underline;
}

footer {
    background: var(--color-primary);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    color: rgba(236, 227, 210, 0.9);
    font-size: 1rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.lightbox.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__media {
    max-width: min(90vw, 1200px);
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    position: relative;
    margin-bottom: 1.25rem;
}

.lightbox__media.is-zoomed {
    overflow: auto;
    cursor: grab;
}

.lightbox__media.is-dragging {
    cursor: grabbing;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    transform-origin: center;
    display: block;
}

.lightbox__image.is-zoomed {
    cursor: zoom-out;
}

.lightbox__controls {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.lightbox__control-button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}

.lightbox__control-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox__control-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox__zoom-level {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
}

.lightbox__caption {
    margin-top: 1.25rem;
    color: #ffffff;
    font-size: 1.1rem;
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    header .logo {
        max-width: 200px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .gallery-section {
        padding: 1.5rem;
    }

    .gallery-section h2 {
        font-size: 1.5rem;
    }

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

    .image-grid {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    header .logo {
        max-width: 170px;
    }

    .gallery-section {
        padding: 1rem;
    }
}
