* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    margin: 0;
    background-color: #17120e;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;

    color: #fff;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background-color: #17120e;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.18),
            rgba(0, 0, 0, 0.18)
        ),
        var(--desktop-background);

    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.page-shell {
    width: min(1180px, 100%);
    min-height: 100vh;
    margin: 0 auto;

    padding:
        max(18px, env(safe-area-inset-top))
        20px
        max(24px, env(safe-area-inset-bottom));
}

/* Header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 28px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
}

.brand img {
    display: block;

    width: auto;
    max-width: min(220px, 48vw);
    height: 78px;

    object-fit: contain;
    border-radius: 8px;
}

/* Language switcher */

.language-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 44px;
    padding: 7px 11px;

    color: #fff;
    text-decoration: none;

    background-color: rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: #fff;
    transform: translateY(-1px);
}

.flag {
    font-size: 24px;
    line-height: 1;
}

.language-label {
    font-size: 14px;
    font-weight: 650;
}

/* Gallery */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-items: start;
    gap: 22px;
}

.gallery-item {
    display: block;
    overflow: hidden;

    background-color: rgba(255, 255, 255, 0.94);
    border: 6px solid rgba(255, 255, 255, 0.96);
    border-radius: 12px;

    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Empty state */

.empty-state {
    padding: 28px;
    text-align: center;

    background-color: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
}

/* Footer */

.site-footer {
    margin-top: 34px;
    padding: 16px 0;

    text-align: center;
    font-size: 13px;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.site-footer a {
    color: inherit;
    font-weight: 700;
}

/* Mobile */

@media (max-width: 767px) {
    body {
        background-image:
            linear-gradient(
                rgba(0, 0, 0, 0.10),
                rgba(0, 0, 0, 0.10)
            ),
            var(--mobile-background);

        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: scroll;
    }

    .page-shell {
        padding-inline: 12px;
    }

    .site-header {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .brand img {
        height: 62px;
        max-width: 180px;
    }

    .language-label {
        position: absolute;

        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;

        overflow: hidden;
        white-space: nowrap;

        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);

        border: 0;
    }

    .language-button {
        min-width: 44px;
        padding: 6px 8px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item {
        border-width: 4px;
        border-radius: 9px;
    }
}

/* Very small screens */

@media (max-width: 420px) {
    .site-header {
        gap: 10px;
    }

    .brand img {
        height: 54px;
        max-width: 155px;
    }

    .flag {
        font-size: 22px;
    }
}

/* Reduced motion */

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