.galleryPhotoPage {
    --gallery-accent: #ef7c00;
    --gallery-ink: #202832;
    --gallery-muted: #69737e;
    --gallery-line: #e0e4e8;
    margin: 0 0 24px;
    color: var(--gallery-ink);
}

.galleryPhotoPage *,
.galleryPhotoPage *::before,
.galleryPhotoPage *::after {
    box-sizing: border-box;
}

.galleryPhotoPage__header {
    margin: 14px 0 13px;
}

.galleryPhotoPage__headerBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-bottom: 7px;
}

.galleryPhotoPage__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0;
    color: #66717c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.galleryPhotoPage__eyebrow i {
    color: var(--gallery-accent);
}

.galleryPhotoPage__title {
    max-width: 980px;
    margin: 0;
    color: #171d24;
    font-size: 27px;
    font-weight: 750;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.galleryPhotoPage__return {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid #d8dde2;
    border-radius: 6px;
    background: #fff;
    color: #45505b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.galleryPhotoPage__return:hover,
.galleryPhotoPage__return:focus {
    border-color: #bbc3ca;
    color: var(--gallery-accent);
    text-decoration: none;
}

.galleryPhotoPage__layout,
.galleryPhotoPage__main {
    min-width: 0;
    width: 100%;
}

.galleryPhotoPage__figure {
    margin: 0;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(25, 33, 42, .07);
    overflow: hidden;
}

.galleryPhotoPage__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    background: #11161c;
    overflow: hidden;
}

.galleryPhotoPage__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(78vh, 960px);
    margin: 0 auto;
    object-fit: contain;
}

.galleryPhotoPage__stageNav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    background: rgba(9, 12, 16, .62);
    color: #fff;
    font-size: 19px;
    text-decoration: none;
    transform: translateY(-50%);
    transition: background-color .16s ease, border-color .16s ease;
}

.galleryPhotoPage__stageNav--prev {
    left: 10px;
}

.galleryPhotoPage__stageNav--next {
    right: 10px;
}

.galleryPhotoPage__stageNav:hover,
.galleryPhotoPage__stageNav:focus {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(239, 124, 0, .92);
    color: #fff;
    text-decoration: none;
    outline: none;
}

.galleryPhotoPage__counter {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(9, 12, 16, .68);
    color: #fff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.galleryPhotoPage__caption {
    padding: 12px 15px 13px;
}

.galleryPhotoPage__captionText {
    margin: 0 0 8px;
    color: #252d36;
    font-size: 14px;
    line-height: 1.42;
}

.galleryPhotoPage__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 14px;
    color: var(--gallery-muted);
    font-size: 12px;
}

.galleryPhotoPage__meta span,
.galleryPhotoPage__meta time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.galleryPhotoPage__meta i {
    color: #89939d;
}

.galleryPhotoPage__navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    margin: 10px 0 14px;
}

.galleryPhotoPage__navigationLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #d7dde2;
    border-radius: 6px;
    background: #fff;
    color: #303a44;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.galleryPhotoPage__navigationLink--next {
    justify-content: flex-end;
    text-align: right;
}

.galleryPhotoPage__navigationLink:hover,
.galleryPhotoPage__navigationLink:focus {
    border-color: #efb375;
    background: #fffaf5;
    color: #cf6500;
    text-decoration: none;
}

.galleryPhotoPage__navigationPlaceholder {
    min-height: 38px;
}

.galleryPhotoPage__navigationCount {
    color: #69747e;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

#boxB.galleryPhotoPage__adBanner {
    min-height: 0;
    margin: 0 0 14px;
    border-top: 16px solid #e6e6e6;
    background: #fff;
    overflow: hidden;
    text-align: center;
}

.galleryPhotoPage__adBanner iframe,
.galleryPhotoPage__adBanner img {
    max-width: 100%;
}

.galleryPhotoPage__adLabel {
    padding: 3px;
    background: #e6e6e6;
    color: #757575;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 8px;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.galleryPhotoPage__thumbSection {
    margin: 0;
    border: 1px solid var(--gallery-line);
    border-radius: 8px;
    background: #fff;
}

.galleryPhotoPage__thumbHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 8px;
}

.galleryPhotoPage__sectionTitle {
    margin: 0;
    color: #29323b;
    font-size: 14px;
    font-weight: 750;
}

.galleryPhotoPage__thumbHint {
    color: #7b858f;
    font-size: 11px;
}

.galleryPhotoPage__thumbs {
    display: flex;
    gap: 7px;
    padding: 0 12px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding: 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.galleryPhotoPage__thumb {
    position: relative;
    display: block;
    flex: 0 0 106px;
    width: 106px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 5px;
    background: #e9edf0;
    overflow: hidden;
    scroll-snap-align: start;
}

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

.galleryPhotoPage__thumb:hover,
.galleryPhotoPage__thumb:focus {
    border-color: #f1aa62;
    outline: none;
}

.galleryPhotoPage__thumb.is-active {
    border-color: var(--gallery-accent);
    box-shadow: 0 0 0 1px rgba(239, 124, 0, .2);
}

.galleryPhotoPage__thumbNumber {
    position: absolute;
    right: 3px;
    bottom: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 10px;
    background: rgba(12, 16, 20, .72);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.galleryPhotoPage__message {
    padding: 18px;
    border: 1px solid #efd9ae;
    border-radius: 8px;
    background: #fff9eb;
    color: #695123;
    font-size: 14px;
}

@media (max-width: 767px) {
    .galleryPhotoPage {
        margin-bottom: 18px;
    }

    .galleryPhotoPage__header {
        margin: 10px 0 11px;
    }

    .galleryPhotoPage__headerBar {
        gap: 8px;
        margin-bottom: 6px;
    }

    .galleryPhotoPage__eyebrow {
        gap: 5px;
        font-size: 11px;
        letter-spacing: 0;
    }

    .galleryPhotoPage__title {
        font-size: 20px;
        line-height: 1.18;
    }

    .galleryPhotoPage__return {
        min-height: 29px;
        padding: 5px 7px;
        font-size: 11px;
    }

    .galleryPhotoPage__stage {
        min-height: 210px;
    }

    .galleryPhotoPage__image {
        max-height: 72vh;
    }

    .galleryPhotoPage__stageNav {
        width: 38px;
        height: 50px;
        font-size: 16px;
    }

    .galleryPhotoPage__stageNav--prev {
        left: 6px;
    }

    .galleryPhotoPage__stageNav--next {
        right: 6px;
    }

    .galleryPhotoPage__caption {
        padding: 10px 12px 11px;
    }

    .galleryPhotoPage__navigationLink {
        padding: 8px 9px;
    }

    #boxB.galleryPhotoPage__adBanner {
        border-top-width: 12px;
    }

    .galleryPhotoPage__thumb {
        flex-basis: 92px;
        width: 92px;
        height: 61px;
    }
}

@media (max-width: 400px) {
    .galleryPhotoPage__eyebrow,
    .galleryPhotoPage__return {
        font-size: 10px;
    }

    .galleryPhotoPage__title {
        font-size: 19px;
    }

    .galleryPhotoPage__thumbHint {
        font-size: 10px;
    }
}
