



img {
    max-width: 100%;
}

.page {
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: min(100% - 48px, 1440px);
    margin: 0 auto;
}

/* HEADER */

.header {
    padding: 24px 0;
    border-bottom: 1px solid rgba(17, 215, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    font-family: "ForestSmooth", "Oswald", Arial, sans-serif;
    font-size: 22px;
    letter-spacing: 0.55em;
    color: rgba(255, 255, 255, 0.84);
}

.back-button {
    min-height: 44px;
    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid rgba(37, 154, 220, 0.72);
    border-radius: 4px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;

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

.back-button:hover {
    color: #ffffff;
    border-color: #11D7FF;
    background: rgba(17, 215, 255, 0.07);
}

/* HERO */

.exhibition-hero {
    padding: 96px 0 78px;
}

.exhibition-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: end;
    gap: 80px;
}

.exhibition-label {
    margin: 0 0 40px;

    color: #11D7FF;
    font-size: 12px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.exhibition-title {
    margin: 0;

    font-family: "ForestSmooth", "Oswald", Arial, sans-serif;
    font-size: clamp(72px, 10vw, 154px);
    line-height: 0.9;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.exhibition-description {
    margin: 0;

    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    line-height: 1.75;
}

/* FEATURED IMAGE */

.featured-artwork {
    padding-bottom: 110px;
}

.featured-artwork-card {
    position: relative;

    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 0;

    overflow: hidden;
    border: 1px solid rgba(33, 151, 218, 0.56);
    background: #02070b;

    cursor: pointer;
}

.featured-artwork-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
            linear-gradient(
                    0deg,
                    rgba(3, 10, 16, 0.92) 0%,
                    rgba(3, 10, 16, 0.12) 46%,
                    rgba(3, 10, 16, 0.02) 76%
            );
}

.featured-artwork-card img {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    transition: transform 0.8s ease;
}

.featured-artwork-card:hover img {
    transform: scale(1.025);
}

.featured-artwork-info {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 42px;
    z-index: 4;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.artwork-number {
    display: block;
    margin-bottom: 10px;

    color: #11D7FF;
    font-size: 12px;
    letter-spacing: 0.22em;
}

.featured-artwork-info h2 {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 400;
}

.featured-artwork-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
}

.open-mark {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(17, 215, 255, 0.68);
    color: #ffffff;
    font-size: 24px;
}

/* GALLERY */

.gallery-section {
    padding-bottom: 120px;
}

.gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 44px;
}

.gallery-head h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 300;
}

.gallery-head p {
    max-width: 370px;
    margin: 0;

    color: rgba(255, 255, 255, 0.44);
    font-size: 13px;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 74px;
    gap: 22px;
}

.gallery-card {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(33, 151, 218, 0.45);
    background: #02070b;

    cursor: pointer;

    transition:
            transform 0.3s ease,
            border-color 0.3s ease,
            box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: #11D7FF;
    box-shadow: 0 22px 48px rgba(17, 215, 255, 0.1);
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
            linear-gradient(
                    0deg,
                    rgba(2, 8, 12, 0.9) 0%,
                    rgba(2, 8, 12, 0.04) 58%
            );
}

.gallery-card img {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.035);
}

.gallery-card-info {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 4;
}

.gallery-card-info span {
    display: block;
    margin-bottom: 6px;

    color: #11D7FF;
    font-size: 11px;
    letter-spacing: 0.18em;
}

.gallery-card-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
}

.gallery-card--wide {
    grid-column: span 7;
    grid-row: span 5;
}

.gallery-card--vertical {
    grid-column: span 5;
    grid-row: span 7;
}

.gallery-card--square {
    grid-column: span 5;
    grid-row: span 5;
}

/*
  На широком экране пять строк получаются слишком низкими.
  Шесть строк делают карточку почти квадратной.
*/
@media (min-width: 1280px) {
    .gallery-card--square {
        grid-row: span 6;
    }
}

.gallery-card--square img {
    object-fit: cover;
    object-position: center;
}
.gallery-card--large {
    grid-column: span 7;
    grid-row: span 7;
}

/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 76px 88px 38px;

    background: rgba(0, 4, 8, 0.95);
    backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
}

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

.lightbox-content {
    position: relative;

    width: min(100%, 1280px);
    height: min(82vh, 900px);

    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    display: block;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    border: 1px solid rgba(17, 215, 255, 0.55);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(17, 215, 255, 0.62);
    background: rgba(3, 10, 16, 0.82);
    color: #ffffff;

    cursor: pointer;
}

.lightbox-close {
    top: -56px;
    right: 0;

    width: 42px;
    height: 42px;

    border-radius: 50%;
    font-size: 30px;
}

.lightbox-arrow {
    top: 50%;
    width: 48px;
    height: 48px;

    transform: translateY(-50%);
    font-size: 28px;
}

.lightbox-arrow--prev {
    left: -70px;
}

.lightbox-arrow--next {
    right: -70px;
}

.lightbox-caption {
    position: absolute;
    left: 0;
    bottom: -42px;

    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

/* FOOTER */

.footer {
    padding: 38px 0 46px;
    border-top: 1px solid rgba(17, 215, 255, 0.08);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.footer-link {
    color: #11D7FF;
}

/* TABLET */

@media (max-width: 1024px) {
    .container {
        width: min(100% - 36px, 920px);
    }

    .exhibition-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }



    .gallery-grid {
        grid-auto-rows: 64px;
    }

    .lightbox {
        padding-left: 68px;
        padding-right: 68px;
    }

    .lightbox-arrow--prev {
        left: -56px;
    }

    .lightbox-arrow--next {
        right: -56px;
    }
}

/* MOBILE */

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 560px);
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .exhibition-hero {
        padding: 62px 0 48px;
    }

    .exhibition-title {
        font-size: 64px;
    }

    .featured-artwork {
        padding-bottom: 76px;
    }



    .featured-artwork-info {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .featured-artwork-info h2 {
        font-size: 26px;
    }

    .gallery-section {
        padding-bottom: 80px;
    }

    .gallery-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .gallery-head h2 {
        font-size: 32px;
    }

    .gallery-grid {
        display: flex;
        flex-direction: column;
    }

    .gallery-card {
        width: 100%;
        min-height: 330px;
    }

    .gallery-card--vertical {
        min-height: 520px;
    }
    .gallery-card--square {
        min-height: 0;
        aspect-ratio: 1 / 1;
    }
    .lightbox {
        padding: 72px 14px 34px;
    }

    .lightbox-content {
        height: 78vh;
    }

    .lightbox-arrow {
        top: auto;
        bottom: -60px;
    }

    .lightbox-arrow--prev {
        left: 0;
    }

    .lightbox-arrow--next {
        right: 0;
    }

    .lightbox-caption {
        bottom: -32px;
        max-width: calc(100% - 120px);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}