/* Photo-skin shop preview. Chrome remains desktop-only below. */
.coins-photo-card__flag {
    width: 88px;
    height: 58px;
    flex-shrink: 0;
    background-color: #2a3340;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}
.coins-photo-card .coins-old-glory-card__actions a:not(.coins-old-glory-card__unlock),
.coins-photo-card .coins-old-glory-card__title {
    color: #9a3412;
}

html.dark-mode .coins-photo-card .coins-section-copy {
    color: var(--dm-text-secondary, #bbb);
}
html.dark-mode .coins-photo-card .coins-old-glory-card__price,
html.dark-mode .coins-photo-card .coins-old-glory-card__title {
    color: var(--dm-text-primary, #f1f5f9);
}
html.dark-mode .coins-photo-card .coins-old-glory-card__actions a:not(.coins-old-glory-card__unlock) {
    color: var(--dm-text-secondary, #bbb);
}

/* Landscape photo: scale to viewport height so header wings match the rail tops. */
@media (min-width: 1025px) {
    html.theme-photo::before,
    html.theme-photo::after {
        content: "";
        position: fixed;
        top: 0;
        bottom: 0;
        width: max(0px, calc((100% - 1280px) / 2));
        pointer-events: none;
        z-index: 0;
        background-color: #1c2430;
        background-image: var(--skin-photo);
        background-repeat: no-repeat;
        background-size: auto 100vh;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
    html.theme-photo::before {
        left: 0;
        background-position: var(--skin-photo-left, 18%) top;
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
    }
    html.theme-photo::after {
        right: 0;
        background-position: var(--skin-photo-right, 86%) top;
        -webkit-mask-image: linear-gradient(to left, #000 0%, #000 58%, transparent 100%);
        mask-image: linear-gradient(to left, #000 0%, #000 58%, transparent 100%);
    }
    html.theme-photo #wrapper_front,
    html.theme-photo #main-content {
        position: relative;
        z-index: 1;
    }
    html.theme-photo .tn-header__navbar,
    html.theme-photo .tn-header__navbar.scroll-down,
    html.theme-photo .tn-header__navbar.scroll-up,
    html.theme-photo .tn-header.scroll-down .tn-header__navbar,
    html.theme-photo .tn-header.scroll-up .tn-header__navbar {
        display: flex !important;
        align-items: stretch;
        overflow: visible;
    }
    html.theme-photo .tn-header__navbar::before,
    html.theme-photo .tn-header__navbar::after {
        content: "";
        flex: 1 1 0;
        min-width: 0;
        align-self: stretch;
        pointer-events: none;
        background-color: #1c2430;
        background-image: var(--skin-photo);
        background-repeat: no-repeat;
        background-size: auto 100vh;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
    html.theme-photo .tn-header__navbar::before {
        background-position: var(--skin-photo-left, 18%) top;
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
    }
    html.theme-photo .tn-header__navbar::after {
        background-position: var(--skin-photo-right, 86%) top;
        -webkit-mask-image: linear-gradient(to left, #000 0%, #000 58%, transparent 100%);
        mask-image: linear-gradient(to left, #000 0%, #000 58%, transparent 100%);
    }
    html.theme-photo .tn-header__navbar .tn-header__container {
        flex: 0 0 auto;
        position: relative;
        z-index: 1;
        margin-left: 0;
        margin-right: 0;
    }
}
