/**
 * Competition (Wettbewerb): overview, cards, detail view, lightbox.
 * Plain CSS on purpose (not part of the SCSS build), loaded only where needed.
 *
 * Every rule is scoped below a component root (.pw-comp, .pw-entry, .pw-lightbox,
 * .entry-content) so Kadence's content and button styles (.single-content h3,
 * button:focus …) cannot override it. Colours follow the site: black, greys, white.
 */

:root {
    --pw-ink: #121212;
    --pw-muted: #6b6b6b;
    --pw-line: #e2e2e2;
    --pw-placeholder: #e6e5e1;
}

/* ------------------------------------------------------------------
 * Shared pieces
 * ---------------------------------------------------------------- */

.pw-comp .pw-badge,
.pw-entry .pw-badge {
    display: inline-block;
    margin: 0;
    padding: .3125rem .5rem .25rem;
    background: var(--pw-ink);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pw-comp .pw-status,
.pw-entry .pw-status {
    display: inline-block;
    margin: 0 0 0 .5rem;
    padding: 0 .3125rem;
    border: 1px dashed #9a9a9a;
    color: var(--pw-muted);
    font-size: .625rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: .06em;
    text-transform: uppercase;
    vertical-align: .0625rem;
}

.pw-comp .pw-link,
.pw-entry .pw-link {
    color: var(--pw-ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
}

.pw-comp .pw-link:hover,
.pw-comp .pw-link:focus-visible,
.pw-entry .pw-link:hover,
.pw-entry .pw-link:focus-visible {
    color: var(--pw-ink);
    text-decoration-thickness: 2px;
}

.pw-link--arrow::after {
    content: "\00a0\2192";
}

.pw-link--back::before {
    content: "\2190\00a0";
}

.pw-link--download::after {
    content: "\00a0\2193";
}

.pw-link--external::after {
    content: "\00a0\2197";
}

.pw-comp .pw-placeholder,
.pw-entry .pw-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pw-placeholder);
    color: var(--pw-muted);
    font-size: .8125rem;
}

.pw-comp :focus-visible,
.pw-entry :focus-visible {
    outline: 2px solid var(--pw-ink);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------
 * Overview: header blocks (core blocks in the page content)
 * ---------------------------------------------------------------- */

.entry-content .pw-breadcrumb {
    margin: 0 0 2.5rem;
    color: var(--pw-muted);
    font-size: .9375rem;
    line-height: 1.4;
}

.entry-content .pw-breadcrumb a {
    color: var(--pw-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
}

.entry-content .pw-kicker {
    margin: 0 0 1rem;
    color: var(--pw-ink);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Layout does not rely on core block CSS (not loaded on this site) */
.entry-content .pw-comp-head {
    display: flex;
    align-items: flex-end;
    gap: 2rem 4rem;
    margin: 0 0 3rem;
}

.entry-content .pw-comp-head > .wp-block-column {
    min-width: 0;
    margin: 0;
}

.entry-content .pw-comp-head > .wp-block-column:first-child {
    flex: 1 1 auto !important;
}

.entry-content .pw-comp-head > .wp-block-column:last-child {
    flex: 0 0 17rem !important;
}

.entry-content .pw-comp-head .pw-comp-title {
    margin: 0 0 1.25rem;
}

.entry-content .pw-comp-head .pw-lead {
    max-width: 44rem;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.5;
}

.entry-content .pw-downloads {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    margin: 0;
}

.entry-content .pw-downloads .wp-block-button {
    width: 100%;
    margin: 0;
}

.entry-content .pw-downloads .wp-block-button__link,
.entry-content .pw-downloads .wp-block-button__link:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: .6875rem .875rem;
    border: 1px solid var(--pw-ink);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--pw-ink);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
}

.entry-content .pw-downloads .wp-block-button__link::after {
    content: "\2193";
    font-weight: 400;
}

.entry-content .pw-downloads .wp-block-button__link:hover,
.entry-content .pw-downloads .wp-block-button__link:focus,
.entry-content .pw-downloads .wp-block-button__link:active {
    background: var(--pw-ink);
    box-shadow: none;
    color: #fff;
}

.entry-content .pw-hero {
    margin: 0 0 3rem;
    background: var(--pw-placeholder);
}

.entry-content .pw-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

/* Key facts: 1px grid lines via gap, works in every wrap state */
.entry-content .pw-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1px;
    margin: 0 0 5rem;
    border: 1px solid var(--pw-line);
    background: var(--pw-line);
}

.entry-content .pw-facts > .wp-block-column {
    margin: 0;
    padding: 1.25rem 1.5rem 1.375rem;
    background: #fff;
}

.entry-content .pw-facts p {
    margin: 0;
}

.entry-content .pw-facts .pw-fact-label {
    margin-bottom: .5rem;
    color: var(--pw-muted);
    font-size: .8125rem;
    line-height: 1.4;
}

.entry-content .pw-facts .pw-fact-value {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
}

.entry-content .pw-facts .pw-fact-note {
    margin-top: .5rem;
    color: var(--pw-muted);
    font-size: .8125rem;
    line-height: 1.4;
}

/* Timeline */
.entry-content .pw-timeline-title {
    margin: 0 0 1.5rem;
}

.entry-content .pw-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1.5rem 1.25rem;
    margin: 0 0 5rem;
}

.entry-content .pw-timeline > .wp-block-column {
    margin: 0;
    padding-top: .875rem;
    border-top: 2px solid var(--pw-ink);
}

.entry-content .pw-timeline p {
    margin: 0;
}

.entry-content .pw-timeline .pw-timeline-date {
    margin-bottom: .375rem;
    color: var(--pw-muted);
    font-size: .8125rem;
    line-height: 1.4;
}

.entry-content .pw-timeline .pw-timeline-text {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 781px) {
    .entry-content .pw-breadcrumb {
        margin-bottom: 1.75rem;
    }

    .entry-content .pw-comp-head {
        flex-direction: column;
        align-items: stretch;
        gap: 1.75rem;
        margin-bottom: 2rem;
    }

    .entry-content .pw-comp-head > .wp-block-column:last-child {
        flex-basis: auto !important;
    }

    .entry-content .pw-hero,
    .entry-content .pw-timeline-title {
        margin-bottom: 2rem;
    }

    .entry-content .pw-hero img {
        aspect-ratio: 4 / 3;
    }

    .entry-content .pw-facts,
    .entry-content .pw-timeline {
        margin-bottom: 3.5rem;
    }
}

/* ------------------------------------------------------------------
 * Overview: tabs
 * ---------------------------------------------------------------- */

.pw-comp {
    margin: 0 0 2rem;
    /* Deep links (#phase-1 …, e.g. from QR codes) land below the fixed header */
    scroll-margin-top: 7.5rem;
}

.pw-comp .pw-comp__tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.25rem;
    margin: 0 0 2.5rem;
    border-bottom: 1px solid var(--pw-line);
}

.pw-comp .pw-comp__tab,
.pw-comp .pw-comp__tab:visited,
.pw-comp .pw-comp__tab:hover,
.pw-comp .pw-comp__tab:focus,
.pw-comp .pw-comp__tab:active {
    margin: 0 0 -1px;
    padding: .875rem 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--pw-muted);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    cursor: pointer;
}

.pw-comp .pw-comp__tab:hover {
    color: var(--pw-ink);
}

.pw-comp .pw-comp__tab[aria-selected="true"],
.pw-comp .pw-comp__tab[aria-selected="true"]:hover,
.pw-comp .pw-comp__tab[aria-selected="true"]:focus,
.pw-comp .pw-comp__tab[aria-selected="true"]:active {
    border-bottom-color: var(--pw-ink);
    color: var(--pw-ink);
    font-weight: 700;
}

.pw-comp .pw-comp__tab.is-locked,
.pw-comp .pw-comp__tab.is-locked:hover {
    color: var(--pw-muted);
    opacity: .45;
    cursor: not-allowed;
}

.pw-comp .pw-comp__tab-count {
    font-weight: 400;
}

.pw-comp .pw-comp__panel:focus {
    outline: none;
}

.pw-comp .pw-comp__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem 3rem;
    margin: 0 0 2.5rem;
}

.pw-comp .pw-comp__intro-text {
    flex: 1 1 32rem;
    max-width: 46rem;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.pw-comp .pw-comp__intro-text p {
    margin: 0 0 .75rem;
}

.pw-comp .pw-comp__intro-text p:last-child {
    margin-bottom: 0;
}

.pw-comp .pw-comp__intro-download {
    flex: 0 0 auto;
    margin: 0;
    font-size: .9375rem;
}

.pw-comp .pw-comp__empty {
    margin: 0;
    color: var(--pw-muted);
    font-size: 1rem;
}

.pw-comp .pw-comp__subhead {
    margin: 0 0 1.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Prize winners */
.pw-comp .pw-features {
    margin: 0 0 3.5rem;
}

.pw-comp .pw-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
    margin: 0;
    padding: 0 0 3rem;
    border-bottom: 1px solid var(--pw-line);
}

.pw-comp .pw-feature + .pw-feature {
    padding-top: 3rem;
}

.pw-comp .pw-feature__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pw-placeholder);
}

.pw-comp .pw-feature__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.pw-comp .pw-feature__media:hover img {
    transform: scale(1.02);
}

.pw-comp .pw-feature__body {
    padding-top: .25rem;
}

.pw-comp .pw-feature__title {
    margin: 1rem 0 .5rem;
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.25;
}

.pw-comp .pw-feature__title a {
    color: inherit;
    text-decoration: none;
}

.pw-comp .pw-feature__title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.pw-comp .pw-feature__team {
    margin: 0 0 1.25rem;
    color: var(--pw-muted);
    font-size: .9375rem;
    line-height: 1.45;
}

.pw-comp .pw-feature__excerpt {
    max-width: 34rem;
    margin: 0 0 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.pw-comp .pw-feature__more {
    margin: 0;
    font-size: .9375rem;
}

/* Grid cards */
.pw-comp .pw-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.75rem 1.5rem;
    margin: 0;
}

.pw-comp .pw-card {
    margin: 0;
}

.pw-comp .pw-card__link,
.pw-comp .pw-card__link:hover,
.pw-comp .pw-card__link:focus {
    display: block;
    color: var(--pw-ink);
    text-decoration: none;
}

.pw-comp .pw-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pw-placeholder);
}

.pw-comp .pw-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.pw-comp .pw-card__badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
}

.pw-comp .pw-card__meta {
    margin: .875rem 0 .25rem;
    color: var(--pw-muted);
    font-size: .8125rem;
    line-height: 1.4;
}

.pw-comp .pw-card__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
}

.pw-comp .pw-card__media + .pw-card__title {
    margin-top: .875rem;
}

.pw-comp .pw-card__link:hover img,
.pw-comp .pw-card__link:focus-visible img {
    transform: scale(1.03);
}

.pw-comp .pw-card__link:hover .pw-card__title,
.pw-comp .pw-card__link:focus-visible .pw-card__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

@media (max-width: 1024px) {
    .pw-comp .pw-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pw-comp .pw-feature {
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .pw-comp .pw-comp__tablist {
        gap: 0 1.5rem;
        margin-bottom: 2rem;
    }

    .pw-comp .pw-comp__tab,
    .pw-comp .pw-comp__tab:hover,
    .pw-comp .pw-comp__tab:focus,
    .pw-comp .pw-comp__tab:active {
        padding: .75rem 0;
        font-size: .9375rem;
    }

    .pw-comp .pw-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1rem;
    }

    .pw-comp .pw-card__title {
        font-size: .9375rem;
    }

    .pw-comp .pw-feature {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-bottom: 2.5rem;
    }

    .pw-comp .pw-feature + .pw-feature {
        padding-top: 2.5rem;
    }

    .pw-comp .pw-feature__title {
        font-size: 1.375rem;
    }
}

/* ------------------------------------------------------------------
 * Detail view
 * ---------------------------------------------------------------- */

.pw-entry {
    max-width: var(--global-content-width, 80.625rem);
    margin: 0 auto;
    padding: 3rem var(--global-content-edge-padding, 1.5rem) 0;
}

.pw-entry .pw-entry__back {
    margin: 0 0 3rem;
    font-size: .9375rem;
}

.pw-entry .pw-entry__header {
    margin: 0 0 2rem;
}

.pw-entry .pw-entry__kicker {
    margin: 0;
    color: var(--pw-muted);
    font-size: .875rem;
    line-height: 1.4;
}

.pw-entry .pw-entry__title {
    margin: 1rem 0 0;
}

/* Gallery */
.pw-entry .pw-gallery {
    margin: 0 0 4rem;
}

.pw-entry .pw-gallery__sets {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1rem;
}

.pw-entry .pw-gallery__set-btn,
.pw-entry .pw-gallery__set-btn:visited,
.pw-entry .pw-gallery__set-btn:hover,
.pw-entry .pw-gallery__set-btn:focus,
.pw-entry .pw-gallery__set-btn:active {
    margin: 0;
    padding: .5rem 1rem;
    border: 1px solid #c8c8c8;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: var(--pw-ink);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    cursor: pointer;
}

.pw-entry .pw-gallery__set-btn:hover {
    border-color: var(--pw-ink);
}

.pw-entry .pw-gallery__set-btn[aria-selected="true"],
.pw-entry .pw-gallery__set-btn[aria-selected="true"]:hover,
.pw-entry .pw-gallery__set-btn[aria-selected="true"]:focus,
.pw-entry .pw-gallery__set-btn[aria-selected="true"]:active {
    border-color: var(--pw-ink);
    background: var(--pw-ink);
    color: #fff;
}

/* The stage takes the photo's aspect ratio (--pw-ratio, set inline and by the
   gallery script) and stays within the viewport height – no letterbox frame. */
.pw-entry .pw-gallery__stage {
    position: relative;
    width: min(100%, calc(80vh * var(--pw-ratio, 1.3333)));
    max-width: 100%;
    margin: 0;
    aspect-ratio: var(--pw-ratio, 4 / 3);
    background: transparent;
}

.pw-entry .pw-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.pw-entry .pw-gallery__full,
.pw-entry .pw-gallery__full:visited,
.pw-entry .pw-gallery__full:focus,
.pw-entry .pw-gallery__full:active {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    margin: 0;
    padding: .5rem .875rem;
    border: 1px solid var(--pw-ink);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: var(--pw-ink);
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.pw-entry .pw-gallery__full:hover {
    background: var(--pw-ink);
    box-shadow: none;
    color: #fff;
}

.pw-entry .pw-gallery__thumbs {
    display: flex;
    gap: .625rem;
    margin: .75rem 0 0;
    padding: 0 0 .25rem;
    list-style: none;
    overflow-x: auto;
}

.pw-entry .pw-gallery__thumbs[hidden] {
    display: none;
}

.pw-entry .pw-gallery__thumbs li {
    flex: 0 0 auto;
    margin: 0;
}

.pw-entry .pw-gallery__thumb,
.pw-entry .pw-gallery__thumb:visited,
.pw-entry .pw-gallery__thumb:hover,
.pw-entry .pw-gallery__thumb:focus,
.pw-entry .pw-gallery__thumb:active {
    display: block;
    width: 6.5rem;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0;
    background: var(--pw-placeholder);
    box-shadow: none;
    opacity: .7;
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease;
}

.pw-entry .pw-gallery__thumb:hover {
    opacity: 1;
}

.pw-entry .pw-gallery__thumb.is-active,
.pw-entry .pw-gallery__thumb.is-active:hover,
.pw-entry .pw-gallery__thumb.is-active:focus {
    border-color: var(--pw-ink);
    opacity: 1;
}

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

/* Body */
.pw-entry .pw-entry__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2.5rem 5rem;
    align-items: start;
}

.pw-entry .pw-entry__heading {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.pw-entry .pw-entry__text {
    max-width: 46rem;
    font-size: 1.0625rem;
    line-height: 1.65;
}

.pw-entry .pw-entry__text p {
    margin: 0 0 1rem;
}

.pw-entry .pw-entry__text p:last-child {
    margin-bottom: 0;
}

.pw-entry .pw-entry__download {
    margin: 2rem 0 0;
    font-size: .9375rem;
}

.pw-entry .pw-entry__main > .pw-entry__download:first-child {
    margin-top: 0;
}

.pw-entry .pw-entry__aside {
    padding-top: 1.25rem;
    border-top: 2px solid var(--pw-ink);
}

.pw-entry .pw-entry__aside-title {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.pw-entry .pw-facts-list {
    margin: 0;
}

.pw-entry .pw-facts-list dt {
    margin: 0;
    color: var(--pw-muted);
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.4;
}

.pw-entry .pw-facts-list dd {
    margin: .25rem 0 1rem;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.45;
}

.pw-entry .pw-facts-list dd:last-child {
    margin-bottom: 0;
}

.pw-entry .pw-entry__related {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pw-line);
    font-size: .875rem;
}

.pw-entry .pw-entry__pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 4.5rem 0 0;
    padding: 1.75rem 0 0;
    border-top: 1px solid var(--pw-line);
    font-size: .9375rem;
}

.pw-entry .pw-entry__pager-next {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 900px) {
    .pw-entry .pw-entry__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .pw-entry {
        padding-top: 2rem;
    }

    .pw-entry .pw-entry__back {
        margin-bottom: 2rem;
    }

    .pw-entry .pw-gallery {
        margin-bottom: 3rem;
    }

    .pw-entry .pw-gallery__full,
    .pw-entry .pw-gallery__full:hover,
    .pw-entry .pw-gallery__full:focus {
        right: .5rem;
        bottom: .5rem;
    }

    .pw-entry .pw-gallery__thumb,
    .pw-entry .pw-gallery__thumb:hover,
    .pw-entry .pw-gallery__thumb:focus {
        width: 5rem;
    }

    .pw-entry .pw-entry__pager {
        flex-direction: column;
        margin-top: 3.5rem;
    }

    .pw-entry .pw-entry__pager-next {
        margin-left: 0;
        text-align: left;
    }
}

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

.pw-lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0d0d0d;
    color: #fff;
}

.pw-lightbox::backdrop {
    background: rgba(0, 0, 0, .9);
}

.pw-lightbox .pw-lightbox__viewport {
    position: absolute;
    inset: 3.5rem 0 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pw-lightbox .pw-lightbox__viewport img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    user-select: none;
}

.pw-lightbox.is-zoomed .pw-lightbox__viewport {
    display: block;
    overflow: auto;
}

.pw-lightbox.is-zoomed .pw-lightbox__viewport img {
    margin: 0 auto;
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

.pw-lightbox .pw-lightbox__bar {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 3.5rem;
    padding: 0 1rem;
    font-size: .875rem;
}

.pw-lightbox .pw-lightbox__bar--top {
    top: 0;
}

.pw-lightbox .pw-lightbox__bar--bottom {
    bottom: 0;
    justify-content: center;
}

.pw-lightbox .pw-lightbox__caption {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: .8;
}

.pw-lightbox button,
.pw-lightbox button:visited,
.pw-lightbox button:focus,
.pw-lightbox button:active {
    margin: 0;
    padding: .5rem .875rem;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-family: inherit;
    font-size: .875rem;
    line-height: 1.2;
    cursor: pointer;
}

.pw-lightbox button:hover,
.pw-lightbox button:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
    box-shadow: none;
    color: #fff;
}

.pw-lightbox button[disabled] {
    opacity: .3;
    cursor: default;
}

.pw-lightbox .pw-lightbox__tools {
    display: flex;
    flex: 0 0 auto;
    gap: .5rem;
}

.pw-lightbox .pw-lightbox__count {
    min-width: 4.5rem;
    text-align: center;
    opacity: .8;
}

html.pw-lightbox-open {
    overflow: hidden;
}
