/* Shared slideshow and lightbox used by Research and News articles. */
.pwg-slideshow {
    width: 80%;
    margin: 28px auto 0;
}

.pwg-slideshow-rotation {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 10px;
    background: rgba(5, 40, 77, .78);
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 20, 42, .18);
    cursor: pointer;
}
.pwg-slideshow-rotation svg { width: 24px; height: 24px; fill: currentColor; }
.pwg-slideshow-rotation .pwg-rotation-pause,
.pwg-slideshow-rotation.is-playing .pwg-rotation-play { display: none; }
.pwg-slideshow-rotation.is-playing .pwg-rotation-pause { display: block; }
.pwg-slideshow-rotation:hover { background: rgba(5, 40, 77, .95); }
.pwg-slideshow-rotation[hidden] { display: none; }
.pwg-slideshow-rotation:focus-visible { outline: 3px solid #b06c00; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .pwg-slideshow .pwg-slide { transition: none; }
}

.pwg-slideshow-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 25px;
    background: #0a2f55;
}

.pwg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
}

.pwg-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.pwg-slideshow-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 12px;
    color: #fff;
    background: rgba(5, 40, 77, .58);
    box-shadow: 0 3px 12px rgba(0, 20, 42, .18);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}

.pwg-slideshow-arrow:hover,
.pwg-slideshow-arrow:focus-visible {
    border-color: var(--pwg-accent);
    background: rgba(5, 40, 77, .82);
    outline: none;
}

.pwg-slideshow-arrow svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pwg-slideshow-prev {
    left: 14px;
}

.pwg-slideshow-next {
    right: 14px;
}

.pwg-slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 13px;
}

.pwg-slideshow-dots button {
    width: 15px;
    height: 15px;
    padding: 0;
    border: 2px solid #66809a;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.pwg-slideshow-dots button:hover,
.pwg-slideshow-dots button:focus-visible {
    border-color: #062d57;
    transform: scale(1.2);
    outline: none;
}

.pwg-slideshow-dots button.is-active {
    border-color: var(--pwg-accent);
    background: var(--pwg-accent);
}

.pwg-slideshow.has-lightbox .pwg-slide.is-active {
    cursor: zoom-in;
}

.pwg-lightbox[hidden] {
    display: none;
}

.pwg-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 10vh 4vw;
    padding: 10dvh 4vw;
    background: rgba(0, 0, 0, .80);
}

.pwg-lightbox-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.pwg-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 25px;
    box-shadow:
        0 0 25px 2px rgba(0, 0, 0, .48),
        0 18px 48px rgba(0, 0, 0, .45);
}

.pwg-lightbox-arrow {
    position: fixed;
    z-index: 10001;
    top: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 74px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 14px;
    color: #fff;
    background: rgba(5, 40, 77, .72);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .30);
    transform: translateY(-50%);
    cursor: pointer;
}

.pwg-lightbox-arrow:hover,
.pwg-lightbox-arrow:focus-visible {
    border-color: var(--pwg-accent);
    background: rgba(5, 40, 77, .94);
    outline: none;
}

.pwg-lightbox-arrow svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pwg-lightbox-prev {
    left: 28px;
}

.pwg-lightbox-next {
    right: 28px;
}

.pwg-lightbox-dots {
    position: fixed;
    z-index: 10001;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 12px;
    transform: translateX(-50%);
}

.pwg-lightbox-dots button {
    width: 17px;
    height: 17px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.pwg-lightbox-dots button:hover,
.pwg-lightbox-dots button:focus-visible {
    border-color: var(--pwg-accent);
    transform: scale(1.18);
    outline: none;
}

.pwg-lightbox-dots button.is-active {
    border-color: var(--pwg-accent);
    background: var(--pwg-accent);
}

.pwg-lightbox-close {
    position: fixed;
    z-index: 10001;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    color: #fff;
    background: rgba(5, 40, 77, .72);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .30);
    cursor: pointer;
}

.pwg-lightbox-close:hover,
.pwg-lightbox-close:focus-visible {
    border-color: var(--pwg-accent);
    background: rgba(5, 40, 77, .94);
    outline: none;
}

.pwg-lightbox-close svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

body.pwg-lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px), (max-height: 600px) {
    .pwg-lightbox-close {
        top: 14px;
        right: 14px;
        width: 52px;
        height: 52px;
    }

    .pwg-lightbox-arrow {
        width: 44px;
        height: 58px;
        border-radius: 11px;
    }

    .pwg-lightbox-prev {
        left: 10px;
    }

    .pwg-lightbox-next {
        right: 10px;
    }

    .pwg-lightbox-dots {
        bottom: 16px;
        gap: 10px;
    }

    .pwg-lightbox-dots button {
        width: 15px;
        height: 15px;
    }
}
@media (max-width: 768px) {
    .pwg-slideshow {
        width: 100%;
        margin-top: 22px;
    }

    .pwg-slideshow-viewport {
        border-radius: 18px;
    }

    .pwg-slideshow-arrow {
        width: 38px;
        height: 48px;
        border-radius: 10px;
    }

    .pwg-slideshow-prev {
        left: 8px;
    }

    .pwg-slideshow-next {
        right: 8px;
    }
}
