body.v2-gallery-page {
    background: #fff;
}

.v2-g-hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
    min-height: 540px;
    background: #fff;
    overflow: hidden;
}

.v2-g-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 42px 36px 32px max(20px, calc((100vw - var(--v2-container)) / 2));
}

.v2-g-hero__kicker,
.v2-g-hero__line {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.v2-g-hero__kicker {
    color: #1a1a1e;
}

.v2-g-hero h1 {
    margin: 10px 0 0;
    max-width: 640px;
    color: #111;
    font-family: var(--v2-display);
    font-size: clamp(4.8rem, 7.2vw, 7.4rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 0.82;
    text-transform: uppercase;
}

.v2-g-hero h1 span {
    color: var(--v2-red);
}

.v2-g-hero__lead {
    margin: 16px 0 0;
    color: #151518;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.v2-g-hero__text {
    max-width: 460px;
    margin: 8px 0 0;
    color: #6d6d76;
    font-size: 15px;
    line-height: 1.5;
}

.v2-g-hero__line {
    margin-top: 22px;
    color: #b0b0b8;
    font-size: 11px;
    letter-spacing: 0.22em;
}

.v2-g-hero__media {
    position: relative;
    min-height: 540px;
}

.v2-g-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.v2-g-hero__media::before,
.v2-g-hero__media::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -12%;
    bottom: -12%;
    transform: skewX(-16deg);
    pointer-events: none;
}

.v2-g-hero__media::before {
    left: -18px;
    z-index: 3;
    width: 48px;
    background: var(--v2-red);
}

.v2-g-hero__media::after {
    left: -86px;
    width: 86px;
    background: #fff;
}

.v2-g-hero__sign {
    position: absolute;
    right: 36px;
    bottom: 28px;
    z-index: 4;
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    line-height: 0.8;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.v2-g-board {
    padding-bottom: 28px;
}

.v2-g-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 26px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 16, 22, 0.08);
}

.v2-g-bar nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.v2-g-bar nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    color: #1c1c22;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.v2-g-bar nav a .v2-icon {
    width: 16px;
    height: 16px;
}

.v2-g-bar nav a.is-active {
    background: var(--v2-red);
    color: #fff;
}

.v2-g-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(280px, 100%);
    min-height: 46px;
    margin-left: auto;
    padding: 0 12px 0 14px;
    border: 1px solid #ececf1;
    border-radius: 12px;
    background: #fafafa;
}

.v2-g-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #1c1c22;
    outline: none;
}

.v2-g-search button {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8d8d98;
    cursor: pointer;
}

.v2-g-album {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

.v2-g-album h2 {
    margin: 0;
    font-family: var(--v2-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.9;
    text-transform: uppercase;
}

.v2-g-album a {
    color: var(--v2-red);
    font-size: 14px;
    font-weight: 800;
}

.v2-g-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.v2-g-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    aspect-ratio: 16 / 10;
}

.v2-g-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.v2-g-card:hover img {
    transform: scale(1.04);
}

.v2-g-card__count {
    position: absolute;
    left: 10px;
    bottom: 10px;
    min-width: 28px;
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(8, 8, 10, 0.62);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.v2-g-empty {
    margin: 12px 0 36px;
    color: #6b6b74;
    font-size: 16px;
}

.v2-g-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 8px;
}

.v2-g-pager a,
.v2-g-pager > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ececf1;
    border-radius: 8px;
    background: #fff;
    color: #1c1c22;
    font-size: 14px;
    font-weight: 700;
}

.v2-g-pager a.is-active {
    border-color: var(--v2-red);
    background: var(--v2-red);
    color: #fff;
}

.v2-g-pager .is-prev .v2-icon,
.v2-g-pager span.is-off .v2-icon {
    transform: rotate(180deg);
}

.v2-g-pager .v2-icon {
    width: 16px;
    height: 16px;
}

.v2-g-pager span.is-off {
    color: #c5c5cc;
}

.v2-g-viewer[hidden] {
    display: none !important;
}

.v2-g-viewer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
}

.v2-g-viewer img {
    max-width: min(1200px, calc(100vw - 140px));
    max-height: calc(100vh - 80px);
    object-fit: contain;
}

.v2-g-viewer button {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.v2-g-viewer [data-v2-g-close] {
    top: 18px;
    right: 18px;
}

.v2-g-viewer [data-v2-g-prev],
.v2-g-viewer [data-v2-g-next] {
    top: 50%;
    transform: translateY(-50%);
}

.v2-g-viewer [data-v2-g-prev] {
    left: 18px;
}

.v2-g-viewer [data-v2-g-prev] .v2-icon {
    transform: rotate(180deg);
}

.v2-g-viewer [data-v2-g-next] {
    right: 18px;
}

@media (max-width: 1100px) {
    .v2-g-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .v2-g-hero__copy {
        padding: 36px 0 28px;
        width: min(var(--v2-container), calc(100% - 40px));
        margin-inline: auto;
    }

    .v2-g-hero__media {
        min-height: 320px;
    }

    .v2-g-hero__media::before,
    .v2-g-hero__media::after {
        display: none;
    }

    .v2-g-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .v2-g-hero h1 {
        font-size: clamp(3.4rem, 16vw, 4.8rem);
    }

    .v2-g-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .v2-g-search {
        width: 100%;
        margin-left: 0;
    }

    .v2-g-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .v2-g-viewer img {
        max-width: calc(100vw - 24px);
    }

    .v2-g-viewer [data-v2-g-prev] {
        left: 8px;
    }

    .v2-g-viewer [data-v2-g-next] {
        right: 8px;
    }
}
