:root {
    color-scheme: light dark;
    --bg: #f6f7f9;
    --fg: #14171c;
    --accent: #ff6b4a;
    --shadow: 0 15px 30px rgba(20, 23, 28, 0.1);
    --radius: 16px;
    --max-width: 1100px;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--fg);
    display: flex;
    flex-direction: column;
}

.hero {
    background: #202020;
    color: #fff;
    text-align: center;
    padding: clamp(1rem, 2.5vw, 2rem) 1.5rem;
}

.hero__content {
    max-width: 620px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero__logo {
    width: clamp(3.5rem, 14vw, 5.5rem);
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.hero h1 {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.hero p {
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    line-height: 1.5;
    text-align: center;
}

.gallery {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 2.5rem auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery__item {
    position: relative;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    aspect-ratio: 1 / 1;
}

.gallery__item:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery__item--video img {
    transform: scale(1.25);
    transform-origin: center;
}

.gallery__item--video:hover img,
.gallery__item--video:focus-visible img {
    transform: scale(1.35);
}

.gallery__play-indicator {
    position: absolute;
    inset: auto 0 0 auto;
    margin: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease, background 0.3s ease;
}

.gallery__item:hover .gallery__play-indicator,
.gallery__item:focus-visible .gallery__play-indicator {
    transform: scale(1.08);
    background: rgba(0, 0, 0, 0.8);
}

.gallery__play-indicator::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 5px;
}

.gallery__item:not(.gallery__item--video):hover img,
.gallery__item:not(.gallery__item--video):focus-visible img {
    transform: scale(1.05);
}

.gallery__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gallery__caption h2 {
    font-size: 1.15rem;
    font-weight: 600;
}

.gallery__caption p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer {
    margin-top: auto;
    padding: 2rem 1.5rem;
    text-align: center;
    color: rgba(20, 23, 28, 0.6);
}

.footer__link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

.footer p + p {
    margin-top: 0.5rem;
}

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

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

.lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 96vw;
    max-height: 90vh;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__content.is-video {
    width: min(96vw, 1280px);
    max-width: min(96vw, 1280px);
    background: #000;
}

.lightbox__content.is-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.lightbox__content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 96vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: clamp(1rem, 5vw, 2rem);
    right: clamp(1rem, 5vw, 2rem);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.3s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

