* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --text: #f4f5f7;

    --muted:
        rgba(
            255,
            255,
            255,
            0.65
        );

    --orange: #ffd09b;

    --orange-border:
        rgba(
            255,
            173,
            91,
            0.45
        );

    --orange-background:
        rgba(
            151,
            91,
            40,
            0.16
        );
}

html {
    min-height: 100%;

    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        "Manrope",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255, 173, 91, 0.06),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #1a1d21 0%,
            #14171a 55%,
            #101215 100%
        );

    overflow-x: hidden;
}

body::before {
    content: "";

    position: fixed;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    opacity: 0.23;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.52) 1px,
            transparent 1.15px
        );

    background-size:
        18px
        18px;
}

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 110px;

    z-index: 20;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        rgba(17, 19, 22, 0.74);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border-bottom:
        1px
        solid
        rgba(255, 255, 255, 0.23);

    box-shadow:
        0
        12px
        35px
        rgba(0, 0, 0, 0.18);
}

.header::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.38),
            transparent
        );
}

.header-dots {
    position: absolute;

    inset: 0;

    opacity: 0.2;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.75) 1px,
            transparent 1.2px
        );

    background-size:
        18px
        18px;
}

.header-content {
    position: relative;

    z-index: 2;

    width: 100%;

    padding:
        0
        55px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.site-name {
    color: white;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 24px;
    font-weight: 700;

    letter-spacing: -0.035em;

    text-decoration: none;

    text-shadow:
        0
        3px
        16px
        rgba(0, 0, 0, 0.25);
}

.back-button {
    min-width: 145px;

    padding:
        14px
        21px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px
        solid
        var(--orange-border);

    border-radius: 12px;

    color: var(--orange);

    background:
        var(--orange-background);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.back-button:hover {
    transform:
        translateY(-2px);

    background:
        rgba(151, 91, 40, 0.25);

    border-color:
        rgba(255, 173, 91, 0.68);
}

.page {
    position: relative;

    z-index: 1;

    width:
        min(
            1450px,
            calc(100% - 70px)
        );

    margin:
        0
        auto;

    padding:
        175px
        0
        120px;
}

.page-heading {
    max-width: 850px;

    margin:
        0
        auto
        65px;

    text-align: center;
}

.small-title {
    margin-bottom: 13px;

    color:
        rgba(
            255,
            255,
            255,
            0.48
        );

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.25em;
}

h1 {
    color: white;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(
            70px,
            8vw,
            110px
        );

    font-weight: 700;

    line-height: 0.94;

    letter-spacing: -0.065em;

    text-shadow:
        0
        5px
        30px
        rgba(0, 0, 0, 0.28);
}

.description {
    max-width: 650px;

    margin:
        24px
        auto
        0;

    color: var(--muted);

    font-size: 16px;
    font-weight: 500;

    line-height: 1.75;
}

.gallery {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        45px
        32px;
}

.gallery-item {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    border: 0;

    color: inherit;

    background: transparent;

    font: inherit;

    text-align: left;

    cursor: pointer;
}

.image-preview {
    position: relative;

    width: 100%;
    height: 300px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        1px
        solid
        rgba(255, 255, 255, 0.16);

    border-radius: 18px;

    background:
        rgba(7, 9, 11, 0.48);

    box-shadow:
        0
        22px
        50px
        rgba(0, 0, 0, 0.24);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.image-preview img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.view-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    opacity: 0;

    background:
        rgba(5, 6, 8, 0.52);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transition:
        opacity 0.2s ease;
}

.view-overlay span {
    padding:
        11px
        17px;

    border:
        1px
        solid
        rgba(255, 255, 255, 0.24);

    border-radius: 10px;

    color: white;

    background:
        rgba(25, 27, 31, 0.75);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 13px;
    font-weight: 600;
}

.gallery-item:hover .image-preview {
    transform:
        translateY(-4px);

    border-color:
        rgba(255, 173, 91, 0.46);

    box-shadow:
        0
        28px
        60px
        rgba(0, 0, 0, 0.32);
}

.gallery-item:hover .view-overlay {
    opacity: 1;
}

.item-info {
    margin-top: 17px;

    display: flex;

    align-items: center;

    gap: 13px;
}

.item-number {
    width: 39px;
    min-width: 39px;
    height: 39px;

    display: grid;

    place-items: center;

    border:
        1px
        solid
        rgba(255, 173, 91, 0.34);

    border-radius: 10px;

    color: #ffd09b;

    background:
        rgba(151, 91, 40, 0.12);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 10px;
    font-weight: 700;
}

.item-info h2 {
    color: white;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 20px;
    font-weight: 600;

    letter-spacing: -0.03em;
}

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        45px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}

.lightbox-background {
    position: absolute;

    inset: 0;

    background:
        rgba(5, 6, 8, 0.87);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.lightbox-content {
    position: relative;

    z-index: 2;

    width:
        min(
            1200px,
            94vw
        );

    max-height: 92vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}

.lightbox-image-wrapper {
    width: 100%;
    max-height: 78vh;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        1px
        solid
        rgba(255, 255, 255, 0.22);

    border-radius: 18px;

    background:
        rgba(9, 11, 13, 0.82);

    box-shadow:
        0
        30px
        90px
        rgba(0, 0, 0, 0.5);
}

.lightbox-image-wrapper img {
    max-width: 100%;
    max-height: 78vh;

    display: block;

    object-fit: contain;
}

.lightbox-content h2 {
    margin-top: 18px;

    color: white;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 24px;
    font-weight: 600;
}

.lightbox-content p {
    margin-top: 5px;

    color:
        rgba(
            255,
            255,
            255,
            0.32
        );

    font-size: 12px;
}

.close-lightbox {
    position: absolute;

    top: -18px;
    right: -18px;

    z-index: 5;

    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    border:
        1px
        solid
        rgba(255, 255, 255, 0.24);

    border-radius: 50%;

    color: white;

    background:
        rgba(22, 24, 28, 0.92);

    font-size: 27px;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

.close-lightbox:hover {
    transform:
        scale(1.07);

    background:
        rgba(40, 42, 47, 0.95);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 1100px) {

    .gallery {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}

@media (max-width: 750px) {

    .header {
        height: 95px;
    }

    .header-content {
        padding:
            0
            28px;
    }

    .site-name {
        font-size: 19px;
    }

    .back-button {
        min-width: auto;

        padding:
            11px
            15px;

        font-size: 12px;
    }

    .page {
        width:
            calc(
                100% - 32px
            );

        padding-top: 140px;
    }

    .gallery {
        grid-template-columns: 1fr;

        gap: 48px;
    }

    .image-preview {
        height: auto;

        min-height: 260px;
        max-height: 500px;
    }

    .image-preview img {
        height: auto;

        max-height: 500px;
    }

}

@media (max-width: 520px) {

    .header-content {
        padding:
            0
            18px;
    }

    .site-name {
        font-size: 15px;
    }

    .back-button {
        padding:
            9px
            12px;

        font-size: 11px;
    }

    .page {
        width:
            calc(
                100% - 22px
            );

        padding-top: 125px;
    }

    h1 {
        font-size: 58px;
    }

    .description {
        font-size: 14px;
    }

    .image-preview {
        min-height: 210px;

        border-radius: 14px;
    }

    .item-info h2 {
        font-size: 18px;
    }

    .lightbox {
        padding:
            20px;
    }

    .lightbox-content {
        width: 100%;
    }

    .close-lightbox {
        top: -16px;
        right: -8px;

        width: 40px;
        height: 40px;

        font-size: 23px;
    }

    .lightbox-image-wrapper {
        border-radius: 13px;
    }

}