
.wu-public-slideshow,
.wu-public-slideshow * {
    box-sizing: border-box;
}

.wu-public-slideshow {
    margin: 0;
    background: linear-gradient(180deg, #F5ECDD 0%, #FBF8F2 100%);
    font-family: var(--wu-font-sans, Inter, Arial, sans-serif);
}

.wu-slideshow-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 20px;
    padding: 22px 30px;
}

.wu-slideshow-brand img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.wu-slideshow-back,
.wu-slideshow-contact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    color: var(--wu-neutral-700);
    font-size: 14px;
    text-decoration: none;
}

.wu-slideshow-back .wu-icon {
    transform: rotate(180deg);
}

.wu-slideshow-contact {
    justify-self: end;
    color: #916b32;
    font-weight: 650;
}

.wu-slideshow-content {
    padding: 6px 36px 30px;
}

.wu-slideshow-heading {
    text-align: center;
    margin: 0 0 30px;
}

.wu-slideshow-heading p {
    margin: 0;
    color: #a87c3a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.wu-slideshow-heading h1 {
    margin: 0;
    font: 600 clamp(32px, 4.3vw, 72px)/1.2 var(--wu-font-display, Georgia, serif);
    letter-spacing: -.04em;
}

.wu-slideshow-heading h1 em {
    color: #a87c3a;
    font-weight: 500;
}

/* 02 — Photo player. Preserve the full image and keep controls reachable. */
.wu-slideshow-player {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #171512;
}

.wu-slideshow-photo {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #171512;
    cursor: zoom-in;
}

.wu-slideshow-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wu-slideshow-page[data-photo-fit="cover"] .wu-slideshow-photo img {
    object-fit: cover;
}

.wu-slideshow-counter,
.wu-slideshow-fullscreen,
.wu-slideshow-playback button {
    border: 1px solid #ffffff70;
    border-radius: 5px;
    color: white;
    background: #231a12d9;
    font: 500 12px/1.4 var(--wu-font-sans);
}

.wu-slideshow-counter {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 10px;
    pointer-events: none;
}

.wu-slideshow-fullscreen {
    position: absolute;
    top: 18px;
    right: 18px;
    min-height: 40px;
    padding: 8px 12px;
    cursor: pointer;
}

.wu-slideshow-playback {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: flex;
    gap: 5px;
}

.wu-slideshow-playback button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
}

#slideshowPrevious .wu-icon {
    transform: rotate(180deg);
}

.wu-slideshow-playback img {
    filter: brightness(0) invert(1);
}

.wu-slideshow-playback button:hover,
.wu-slideshow-fullscreen:hover {
    background: #634728;
}

.wu-slideshow-player button:disabled {
    cursor: default;
    opacity: .5;
}

.wu-slideshow-qr {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 7px;
    color: var(--wu-gold-600);
    background: white;
    text-decoration: none;
    font: 700 16px/1.3 var(--wu-font-display);
}

.wu-slideshow-qr img {
    display: block;
    width: clamp(60px, 8vw, 120px);
    height: auto;
}

.wu-slideshow-hint {
    margin: 0;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.wu-slideshow-status {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: min(400px, 80%);
    margin: 0;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.wu-slideshow-player [hidden] {
    display: none !important;
}

.wu-public-slideshow button:focus-visible,
.wu-public-slideshow a:focus-visible,
.wu-public-slideshow summary:focus-visible,
.wu-public-slideshow select:focus-visible {
    outline: 3px solid #c19a5b;
    outline-offset: 3px;
}

.wu-slideshow-player button:focus-visible,
.wu-slideshow-qr:focus-visible {
    outline-offset: -3px;
}

/* 04 — Fullscreen applies to the player, including QR and all controls. */
.wu-slideshow-player:fullscreen,
.wu-slideshow-player.is-expanded {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    background: #171512;
}

.wu-slideshow-player::backdrop {
    background: #171512;
}

.wu-slideshow-player.is-expanded {
    position: fixed;
    inset: 0;
    z-index: 2000;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
}

.wu-slideshow-player:fullscreen .wu-slideshow-photo,
.wu-slideshow-player.is-expanded .wu-slideshow-photo {
    cursor: zoom-out;
}

.wu-slideshow-page .wu-slideshow-player:fullscreen .wu-slideshow-photo img,
.wu-slideshow-page .wu-slideshow-player.is-expanded .wu-slideshow-photo img {
    object-fit: contain;
}

.wu-public-slideshow.wu-slideshow-expanded {
    overflow: hidden;
}

/* 05 — Tablet and mobile composition. */
@media (min-width: 576px) and (max-width: 1023.98px) {
    .wu-slideshow-header {
        padding: 18px 24px;
    }

    .wu-slideshow-brand img {
        width: 150px;
    }

    .wu-slideshow-content {
        padding: 12px 30px 20px;
    }

    .wu-slideshow-heading {
        margin-bottom: 24px;
    }

    .wu-slideshow-heading h1 {
        font-size: clamp(36px, 6vw, 58px);
    }

    .wu-slideshow-player {
        aspect-ratio: 1 / 1;
    }

    .wu-slideshow-legal {
        display: none;
    }

    .wu-slideshow-legal-menu {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .wu-slideshow-header {
        gap: 10px;
        align-items: center;
        padding: 12px 16px;
    }

    .wu-slideshow-brand img {
        width: 126px;
    }

    .wu-slideshow-back,
    .wu-slideshow-contact {
        min-width: 32px;
        min-height: 44px;
    }

    .wu-slideshow-back span,
    .wu-slideshow-contact span {
        display: none;
    }

    .wu-slideshow-content {
        padding: 12px 16px;
    }

    .wu-slideshow-heading {
        margin-bottom: 22px;
    }

    .wu-slideshow-heading p {
        font-size: 12px;
    }

    .wu-slideshow-heading h1 {
        font-size: clamp(29px, 8vw, 44px);
    }

    .wu-slideshow-player {
        aspect-ratio: 8 / 7;
    }

    .wu-slideshow-counter {
        top: 12px;
        left: 12px;
        padding: 7px;
        font-size: 11px;
    }

    .wu-slideshow-fullscreen {
        top: 12px;
        right: 12px;
        min-height: 40px;
        padding: 7px;
        font-size: 11px;
    }

    .wu-slideshow-playback {
        left: 12px;
        bottom: 12px;
        gap: 3px;
    }

    .wu-slideshow-playback button {
        width: 40px;
        height: 44px;
    }

    .wu-slideshow-qr {
        right: 12px;
        bottom: 12px;
        padding: 5px;
        font-size: 8px;
    }

    .wu-slideshow-qr img {
        width: 62px;
    }
    .wu-slideshow-footer{
        padding: 19px 24px;
    }
}
/* 06 — Full-height page with the original player aspect ratios. */
body.wu-public-slideshow {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body.wu-public-slideshow > .wu-slideshow-header,
body.wu-public-slideshow #slideshowPage > .wu-slideshow-footer {
    flex: 0 0 auto;
}

body.wu-public-slideshow > #slideshowPage {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
}

body.wu-public-slideshow #slideshowPage > .wu-slideshow-content {
    display: block;
    flex: 1 0 auto;
    min-width: 0;
}
/* 07 — Wrap content on portrait tablet/mobile viewports only. */
@media (max-width: 1199.98px) and (orientation: portrait) {
    body.wu-public-slideshow {
        height: auto;
        min-height: 0;
    }

    body.wu-public-slideshow > #slideshowPage,
    body.wu-public-slideshow #slideshowPage > .wu-slideshow-content {
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
    }
}

/* footer */
.wu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0;
    padding: 24px;
    min-height: 64px;
    background: #fff;
    font-size: 12px;
    color: #918a80;
}

.wu-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    margin-left: auto;
    min-width: 0;
}

/* dropdown lang */
.dropdown-menu {
  --bs-dropdown-zindex: 1000;
    max-width: calc(100vw - 28px);
    max-height: min(420px, calc(100dvh - 90px));
    overflow-y: auto;
    /* padding: 8px; */
    border: 1px solid var(--wu-neutral-200, #e9e2d8);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(35, 27, 18, .18);
}

.dropdown-menu .dropdown-item {
    padding: 8px 24px;
    cursor: pointer;
}

.dropdown-item.focus, .dropdown-item:focus,
.dropdown-item.hover, .dropdown-item:hover {
    background-color: var(--wu-gold-50);
}

.dropdown-item.active, .dropdown-item:active {
    color: var(--wu-neutral-900);
    text-decoration: none;
    background-color: var(--wu-gold-100);
}

.wu-action-menu .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 8px;
}

.wu-locale {
    position: relative;
    flex: 0 0 auto;
}

.wu-locale-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 78px;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid var(--wu-neutral-300);
    border-radius: 999px;
    background: transparent;
    font-family: var(--wu-font-sans);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.wu-locale-trigger:hover,
.wu-locale-trigger[aria-expanded="true"] {
    background: var(--wu-locale-hover);
    border-color: currentColor;
}

.wu-locale-trigger:focus-visible,
.wu-locale-option:focus-visible {
    outline: 2px solid var(--wu-gold-500);
    outline-offset: 3px;
}

.wu-locale-flag {
    font-size: 20px;
    line-height: 1;
}

.wu-locale-chevron {
    width: 7px;
    height: 7px;
    margin: -3px 1px 0 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.wu-locale-trigger[aria-expanded="true"] .wu-locale-chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

/* Menu selalu terang agar pilihan mudah dibaca pada semua warna header */
.wu-locale-menu {
    min-width: 218px;
    max-width: calc(100vw - 28px);
    max-height: min(420px, calc(100dvh - 90px));
    overflow-y: auto;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid var(--wu-neutral-200, #e9e2d8);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(35, 27, 18, .18);
}

.wu-locale-option {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--wu-neutral-900, #29241f);
    font-size: 14px;
    text-align: left;
}

.wu-locale-option>span:first-child {
    font-size: 19px;
    line-height: 1;
}

.wu-locale-option:hover,
.wu-locale-option:focus,
.wu-locale-option[aria-pressed="true"] {
    background: var(--wu-gold-50, #f7f0e5);
    color: var(--wu-bronze-800, #705840);
}

.wu-locale-check {
    opacity: 0;
    color: var(--wu-gold-600, #a77e50);
    font-weight: 800;
}

.wu-locale-option[aria-pressed="true"] .wu-locale-check {
    opacity: 1;
}

.wu-footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.wu-footer-copyright {
    font-size: 14px;
    color: var(--wu-neutral-500);
}

.wu-footer-links a {
    color: var(--wu-neutral-900);
    white-space: nowrap;
    font-size: 14px;
}

.wu-footer-legal {
    display: none;
    position: relative;
    color: #59524a;
}

.wu-footer-legal summary {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
    cursor: pointer;
    min-height: 44px;
    font-size: 14px;
}

.wu-footer-legal summary::-webkit-details-marker {
    display: none;
}

.wu-footer-legal nav {
    display: grid;
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    width: 170px;
    padding: 6px;
    border: 1px solid var(--wu-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--wu-shadow);
    z-index: 60;
}

.wu-footer-legal a {
    display: block;
    padding: 10px;
    border-radius: 4px;
}

.wu-footer-legal a:hover {
    background: var(--wu-soft);
}

.wu-footer-language {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #273042;
}

.wu-language-select {
    min-width: 0;
    max-width: 150px;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 6px 2px;
    font: inherit;
    cursor: pointer;
}
@media (max-width: 1199.98px) {
    .wu-footer-links {
        display: none;
    }

    .wu-footer-legal {
        display: block;
    }

    .wu-footer-actions {
        gap: 16px;
    }
}
@media (max-width: 767.98px) {
        .wu-footer {
        gap: 8px;
        padding-top: 10px;
        padding-bottom: 16px;
    }

    .wu-locale-trigger {
        padding: 4px 8px;
        font-size: 14px;
    }

    .wu-footer-actions {
        order: 0;
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .wu-footer-copyright {
        order: 1;
        width: 100%;
        text-align: center;
        font-size: 14px;
    }

    .wu-footer-language {
        border-color: var(--wu-line);
        padding-inline: 6px;
    }
}