.object-photos-page {
    padding: 0 0 7em;
    color: #20201e;
}

.object-photos-page__header {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 46px;
}

.object-photos-page__heading {
    margin: 0;
    font-family: "Arsenal", serif;
    font-size: 5rem;
    font-weight: 400;
    line-height: .96;
}

.object-photos-page__lead {
    max-width: 600px;
    margin: 0 0 .35em auto;
    font-family: "TT Interfaces", sans-serif;
    font-size: 1.125rem;
    line-height: 1.55;
}

.object-photos__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 24px;
}

.object-photos__card {
    min-width: 0;
}

.object-photos__open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.object-photos__image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #efefec;
}

.object-photos__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.object-photos__count {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 58px;
    min-height: 36px;
    padding: 8px 12px;
    color: #20201e;
    font-family: "TT Interfaces", sans-serif;
    font-size: .875rem;
    line-height: 1;
    background: #DEDE63;
}

.object-photos__count-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 13px;
    border: 1px solid currentColor;
}

.object-photos__count-icon::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 11px;
    margin: -4px 0 0 3px;
    border: 1px solid currentColor;
}

.object-photos__view {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 18px;
    color: #fff;
    font-family: "TT Interfaces", sans-serif;
    font-size: .875rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}

.object-photos__image-wrap::after {
    content: '';
    position: absolute;
    inset: 55% 0 0;
    z-index: 1;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .46));
    opacity: 0;
    transition: opacity .25s ease;
}

.object-photos__content {
    display: block;
    padding-top: 22px;
}

.object-photos__title {
    display: block;
    font-family: "Arsenal", serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.08;
}

.object-photos__description {
    display: block;
    margin-top: 14px;
    color: #52524e;
    font-family: "TT Interfaces", sans-serif;
    font-size: .9375rem;
    line-height: 1.55;
}

.object-photos__open:hover .object-photos__image,
.object-photos__open:focus-visible .object-photos__image {
    transform: scale(1.035);
}

.object-photos__open:hover .object-photos__image-wrap::after,
.object-photos__open:focus-visible .object-photos__image-wrap::after,
.object-photos__open:hover .object-photos__view,
.object-photos__open:focus-visible .object-photos__view {
    opacity: 1;
}

.object-photos__open:hover .object-photos__view,
.object-photos__open:focus-visible .object-photos__view {
    transform: translateY(0);
}

.object-photos__open:focus-visible {
    outline: 2px solid #DEDE63;
    outline-offset: 5px;
}

.object-gallery {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    background: #1f1f1d;
}

.object-gallery::backdrop {
    background: rgba(20, 20, 18, .94);
}

.object-gallery__shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    padding: 22px 28px 18px;
}

.object-gallery__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 48px;
    gap: 24px;
    align-items: center;
    min-height: 54px;
    padding-bottom: 14px;
}

.object-gallery__title {
    margin: 0;
    overflow: hidden;
    font-family: "Arsenal", serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.object-gallery__counter {
    color: rgba(255, 255, 255, .68);
    font-family: "TT Interfaces", sans-serif;
    font-size: .875rem;
}

.object-gallery__close,
.object-gallery__arrow {
    position: relative;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.object-gallery__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
}

.object-gallery__close:hover,
.object-gallery__close:focus-visible {
    color: #20201e;
    border-color: #DEDE63;
    background: #DEDE63;
}

.object-gallery__stage {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    gap: 20px;
    align-items: center;
    min-height: 0;
}

.object-gallery__figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    justify-items: center;
    height: 100%;
    min-height: 0;
    margin: 0;
}

.object-gallery__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    opacity: 1;
    transition: opacity .16s ease;
}

.object-gallery__image.is-changing {
    opacity: .2;
}

.object-gallery__caption {
    min-height: 18px;
    color: rgba(255, 255, 255, .64);
    font-family: "TT Interfaces", sans-serif;
    font-size: .8125rem;
    line-height: 1.35;
    text-align: center;
}

.object-gallery__arrow {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
}

.object-gallery__arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
}

.object-gallery__arrow--prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.object-gallery__arrow--next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.object-gallery__arrow:hover,
.object-gallery__arrow:focus-visible {
    color: #20201e;
    border-color: #DEDE63;
    background: #DEDE63;
}

.object-gallery__arrow[hidden] {
    display: none;
}

.object-gallery__thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    min-height: 72px;
    padding-top: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.object-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.object-gallery__thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    opacity: .5;
    background: #2e2e2b;
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease;
}

.object-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.object-gallery__thumb:hover,
.object-gallery__thumb:focus-visible,
.object-gallery__thumb.is-active {
    border-color: #DEDE63;
    opacity: 1;
}

body.object-gallery-is-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .object-photos-page {
        padding: 0 0 6em;
    }

    .object-photos-page__header {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 46px;
    }

    .object-photos-page__heading {
        font-size: 4rem;
    }

    .object-photos-page__lead {
        margin-left: 0;
    }

    .object-photos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 52px 20px;
    }

    .object-gallery__stage {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        gap: 8px;
    }

    .object-gallery__arrow {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 575px) {
    .object-photos-page {
        padding: 32px 0 4.5em;
    }

    .object-photos-page__header {
        margin-bottom: 37px;
    }

    .object-photos-page__heading {
        font-size: 3rem;
    }

    .object-photos-page__lead {
        font-size: 1rem;
    }

    .object-photos__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 46px;
    }

    .object-photos__title {
        font-size: 1.75rem;
    }

    .object-gallery__shell {
        padding: 10px 10px 8px;
    }

    .object-gallery__header {
        grid-template-columns: minmax(0, 1fr) auto 42px;
        gap: 10px;
        min-height: 48px;
        padding-bottom: 8px;
    }

    .object-gallery__title {
        font-size: 1.15rem;
    }

    .object-gallery__close {
        width: 42px;
        height: 42px;
    }

    .object-gallery__stage {
        position: relative;
        display: block;
    }

    .object-gallery__figure {
        height: 100%;
    }

    .object-gallery__arrow {
        position: absolute;
        z-index: 2;
        top: 50%;
        width: 42px;
        height: 42px;
        background: rgba(31, 31, 29, .64);
        transform: translateY(-50%);
    }

    .object-gallery__arrow--prev {
        left: 4px;
    }

    .object-gallery__arrow--next {
        right: 4px;
    }

    .object-gallery__caption {
        padding: 0 48px;
    }

    .object-gallery__thumbs {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .object-photos__image,
    .object-photos__view,
    .object-photos__image-wrap::after,
    .object-gallery__image,
    .object-gallery__thumb {
        transition: none;
    }
}

