.h2--inner {
    min-height: 100vh;
    overflow-x: clip;
    background:
        radial-gradient(circle at 85% 8%, rgba(126, 53, 232, 0.12), transparent 28rem),
        var(--hbg);
}

.h2--inner .h2-header {
    position: sticky;
    top: 0;
    background: rgba(7, 8, 15, 0.88);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.h2--inner .h2-footer-v18 {
    margin-top: 64px;
}

.g2-page {
    width: var(--shell);
    margin: 0 auto;
    padding: 54px 0 24px;
}

.g2-hero,
.g2-title-block {
    max-width: 920px;
    padding: 34px 0 38px;
}

.g2-hero h1,
.g2-title-block h1 {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(38px, 5vw, 76px);
    line-height: 0.98;
}

.g2-hero > p:last-child,
.g2-lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--hmuted);
    font-size: clamp(16px, 1.6vw, 21px);
}

.g2-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.g2-gallery-grid .h2-gallery-card {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid var(--hline);
    border-radius: 18px;
    background: var(--hcard);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.15);
}

.g2-gallery-grid .h2-gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    transition: transform 280ms ease, filter 280ms ease;
}

.g2-gallery-grid .h2-gallery-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.08);
}

.g2-gallery-grid .h2-gallery-card span {
    position: absolute;
    inset: auto 0 0;
    padding: 74px 18px 17px;
    color: #fff;
    background: linear-gradient(transparent, rgba(3, 4, 10, 0.94));
}

.g2-gallery-grid .h2-gallery-card strong,
.g2-gallery-grid .h2-gallery-card small {
    display: block;
}

.g2-gallery-grid .h2-gallery-card strong {
    margin: 3px 0;
    font-size: 19px;
    line-height: 1.16;
}

.g2-gallery-grid .h2-gallery-card small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
}

.g2-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 38px 0 8px;
}

.g2-pagination a,
.g2-button {
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--hviolet);
    padding: 11px 18px;
    color: #fff !important;
    font: 700 13px/1 Roboto, Arial, sans-serif;
    cursor: pointer;
}

.g2-pagination span {
    color: var(--hmuted);
    font-size: 13px;
}

.g2-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    overflow-x: auto;
    color: var(--hmuted);
    font-size: 13px;
    white-space: nowrap;
}

.g2-breadcrumb a:hover {
    color: var(--hviolet);
}

.g2-title-block {
    padding-bottom: 28px;
}

.g2-title-block h1 {
    font-size: clamp(34px, 4.1vw, 66px);
}

.g2-title-block--photo {
    padding-bottom: 16px;
}

.g2-date,
.g2-count {
    display: inline-block;
    margin: 15px 10px 0 0;
    border: 1px solid var(--hline);
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--hmuted);
    font-size: 12px;
}

.g2-photo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.g2-photo-tile {
    position: relative;
    min-width: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid var(--hline);
    border-radius: 13px;
    background: var(--hcard);
}

.g2-photo-tile picture,
.g2-photo-tile img {
    display: block;
    width: 100%;
    height: 100%;
}

.g2-photo-tile img {
    object-fit: cover;
    transition: transform 240ms ease, filter 240ms ease;
}

.g2-photo-tile:hover img,
.g2-photo-tile:focus-visible img {
    transform: scale(1.045);
    filter: brightness(1.08);
}

.g2-photo-tile span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 999px;
    background: rgba(4, 5, 11, 0.72);
    padding: 4px 8px;
    color: #fff;
    font-size: 10px;
    opacity: 0;
    transition: opacity 180ms ease;
}

.g2-photo-tile:hover span,
.g2-photo-tile:focus-visible span {
    opacity: 1;
}

.g2-actions-row,
.g2-photo-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 34px 0;
}

.g2-button--secondary {
    border-color: var(--hline);
    background: var(--hcard);
    color: var(--hink) !important;
}

.g2-empty {
    border: 1px solid var(--hline);
    border-radius: 16px;
    background: var(--hcard);
    padding: 30px;
    color: var(--hmuted);
    text-align: center;
}

.g2-photo-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 8px 0 16px;
}

.g2-photo-navigation a {
    border: 1px solid var(--hline);
    border-radius: 13px;
    background: var(--hcard);
    padding: 13px 16px;
    font-weight: 700;
}

.g2-photo-navigation a:last-child {
    text-align: right;
}

.g2-main-photo {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--hline);
    border-radius: 20px;
    background: #05060b;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.g2-main-photo picture,
.g2-main-photo img {
    display: block;
}

.g2-main-photo img {
    width: 100%;
    max-height: min(78vh, 1200px);
    object-fit: contain;
    margin: 0 auto;
}

.g2-main-photo figcaption {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 13px 17px;
    color: #c8c5cf;
    font-size: 13px;
}

.g2-photo-counter {
    margin: 13px 0;
    color: var(--hmuted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
}

.g2-photo-tools {
    margin-top: 25px;
}

.g2-share {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.g2-share-menu {
    position: absolute;
    z-index: 4;
    top: calc(100% + 9px);
    left: 0;
    min-width: 180px;
    overflow: hidden;
    border: 1px solid var(--hline);
    border-radius: 13px;
    background: var(--hcard);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.g2-share-menu a {
    display: block;
    padding: 10px 13px;
}

.g2-share-menu a:hover {
    background: color-mix(in srgb, var(--hviolet) 16%, transparent);
}

.g2-share-status {
    color: var(--hmuted);
    font-size: 12px;
}

.g2-photo-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    max-width: 980px;
    margin: 28px auto;
}

.g2-photo-meta > div {
    border: 1px solid var(--hline);
    border-radius: 13px;
    background: var(--hcard);
    padding: 12px 14px;
}

.g2-photo-meta dt {
    margin-bottom: 4px;
    color: var(--hmuted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.g2-photo-meta dd {
    margin: 0;
    font-weight: 700;
}

.g2-related {
    margin-top: 54px;
}

.g2-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.g2-section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
}

.g2-section-heading > a {
    color: var(--hviolet);
    font-weight: 800;
    white-space: nowrap;
}

.g2-photo-grid--related {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.g2-page .h2-real-ad {
    width: 100%;
    margin-top: 42px;
}

html[data-h2-theme="light"] .h2--inner .h2-header {
    background: rgba(18, 15, 28, 0.9);
}

@media (max-width: 1100px) {
    .g2-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .g2-photo-grid--related {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .g2-page {
        padding-top: 28px;
    }

    .g2-hero,
    .g2-title-block {
        padding-top: 24px;
    }

    .g2-gallery-grid {
        grid-template-columns: 1fr;
    }

    .g2-gallery-grid .h2-gallery-card,
    .g2-gallery-grid .h2-gallery-card img {
        min-height: 225px;
    }

    .g2-photo-grid,
    .g2-photo-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .g2-photo-tile {
        border-radius: 10px;
    }

    .g2-photo-navigation {
        gap: 7px;
    }

    .g2-photo-navigation a {
        padding: 11px 10px;
        font-size: 12px;
    }

    .g2-main-photo {
        margin-inline: -3vw;
        border-radius: 12px;
    }

    .g2-photo-tools,
    .g2-share {
        align-items: stretch;
        width: 100%;
    }

    .g2-photo-tools > *,
    .g2-share .g2-button {
        flex: 1 1 auto;
        text-align: center;
    }

    .g2-share-menu {
        right: 0;
    }

    .g2-section-heading {
        align-items: start;
        flex-direction: column;
    }
}

