@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');

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

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background: #0a0a0a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

header {
    padding: 40px 20px;
    text-align: center;
}

h1 {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 8px;
}

.subtitle {
    font-family: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 67px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1.5px;
    line-height: 0.67;
}

.gallery {
    column-count: 4;
    column-gap: 8px;
    padding: 8px;
}

.gallery-empty {
    column-span: all;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.gallery-item {
    position: relative;
    break-inside: avoid;
    padding-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #0a0a0a;
    opacity: 0;
    transform: translateY(14px);
}

.gallery.is-ready .gallery-item {
    animation: gallery-item-reveal 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes gallery-item-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    font-size: 14px;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    min-height: 80px;
    max-width: 100%;
}

.gallery-item:hover .gallery-item-title {
    opacity: 1;
}

/* Fullscreen lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow-y: auto;
}

.lightbox-image-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: clamp(20px, 5vw, 40px);
}

.lightbox-caption {
    max-width: 90vw;
    max-width: min(600px, 90vw);
    margin-top: -20px;
    padding-bottom: 20px;
    text-align: center;
}

.lightbox-caption:empty {
    display: none;
}

.lightbox-caption-title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: white;
}

.lightbox-caption-date {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
}

.lightbox-caption-description {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
    font-size: 32px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: opacity 0.2s;
    padding: 8px;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: 32px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    transition: opacity 0.2s;
}

.lightbox-nav:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 13px;
    }

    .subtitle {
        font-size: 35px;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    h1 {
        font-size: 14px;
    }

    .subtitle {
        font-size: 48px;
    }
}

@media (max-width: 1100px) {
    .gallery {
        column-count: 2;
    }
}

@media (min-width: 769px) and (pointer: fine) {
    .lightbox img {
        max-width: 70%;
    }
}
