/* The property detail page.
 *
 * Built to the pattern every major portal has converged on - Zillow,
 * Rightmove, Zoopla - because a buyer arrives already knowing how one of
 * these pages works, and a page that invents its own shape spends the
 * visitor's attention on navigation instead of the property:
 *
 *   1. a photo mosaic, one large and four beside it, with everything else
 *      behind a "show all" button;
 *   2. the facts that decide whether to keep reading - price, beds, baths,
 *      size - in the same first screen as the photographs;
 *   3. one sticky column on the right holding the price and the one action
 *      the visitor came to take, and on a phone that becomes a bar at the
 *      bottom rather than a sidebar nobody scrolls to;
 *   4. everything else in one column below, in the order people ask it:
 *      what it is, what it has, whether to believe it, where it is, what
 *      others said.
 *
 * The walkthrough video is deliberately not in the photo gallery. It gets
 * its own button and its own dialog: a video is a second way into the
 * property, not the first photograph of it.
 */

:root {
    --pd-ink: #101828;
    --pd-body: #344054;
    --pd-muted: #667085;
    --pd-faint: #98a2b3;
    --pd-line: #e4e7ec;
    --pd-line-soft: #f2f4f7;
    --pd-surface: #ffffff;
    --pd-wash: #f9fafb;
    --pd-brand: var(--primary, #008751);
    --pd-brand-wash: rgba(0, 135, 81, 0.08);
    --pd-gold: var(--accent, #d4af37);
    --pd-radius: 14px;
    --pd-radius-sm: 10px;
    --pd-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --pd-shadow-lift: 0 8px 24px rgba(16, 24, 40, .10);
}

.pd {
    color: var(--pd-body);
}

.pd h1,
.pd h2,
.pd h3,
.pd h4,
.pd h5 {
    color: var(--pd-ink);
    letter-spacing: -0.015em;
}

/* ── Cards ──────────────────────────────────────────────────────────────
 * One card style for the whole page. The old page mixed Bootstrap's
 * .shadow-sm p-4 with bare divs, so sections sat at different depths for no
 * reason a reader could work out.
 */
.pd-card {
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.pd-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 .25rem;
}

.pd-card__note {
    font-size: .8125rem;
    color: var(--pd-muted);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.pd-card__title + .pd-grid,
.pd-card__title + .pd-specs {
    margin-top: 1rem;
}

/* ── The media mosaic ───────────────────────────────────────────────────
 * One large photo and four beside it. Everything past the fifth is behind
 * the "show all" button, which is what makes a listing with forty photos
 * and one with six look equally deliberate.
 */
.pd-media {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: .5rem;
    border-radius: var(--pd-radius);
    overflow: hidden;
    background: var(--pd-line-soft);
    position: relative;
}

.pd-media__hero,
.pd-media__thumb {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--pd-line-soft);
    cursor: pointer;
}

.pd-media__hero {
    aspect-ratio: 4 / 3;
}

.pd-media__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: .5rem;
}

.pd-media__thumb {
    aspect-ratio: 1 / 1;
}

.pd-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.pd-media__hero:hover img,
.pd-media__thumb:hover img {
    transform: scale(1.03);
}

/* Fewer than five photos: the hero takes the width rather than leaving
 * holes in a grid. A listing with two photos should look sparse, not broken.
 */
.pd-media--single {
    grid-template-columns: 1fr;
}

.pd-media--single .pd-media__hero {
    aspect-ratio: 16 / 9;
}

.pd-media__empty {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    color: var(--pd-faint);
    background: var(--pd-wash);
    gap: .5rem;
}

/* Buttons over the photographs. Bottom-left is where every portal puts
 * them, and it is the corner a caption never occupies.
 */
.pd-media__actions {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    z-index: 2;
}

.pd-media__btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .96);
    color: var(--pd-ink);
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 999px;
    padding: .5rem .9rem;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: var(--pd-shadow-lift);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.pd-media__btn:hover {
    background: #fff;
    transform: translateY(-1px);
    color: var(--pd-ink);
}

.pd-media__btn i {
    font-size: .95rem;
    color: var(--pd-brand);
}

/* The walkthrough's own button. Marked out from "show all photos" because
 * it does something different.
 */
.pd-media__btn--video {
    background: var(--pd-ink);
    color: #fff;
    border-color: transparent;
}

.pd-media__btn--video:hover {
    background: #000;
    color: #fff;
}

.pd-media__btn--video i {
    color: var(--pd-gold);
}

.pd-media__flags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    z-index: 2;
}

/* ── Badges ─────────────────────────────────────────────────────────── */
.pd-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border-radius: 999px;
    padding: .3rem .7rem;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .01em;
}

.pd-badge--sale     { background: #ecfdf3; color: #067647; }
.pd-badge--rent     { background: #eff8ff; color: #175cd3; }
.pd-badge--lease    { background: #f2f4f7; color: #344054; }
.pd-badge--shortlet { background: #fff6ed; color: #b93815; }
.pd-badge--hotel    { background: #f4f3ff; color: #5925dc; }
.pd-badge--auction  { background: #fef3f2; color: #b42318; }
.pd-badge--type     { background: #f2f4f7; color: #344054; }
.pd-badge--verified { background: var(--pd-brand); color: #fff; }
.pd-badge--solid    { background: rgba(16, 24, 40, .78); color: #fff; backdrop-filter: blur(4px); }

/* ── Title and the facts that decide whether to read on ─────────────── */
.pd-head {
    margin: 1.5rem 0 0;
}

.pd-head__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    line-height: 1.2;
}

.pd-head__where {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--pd-muted);
    font-size: .9375rem;
    margin: 0;
}

.pd-head__where i {
    color: var(--pd-brand);
}

.pd-head__badges {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

/* The key-facts strip. Research on these pages is consistent that price,
 * beds, baths and size belong in the same screen as the photographs; a
 * visitor who has to scroll to find the number of bedrooms is being asked
 * to work for the one fact that decides everything else.
 */
.pd-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: var(--pd-surface);
    box-shadow: var(--pd-shadow);
    margin: 1.25rem 0;
    overflow: hidden;
}

.pd-fact {
    flex: 1 1 0;
    min-width: 116px;
    padding: .9rem 1.1rem;
    border-right: 1px solid var(--pd-line-soft);
}

.pd-fact:last-child {
    border-right: 0;
}

.pd-fact__value {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pd-ink);
    line-height: 1.2;
}

.pd-fact__unit {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--pd-muted);
}

.pd-fact__label {
    font-size: .75rem;
    color: var(--pd-muted);
    margin-top: .15rem;
}

/* ── Specifications ─────────────────────────────────────────────────────
 * This replaces a four-across grid of 150px cards with 24px icons and 21px
 * numbers, which read as a dashboard of statistics rather than a list of
 * facts about a flat. Specifications are reference material: somebody scans
 * them for one line. So they are a two-column list, the icon is a 14px mark
 * rather than a picture, and the value is the only thing set in bold.
 */
.pd-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
}

.pd-spec {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--pd-line-soft);
    font-size: .875rem;
}

/* The last row of each column carries no rule, so the list ends cleanly
 * instead of with a line under nothing.
 */
.pd-spec:last-child,
.pd-spec:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
}

.pd-spec__icon {
    flex: 0 0 auto;
    width: 1.25rem;
    font-size: .875rem;
    color: var(--pd-faint);
    text-align: center;
}

.pd-spec__label {
    flex: 1 1 auto;
    color: var(--pd-muted);
    min-width: 0;
}

.pd-spec__value {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--pd-ink);
    text-align: right;
}

.pd-spec__value--yes { color: #067647; }
.pd-spec__value--no  { color: var(--pd-faint); }

/* ── Amenity and feature tags ───────────────────────────────────────── */
.pd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.pd-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--pd-wash);
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    padding: .45rem .7rem;
    font-size: .8125rem;
    color: var(--pd-body);
}

.pd-tag i {
    font-size: .8125rem;
    color: var(--pd-brand);
}

.pd-tag--hotel i {
    color: #5925dc;
}

.pd-subhead {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pd-muted);
    margin: 1.25rem 0 .6rem;
}

.pd-subhead:first-child {
    margin-top: 0;
}

/* ── Description ────────────────────────────────────────────────────── */
.pd-prose {
    font-size: .9375rem;
    line-height: 1.7;
    color: var(--pd-body);
}

/* ── The sticky column ──────────────────────────────────────────────── */
/* The right-hand column sticks on desktop. It is the Bootstrap column
 * itself rather than a wrapper inside it, which needs align-self so the
 * column stops stretching to the row's full height - a stretched element
 * has nowhere to stick to.
 */
@media (min-width: 992px) {
    .pd-rail {
        position: sticky;
        top: 5.5rem;
        align-self: flex-start;
    }
}

.pd-price {
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: var(--pd-surface);
    box-shadow: var(--pd-shadow);
    padding: 1.35rem;
    margin-bottom: 1.25rem;
}

.pd-price__amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pd-ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
    /* A long naira figure must shrink its spacing rather than wrap. */
    word-break: keep-all;
}

.pd-price__period {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--pd-muted);
}

.pd-price__note {
    font-size: .8125rem;
    color: var(--pd-muted);
    margin-top: .35rem;
}

.pd-price__note--good {
    color: #067647;
    font-weight: 600;
}

/* ── Agent ──────────────────────────────────────────────────────────── */
.pd-agent {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.pd-agent__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--pd-line-soft);
    flex: 0 0 auto;
}

.pd-agent__name {
    font-weight: 700;
    color: var(--pd-ink);
    font-size: .9375rem;
    margin: 0;
    line-height: 1.3;
}

.pd-agent__meta {
    font-size: .8125rem;
    color: var(--pd-muted);
    margin: 0;
}

/* ── Forms ──────────────────────────────────────────────────────────── */
.pd-field {
    margin-bottom: .75rem;
}

.pd-field label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--pd-body);
    margin-bottom: .3rem;
}

.pd-field .form-control,
.pd-field .form-select {
    border-radius: var(--pd-radius-sm);
    border-color: var(--pd-line);
    font-size: .9375rem;
    padding: .6rem .75rem;
}

.pd-field .form-control:focus,
.pd-field .form-select:focus {
    border-color: var(--pd-brand);
    box-shadow: 0 0 0 3px var(--pd-brand-wash);
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    border: 1px solid transparent;
    border-radius: var(--pd-radius-sm);
    padding: .75rem 1rem;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.pd-btn--primary {
    background: var(--pd-brand);
    color: #fff;
}

.pd-btn--primary:hover {
    background: var(--primary-dark, #005a36);
    color: #fff;
    transform: translateY(-1px);
}

.pd-btn--ghost {
    background: var(--pd-surface);
    border-color: var(--pd-line);
    color: var(--pd-body);
}

.pd-btn--ghost:hover {
    border-color: var(--pd-brand);
    color: var(--pd-brand);
}

.pd-btn + .pd-btn {
    margin-top: .5rem;
}

/* ── The photo dialog ───────────────────────────────────────────────── */
.pd-lightbox .modal-content {
    background: #0b0f16;
    border: 0;
    border-radius: var(--pd-radius);
}

.pd-lightbox .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
}

.pd-lightbox .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

.pd-lightbox__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .6rem;
}

.pd-lightbox__grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--pd-radius-sm);
    display: block;
}

.pd-lightbox__player {
    width: 100%;
    max-height: 78vh;
    border-radius: var(--pd-radius-sm);
    background: #000;
    display: block;
}

/* ── Phones ─────────────────────────────────────────────────────────────
 * The sidebar is the wrong shape on a phone: it ends up a long way below
 * the photographs and nobody scrolls back up to it. The action it holds
 * becomes a bar fixed to the bottom instead, which is the pattern these
 * pages have settled on.
 */
@media (max-width: 767.98px) {
    .pd-media {
        display: flex;
        flex-direction: column;
        gap: .35rem;
        overflow: visible;
        background: transparent;
    }

    .pd-media__hero {
        aspect-ratio: 3 / 2;
        border-radius: var(--pd-radius);
    }

    /* The four beside the hero become a strip that scrolls sideways, so the
     * mosaic does not become four tall boxes pushing the facts off-screen.
     */
    .pd-media__side {
        display: flex;
        gap: .35rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: .15rem;
    }

    .pd-media__side::-webkit-scrollbar {
        display: none;
    }

    .pd-media__thumb {
        flex: 0 0 31%;
        aspect-ratio: 1 / 1;
        scroll-snap-align: start;
        border-radius: var(--pd-radius-sm);
    }

    .pd-media__actions {
        position: static;
        margin-top: .5rem;
        left: auto;
        bottom: auto;
    }

    .pd-media__btn {
        box-shadow: none;
        border-color: var(--pd-line);
    }

    .pd-media__btn {
        padding: .45rem .75rem;
        font-size: .75rem;
    }

    .pd-head__title {
        font-size: 1.375rem;
    }

    .pd-card {
        padding: 1.15rem;
        border-radius: var(--pd-radius-sm);
    }

    /* One column. Two columns of specifications at 375px gives each label
     * about 70px, which breaks "Parking spaces" across three lines.
     */
    .pd-specs {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pd-spec:nth-last-child(2):nth-child(odd) {
        border-bottom: 1px solid var(--pd-line-soft);
    }

    .pd-spec:last-child {
        border-bottom: 0;
    }

    .pd-fact {
        flex: 1 1 45%;
        min-width: 0;
        border-bottom: 1px solid var(--pd-line-soft);
    }

    .pd-fact:nth-child(even) {
        border-right: 0;
    }

    .pd-price__amount {
        font-size: 1.625rem;
    }

    /* Room for the fixed action bar. */
    .pd-tail {
        padding-bottom: 5.5rem;
    }
}

@media print {
    .pd-media__actions,
    .pd-rail,
    .pd-lightbox {
        display: none !important;
    }
}

/* ── The existing specification markup, restyled ────────────────────────
 * There are seven specification blocks on this page - residential,
 * shortlet, commercial, industrial, land, mixed-use, hotel - and they all
 * use the same `.spec-item` markup: an icon, then the value, then the
 * label, stacked and centred. Rather than rewrite sixty blocks of markup
 * and risk losing a field from one of them, the same elements are laid out
 * as a row here and `order` puts the label before the value.
 *
 * This is what fixes the two things that were wrong with them: the card
 * stretched the full width of the content column with four 150px tiles
 * across it, and each tile carried a 24px icon over a 21px number, so a
 * list of facts about a flat read like a stadium scoreboard.
 */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    margin-top: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-align: left;
    padding: .7rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--pd-line-soft);
    border-radius: 0;
    font-size: .875rem;
}

.spec-item .icon {
    order: 1;
    display: inline-block;
    flex: 0 0 auto;
    width: 1.25rem;
    margin: 0;
    font-size: .875rem;
    color: var(--pd-faint);
    text-align: center;
}

.spec-item .label {
    order: 2;
    flex: 1 1 auto;
    font-size: .875rem;
    color: var(--pd-muted);
    text-transform: none;
    letter-spacing: 0;
    min-width: 0;
}

.spec-item .value {
    order: 3;
    flex: 0 0 auto;
    font-size: .875rem;
    font-weight: 600;
    color: var(--pd-ink);
    text-align: right;
}

/* The feature rows under some of the specification blocks. */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: .5rem 2rem;
    margin-top: .25rem;
}

.feature-item {
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid var(--pd-line-soft);
    padding: .65rem 0;
    gap: .6rem;
    font-size: .875rem;
}

.feature-item:hover {
    background: transparent;
    transform: none;
}

.feature-item .icon {
    width: 1.25rem;
    font-size: .875rem;
    color: var(--pd-faint);
}

.feature-item .label {
    font-size: .875rem;
    color: var(--pd-muted);
}

.feature-item .value {
    font-size: .875rem;
    font-weight: 600;
    color: var(--pd-ink);
}

.feature-item .value.boolean-true  { color: #067647; }
.feature-item .value.boolean-false { color: var(--pd-faint); }

/* Amenity chips: the old ones were pill-shaped grey blobs at 12.8px with a
 * 4px margin, which made a list of fifteen look like a tag cloud.
 */
.amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--pd-wash);
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    padding: .45rem .7rem;
    margin: 0;
    font-size: .8125rem;
    color: var(--pd-body);
}

.amenity-tag i {
    margin-right: 0;
    font-size: .8125rem;
    color: var(--pd-brand);
}

.amenity-tag.hotel {
    background: #f4f3ff;
    color: #5925dc;
}

.amenity-tag.hotel i {
    color: #5925dc;
}

/* The containers that hold those chips need to be flex for the gap to
 * apply, since the chips no longer carry their own margin.
 */
.pd-card .d-flex.flex-wrap {
    gap: .45rem;
}

/* Transaction badges, matched to the new badge scale. */
.badge-transaction {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .3rem .7rem;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-transaction.sale     { background: #ecfdf3; color: #067647; }
.badge-transaction.rent     { background: #eff8ff; color: #175cd3; }
.badge-transaction.lease    { background: #f2f4f7; color: #344054; }
.badge-transaction.shortlet { background: #fff6ed; color: #b93815; }
.badge-transaction.hotel    { background: #f4f3ff; color: #5925dc; }
.badge-transaction.auction  { background: #fef3f2; color: #b42318; }

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pd-ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.price-tag .currency {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--pd-muted);
}

.price-tag .negotiable {
    font-size: .8125rem;
    color: #067647;
    font-weight: 600;
}

.section-divider {
    border-top: 1px solid var(--pd-line);
    margin: 1.25rem 0;
}

@media (max-width: 767.98px) {
    .specs-grid,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .price-tag {
        font-size: 1.625rem;
    }
}

/* ── One photograph, on its own ─────────────────────────────────────────
 * The dialog used to stop at a grid of 220px tiles, which is no use to
 * somebody trying to work out whether a mark on a wall is damp or a shadow.
 * Clicking a tile fills the dialog with that photograph instead.
 *
 * The photograph is sized to fit the viewport rather than the container, so
 * it never needs scrolling to see: a picture you have to scroll is a
 * picture you cannot judge.
 */
.pd-stage {
    position: relative;
    margin: 0;
    display: grid;
    place-items: center;
    /* Enough for the controls when a photograph is unusually short, and
       nothing more: the stage takes its height from the picture. */
    min-height: 220px;
    line-height: 0;
}

.pd-stage__img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--pd-radius-sm);
    display: block;
    background: #000;
}

.pd-stage__back,
.pd-stage__step {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(12, 16, 22, .72);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .15s ease, transform .15s ease;
}

.pd-stage__back {
    top: .75rem;
    left: .75rem;
    border-radius: 999px;
    padding: .5rem .9rem;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1;
    z-index: 2;
}

.pd-stage__step {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.25rem;
    z-index: 2;
}

.pd-stage__step--prev { left: .75rem; }
.pd-stage__step--next { right: .75rem; }

.pd-stage__back:hover,
.pd-stage__step:hover {
    background: rgba(12, 16, 22, .92);
    color: #fff;
}

.pd-stage__step:hover {
    transform: translateY(-50%) scale(1.06);
}

.pd-stage__count {
    position: absolute;
    bottom: .75rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(12, 16, 22, .72);
    color: #fff;
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

/* The thumbnails are clickable now, so they should say so. */
.pd-lightbox__grid img {
    cursor: zoom-in;
    transition: opacity .15s ease, outline-color .15s ease;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.pd-lightbox__grid img:hover {
    opacity: .88;
}

.pd-lightbox__grid img:focus-visible {
    outline-color: var(--pd-brand);
    opacity: .88;
}

@media (max-width: 767.98px) {
    .pd-stage {
        min-height: 180px;
    }

    .pd-stage__img {
        max-height: 70vh;
    }

    .pd-stage__step {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .pd-stage__back {
        padding: .4rem .7rem;
        font-size: .75rem;
    }
}
