
    .gallery-section {
        width: 100%;
        padding: 80px 20px;
        background: #ffffff;
        color: #202521;
    }

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

    .gallery-header {
        max-width: 680px;
        margin: 0 auto 40px;
        text-align: center;
    }

    .gallery-title {
        margin: 0;
        color: #202521;
        font-size: clamp(2rem, 4vw, 3.15rem);
        line-height: 1.1;
        letter-spacing: -0.035em;
        font-weight: 700;
    }

    .gallery-description {
        max-width: 620px;
        margin: 17px auto 0;
        color: #68706a;
        font-size: 1rem;
        line-height: 1.7;
    }

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

    .gallery-item {
        position: relative;
        display: block;
        width: 100%;
        min-width: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-radius: 14px;
        background: #eeece7;
        cursor: pointer;
        text-align: left;
        aspect-ratio: 1 / 1;
        isolation: isolate;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        aspect-ratio: 1.12 / 1;
    }

    .gallery-item:focus-visible {
        outline: 3px solid #766247;
        outline-offset: 3px;
    }

    .gallery-item__media {
        position: absolute;
        inset: 0;
        display: block;
        overflow: hidden;
    }

    .gallery-item__image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 240ms ease;
    }

    .gallery-item__overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(20, 24, 21, 0);
        opacity: 0;
        transition:
            opacity 200ms ease,
            background-color 200ms ease;
    }

    .gallery-item__icon {
        width: 46px;
        height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.42);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
        transform: translateY(5px);
        transition: transform 200ms ease;
    }

    .gallery-item:hover .gallery-item__image {
        transform: scale(1.035);
    }

    .gallery-item:hover .gallery-item__overlay,
    .gallery-item:focus-visible .gallery-item__overlay {
        opacity: 1;
        background: rgba(20, 24, 21, 0.18);
    }

    .gallery-item:hover .gallery-item__icon,
    .gallery-item:focus-visible .gallery-item__icon {
        transform: translateY(0);
    }

    /*
    |--------------------------------------------------------------------------
    | Lightbox
    |--------------------------------------------------------------------------
    */

    .gallery-lightbox {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: rgba(10, 12, 11, 0.94);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 180ms ease,
            visibility 180ms ease;
    }

    .gallery-lightbox.is-open {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .gallery-lightbox__backdrop {
        position: absolute;
        inset: 0;
        cursor: pointer;
    }

    .gallery-lightbox__content {
        position: relative;
        z-index: 1;
        width: min(1400px, 100%);
        height: min(94vh, 900px);
        display: flex;
        flex-direction: column;
    }

    .gallery-lightbox__topbar {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0 14px;
    }

    .gallery-lightbox__counter {
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.84rem;
        line-height: 1;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .gallery-lightbox__close {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        cursor: pointer;
        transition:
            background-color 160ms ease,
            border-color 160ms ease;
    }

    .gallery-lightbox__close:hover {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.38);
    }

    .gallery-lightbox__close:focus-visible,
    .gallery-lightbox__navigation:focus-visible {
        outline: 3px solid rgba(255, 255, 255, 0.7);
        outline-offset: 3px;
    }

    .gallery-lightbox__viewer {
        position: relative;
        flex: 1;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-lightbox__figure {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0 68px;
    }

    .gallery-lightbox__image {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 100%;
        display: block;
        object-fit: contain;
        border-radius: 8px;
        user-select: none;
        -webkit-user-drag: none;
    }

    .gallery-lightbox__navigation {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff;
        cursor: pointer;
        transform: translateY(-50%);
        transition:
            background-color 160ms ease,
            border-color 160ms ease;
    }

    .gallery-lightbox__navigation:hover {
        background: rgba(255, 255, 255, 0.17);
        border-color: rgba(255, 255, 255, 0.35);
    }

    .gallery-lightbox__navigation--previous {
        left: 4px;
    }

    .gallery-lightbox__navigation--next {
        right: 4px;
    }

    body.gallery-lightbox-open {
        overflow: hidden;
    }

    @media (min-width: 640px) {
        .gallery-section {
            padding: 90px 24px;
        }

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

        .gallery-item:nth-child(1) {
            grid-row: span 2;
            aspect-ratio: auto;
        }

        .gallery-item:nth-child(4) {
            aspect-ratio: 1 / 1;
        }
    }

    @media (min-width: 1024px) {
        .gallery-section {
            padding: 100px 28px;
        }

        .gallery-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            grid-auto-rows: 230px;
            gap: 18px;
        }

        .gallery-item {
            aspect-ratio: auto;
        }

        .gallery-item:nth-child(1) {
            grid-column: span 2;
            grid-row: span 2;
        }

        .gallery-item:nth-child(4) {
            grid-column: span 2;
            aspect-ratio: auto;
        }

        .gallery-lightbox {
            padding: 24px;
        }

        .gallery-lightbox__content {
            height: min(92vh, 920px);
        }
    }

    @media (max-width: 639px) {
        .gallery-section {
            padding: 64px 16px;
        }

        .gallery-header {
            margin-bottom: 30px;
        }

        .gallery-grid {
            gap: 10px;
        }

        .gallery-item {
            border-radius: 11px;
        }

        .gallery-lightbox {
            padding: 12px;
        }

        .gallery-lightbox__content {
            width: 100%;
            height: 100%;
        }

        .gallery-lightbox__topbar {
            padding-bottom: 10px;
        }

        .gallery-lightbox__close {
            width: 42px;
            height: 42px;
        }

        .gallery-lightbox__figure {
            padding: 0 2px;
        }

        .gallery-lightbox__navigation {
            top: auto;
            bottom: 12px;
            width: 44px;
            height: 44px;
            transform: none;
        }

        .gallery-lightbox__navigation--previous {
            left: 8px;
        }

        .gallery-lightbox__navigation--next {
            right: 8px;
        }

        .gallery-lightbox__image {
            max-height: calc(100% - 72px);
            border-radius: 6px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .gallery-item__image,
        .gallery-item__overlay,
        .gallery-item__icon,
        .gallery-lightbox,
        .gallery-lightbox__close,
        .gallery-lightbox__navigation {
            transition: none;
        }
    }