/* Guest album only. Layout and modal primitives come from Bootstrap;
   buttons, fields, segmented controls and design tokens come from wu-components. */
hr {
    margin: 1rem 0;
    color: inherit;
    border-width: 1px;
    border-top: var(--wu-neutral-300) solid;
    opacity: .25;
}


.wu-guest {
    --guest-bg: var(--wu-gold-50, #fbf8f2);
    --guest-ink: var(--wu-neutral-900, #29241f);
    --guest-muted: var(--wu-neutral-600, #665f59);
    --guest-line: var(--wu-neutral-200, #e8e2da);
    color: var(--guest-ink);
    background: #fff;
    font-family: var(--wu-font-sans, system-ui, sans-serif);
}

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

.wu-guest button {
    cursor: pointer;
}

.wu-guest :is(button, a, select, input, textarea):focus-visible {
    outline: 3px solid var(--wu-gold-500, #c19a5b);
    outline-offset: 2px;
}

.wu-guest-skip {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 1200;
    padding: 8px 12px;
    background: #fff;
}

.wu-guest-skip:focus {
    top: 12px;
}

.wu-guest-shell {
    max-width: unset;
}

.wu-guest> :is(header, main, footer) {
    max-width: 1440px;
    margin-inline: auto;
}

#albumMain .wu-nav-links {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-inline: 0;
}

#albumMain .wu-nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wu-neutral-900);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

#albumMain .wu-nav-link .wu-icon {
    justify-self: end;
    margin-right: 12px;
}

#albumMain .wu-nav-link span {
    grid-column: 2;
    text-align: center;
}

#albumMain a.wu-nav-link:hover {
    font-weight: 600;
}

#albumMain .wu-btn--outline {
    color: #2b2118;
    background: #fff;
    border-color: var(--wu-neutral-0)
}

#albumMain.wu-nav-link[data-wu-scroll-link].is-active::after {
    left: 0;
    right: 0
}

/* Dropdown Language */
.wu-guest-header .wu-locale {
    position: relative;
    flex: 0 0 auto;
}

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

.wu-header.wu-header--light .wu-locale-trigger {
    color: var(--wu-gold-700);
}

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

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

.wu-locale-flag {
    font-size: 19px;
    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-guest-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-guest-header .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-guest-header .wu-locale-option>span:first-child {
    font-size: 19px;
    line-height: 1;
}

.wu-guest-header .wu-locale-option:hover,
.wu-guest-header .wu-locale-option:focus,
.wu-guest-header .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;
}

/* End of Dropdown Language */

.wu-guest.wu-guest-dialog-open {
    overflow: hidden;
}

.wu-guest button:focus-visible,
.wu-guest a:focus-visible,
.wu-guest select:focus-visible {
    outline: 3px solid var(--guest-gold);
    outline-offset: 3px;
}

.wu-guest-shell {
    width: min(100% - 32px, 1370px);
    margin-inline: auto;
}

.wu-guest-skip {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 3000;
    padding: 10px 14px;
    background: var(--guest-ink);
    color: #fff;
}

.wu-guest-skip:focus {
    top: 12px;
}

.wu-guest-header {
    position: relative;
    z-index: 5;
    background: var(--wu-neutral-0);
    border-bottom: 2px solid #eee7dc;
    /* border-radius: 18px 18px 0 0; */
}

.wu-album2 .wu-guest-header {
    background: var(--wu-bronze-800);
    border-bottom: none;
}

.wu-album3 .wu-guest-header {
    background: var(--wu-neutral-0);
    border-bottom: none;
}

.wu-album2 .vr {
    display: inline-block;
    align-self: stretch;
    width: var(--bs-border-width);
    min-height: 1em;
    background-color: var(--wu-neutral-300);
    opacity: 1;
    margin: 0 16px;
}

.wu-guest-header__inner {
    min-height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.wu-album2 .wu-guest-header__inner,
.wu-album3 .wu-guest-header__inner {
    min-height: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 14px;
}

.wu-guest-locale {
    justify-self: start;
}

.wu-guest-locale select {
    border: 0;
    background: transparent;
    color: #806138;
    font-size: 13px;
    font-weight: 750;
    padding: 8px;
}

.wu-guest-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--guest-ink);
    text-decoration: none;
    white-space: nowrap;
}

.wu-album2 .wu-guest-brand {
    color: var(--wu-neutral-0);
}

.wu-guest-brand img {
    width: 32px;
}


.wu-guest-brand__seal {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 2px double #bd9658;
    border-radius: 50%;
    color: #a47d45;
    font: 11px/1 var(--wu-font-display, Georgia, serif);
}

.wu-guest-brand strong {
    font: 600 17px/1.2 var(--wu-font-display, Georgia, serif);
}

.wu-guest-brand__date {
    margin-top: 5px;
    padding-left: 8px;
    border-left: 1px solid var(--guest-line);
    color: #a39a8d;
    font-size: 10px;
    letter-spacing: .04em;
}

.wu-guest-header__actions {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 9px;
    height: 24px;
}

.wu-album2 .wu-guest-header__actions .wu-button {
    padding: 6px 12px;
    height: auto;
    width: 44px;

}

.wu-guest-header__actions .wu-button {
    padding: 8px;
}

.wu-guest-header__action+.wu-guest-header__action {
    padding-left: 13px;
    border-left: 1px solid var(--guest-line);
}

.wu-guest-header__action--report {
    color: #b44040;
}

.wu-guest-header__action>span:first-child {
    font-size: 18px;
    line-height: 1;
}

/* Shared hero actions and gallery */
.wu-guest-hero {
    background: linear-gradient(180deg, #F5ECDD 0%, #FBF8F2 100%);
}

.wu-album2 .wu-guest-hero {
    height: 660px;
    background-image: url(../images/07-guest-album/guest-album-2.webp);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.wu-guest-hero__inner {
    min-width: 0;
}

.wu-guest-eyebrow {
    margin: 0 0 8px;
    color: #9c743b;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.wu-guest-hero h1 {
    margin: 0;
    font: 400 clamp(54px, 5.4vw, 84px)/1.05 var(--wu-font-display, Georgia, serif);
    letter-spacing: -.05em;
    text-wrap: balance;
}

.wu-guest-hero h1 em,
.wu-moderator-intro h1 em {
    color: #ba9252;
    font-weight: 500;
}

.wu-guest-intro {
    margin: 8px 0 24px;
    color: var(--guest-muted);
    font: 400 clamp(15px, 1.3vw, 18px)/1.4 var(--wu-font-display, Georgia, serif);
}

.wu-guest-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 20px;
}

.wu-guest-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 56px;
    padding: 12px;
    border: 1px solid var(--wu-neutral-200);
    border-radius: 24px;
    background: var(--wu-gold-50);
    color: var(--guest-ink);
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .2s ease, border-color .2s ease;
}

.wu-guest-action:hover {
    transform: translateY(-2px);
    border-color: var(--wu-gold-500);
}

.wu-guest-action .text-title {
    font-size: 16px;
    font-weight: 500;
}

.wu-guest-help {
    gap: 12px;
}

.wu-guest-help p {
    font-size: 16px;
    font-weight: 500;
}

.wu-guest-jump,
.wu-guest-hero__links button {
    color: var(--wu-gold-700, #806036);
    font-size: 12px;
}

.wu-guest-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.wu-guest-hero__links button {
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: underline;
}

.wu-album1 .wu-guest-hero {
    padding: clamp(32px, 5vw, 72px) 0 46px;
    text-align: center;
}

.wu-album1 .wu-guest-actions {
    max-width: 820px;
    margin-inline: auto;
}

.wu-guest-upload-stage {
    max-width: 820px;
    margin: 24px auto 0;
    padding: 48px 96px;
    border: 1px solid var(--wu-gold-400);
    border-radius: 18px;
    background: rgb(255, 255, 255, .7);
    text-align: center;
}

.wu-guest-upload-stage>p {
    color: var(--wu-gold-700);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.5;
}

.wu-guest-upload-stage h5 {
    font-size: 15px;
}

.wu-guest-upload-stage__browse,
.wu-guest-upload-drop__button {
    display: grid;
    justify-items: center;
    align-content: center;
    width: 100%;
    min-height: 110px;
    border: 1px dashed var(--wu-gold-400);
    border-radius: 12px;
    background: var(--wu-gold-50);
    color: var(--wu-neutral-900);
    padding: 20px 0;
}

.wu-guest-upload-stage__browse>span,
.wu-guest-upload-drop__button>span {
    font-size: 24px;
}

.wu-guest-upload-drop__button h5 {
    font-size: 14px;
}

.wu-guest-upload-stage__browse small,
.wu-guest-upload-drop__button small {
    color: var(--wu-neutral-500);
    font-size: 12px;
}

.wu-guest-upload-stage hr {
    margin: 1rem 0;
    color: inherit;
    border-width: 1px;
    border-top: var(--wu-neutral-200) solid;
    opacity: .25;
}

.wu-guest-upload-stage__extras {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px auto;
    border: 1px solid var(--wu-neutral-200);
    width: fit-content;
    border-radius: 24px;
    padding: 10px;
}

.wu-guest-upload-stage__extras button {
    border: 0;
    background: none;
    color: var(--wu-neutral-700);
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wu-album1 .wu-guest-upload-stage__extras {
    flex-wrap: nowrap;
    gap: 10px;
    margin: 24px auto 12px;
    border: none;
    /* background: var(--wu-gold-100); */
    width: 100%;
    border-radius: 24px;
    padding: 6px;
    height: 44px;
}

.wu-album1 .wu-guest-upload-stage__extras button {
    width: 100%;
    border: 0;
    background: none;
    color: var(--wu-neutral-700);
    font-weight: 400;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 24px;
}

.wu-album1 .wu-guest-upload-stage__extras button.is-active {
    background: var(--wu-gold-700);
    color: var(--wu-neutral-0);
}

.wu-guest-jump {
    display: block;
    margin-top: 14px;
    text-decoration: none;
    color: var(--wu-gold-500);
    font-size: 14px;
}

.wu-guest-jump:hover {
    color: var(--wu-gold-700);
}

.wu-guest-upload-stage hr {
    margin: 1rem 0;
    color: inherit;
    border-width: 1px;
    border-top: var(--wu-neutral-200) solid;
    opacity: .25;
}

.wu-album2 .wu-guest-gallery-section {
    background: linear-gradient(180deg, #FBF8F2 0%, #F5ECDD 100%);
}

.wu-guest-gallery-section hr {
    border-top: var(--wu-neutral-200) solid;
}

.wu-guest .form-control:focus,
.wu-guest .form-select:focus {
    border-color: var(--wu-gold-500);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(193, 154, 91, .25);
}

.wu-album2 .wu-guest-hero {
    padding: 50px 0 36px;
}

.wu-guest-quiet-intro {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.wu-album2 .wu-guest-actions {
    max-width: 800px;
    margin-inline: auto;
}

.wu-guest-quiet-photo {
    height: clamp(250px, 31vw, 420px);
    overflow: hidden;
    border-radius: 20px 20px 80px 20px;
}

.wu-guest-quiet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wu-guest-quiet-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(94%, 900px);
    margin: 0 auto;
    padding: 10px 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px #493c2a1c;
}

.wu-guest-quiet-cta>div {
    display: grid;
    gap: 3px;
}

.wu-guest-quiet-cta strong {
    font: 500 22px/1.2 var(--wu-font-display, Georgia, serif);
}

.wu-guest-photo-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 12px 16px;
    border: 5px solid #dfcea9;
    border-radius: 50px;
    background: #83653d;
    color: #fff;
    text-align: left;
}

.wu-guest-photo-cta>span:first-child {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #d4b777;
}

.wu-guest-photo-cta>span:nth-child(2) {
    display: grid;
}

.wu-guest-photo-cta small {
    font-size: 11px;
}

.wu-guest-photo-cta b {
    margin-left: auto;
}

/* One scalable item list; columns form the masonry without fixed column wrappers. */
.wu-moderator-intro h1 br {
    display: none;
}

.wu-guest-gallery-section,
.wu-moderator-gallery {
    padding: clamp(36px, 5vw, 72px) 0;
}

.wu-guest-gallery-head,
.wu-guest-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.wu-guest-gallery-head h2 {
    margin: 0;
    font: 500 clamp(32px, 3.4vw, 48px)/1.1 var(--wu-font-display, Georgia, serif);
}

.wu-guest-moderator-link {
    color: var(--wu-danger-700, #a33);
    font-size: 12px;
    text-decoration: none;
}


.wu-guest .wu-segment-control {
    max-width: 100%;
    overflow-x: auto;
    display: inline-flex;
    gap: 12px;
    padding: var(--wu-space-2);
    border: none;
    border-radius: unset;
    background: transparent;
}

.wu-guest .wu-segment-control>button {
    white-space: nowrap;
    font-weight: 400;
    padding: 8px 16px;
    background-color: var(--wu-neutral-0);
    border: 1px solid var(--wu-neutral-200);
}

.wu-segment-control>button.is-active,
.wu-segment-control>button[aria-selected="true"] {
    background: var(--wu-gold-100);
    border-color: 1px solid var(--wu-gold-400);
    color: var(--wu-gold-500);
    box-shadow: none;
}

.wu-guest-gallery-grid {
    columns: 3;
    column-gap: 14px;
}

.wu-guest-media {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 14px;
    overflow: hidden;
    break-inside: avoid;
    border-radius: 12px;
    background: var(--guest-bg);
    vertical-align: top;
    border: 4px solid transparent;
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
    cursor: pointer;
}

.wu-guest-media:hover,
.wu-guest-media:active {
    transform: scale(1.02);
    border-color: var(--wu-gold-400);
    box-shadow: 0 0 0 8px var(--wu-form-ring);
}

.wu-guest-media:active {
    transform: scale(1.01);
}

.wu-guest-media>img {
    display: block;
    width: 100%;
    height: auto;
}

.wu-guest-media::after {
    content: '';
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(transparent, #1c1717af);
    pointer-events: none;
}

.wu-guest-media__caption {
    position: absolute;
    z-index: 1;
    left: 12px;
    bottom: 13px;
    /* max-width: calc(100% - 110px); */
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wu-guest-media__badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 4px 9px;
    border-radius: 20px;
    background: var(--wu-bronze-700);
    color: #fff;
    font-size: 11px;
}

.wu-guest-media__actions {
    position: absolute;
    z-index: 2;
    right: 9px;
    bottom: 9px;
    display: flex;
    gap: 6px;
}

.wu-guest-media__actions .wu-button {
    min-height: 36px;
    padding-inline: 10px;
}



/* masonry */
/* Bounded masonry thumbnails — Guest Templates 1–3 only. */
#sharedGallery [data-gallery] {
    --wu-gallery-columns: 4;
    --wu-gallery-card-width: 320px;
    --wu-gallery-thumbnail-height: 420px;
    --wu-gallery-gap: 14px;

    width: 100%;
    max-width: calc(
        var(--wu-gallery-columns) * var(--wu-gallery-card-width)
        + (var(--wu-gallery-columns) - 1) * var(--wu-gallery-gap)
    );
    margin-inline: auto;

    column-count: var(--wu-gallery-columns);
    column-gap: var(--wu-gallery-gap);
    column-fill: balance;
}

#sharedGallery [data-gallery] > .wu-guest-media {
    display: block;
    width: 100%;
    max-width: var(--wu-gallery-card-width);
    margin: 0 0 var(--wu-gallery-gap);
    overflow: hidden;
    break-inside: avoid;
}

#sharedGallery [data-gallery] > .wu-guest-media > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: var(--wu-gallery-thumbnail-height);
    object-fit: cover;
    object-position: center;
}

@media (max-width: 991.98px) {
    #sharedGallery [data-gallery] {
        --wu-gallery-columns: 3;
    }
}

@media (max-width: 700px) {
    #sharedGallery [data-gallery] {
        --wu-gallery-columns: 2;
    }
}


/* Video card interaction only; the native button covers the entire figure. */
#sharedGallery [data-drive-preview] {
    display: block;
}

#sharedGallery [data-drive-preview]>.wu-guest-media__actions {
    inset: 0;
    display: block;
}

#sharedGallery [data-drive-preview] .wu-guest-media__video-trigger {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

#sharedGallery [data-drive-preview] .wu-guest-media__video-play {
    display: block;
    width: 64px;
    height: 64px;
    color: var(--wu-neutral-900);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

#sharedGallery [data-drive-preview]:hover .wu-guest-media__video-play,
#sharedGallery [data-drive-preview] .wu-guest-media__video-trigger:focus-visible .wu-guest-media__video-play {
    opacity: 1;
}

#sharedGallery [data-drive-preview] .wu-guest-media__video-trigger:focus-visible {
    outline: 3px solid var(--wu-gold-500);
    outline-offset: -3px;
}

@media (hover: none),
(pointer: coarse) {
    #sharedGallery [data-drive-preview] .wu-guest-media__video-play {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    #sharedGallery [data-drive-preview] .wu-guest-media__video-play {
        transition: none;
    }
}

.wu-guest-gallery-empty {
    padding: 30px;
    text-align: center;
    color: var(--guest-muted);
}

.wu-guest-footer {
    padding: 26px 0;
    border-top: 1px solid var(--guest-line);
    background: #fbf8f3;
    color: var(--guest-ink);
}

.wu-album2 .wu-guest-footer {
    background: var(--wu-warm-300);
}

.wu-album3 .wu-guest-footer {
    background: var(--wu-warm-50);
}

.wu-guest-footer>.wu-guest-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wu-guest-footer>.wu-guest-shell>div {
    display: grid;
}

.wu-guest-footer small {
    font-size: 12px;
}

.wu-guest-closing {
    padding: 45px 0;
    background: var(--guest-bg);
}

.wu-guest-closing>.wu-guest-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.wu-guest-closing h2 {
    margin: 0;
    font: 400 clamp(30px, 4vw, 52px)/1.15 var(--wu-font-display, Georgia, serif);
}

/* Bootstrap modal owns focus, backdrop, stacking and dismissal. */
.wu-guest-dialog .modal-dialog {
    max-width: 700px;
}

.wu-guest-dialog .modal-content {
    border: 1px solid var(--guest-line);
    border-radius: 16px;
    overflow: hidden;
}

.wu-guest-dialog .modal-header {
    align-items: start;
    background: var(--wu-gold-100);
}

.wu-guest-dialog .modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: normal;
}
/* 
.wu-guest-dialog .modal-body {
    padding: 22px;
} */

.wu-guest-dialog .modal-footer {
    gap: 10px;
}

.wu-guest-dialog p {
    color: var(--guest-muted);
    line-height: 1.55;
}

.wu-guest-dialog :is(.wu-control, .form-control) {
    width: 100%;
}

.wu-guest-dialog .wu-field-label {
    display: block;
    margin: 12px 0 5px;
}

.wu-guest-share {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

.wu-guest-qr {
    display: grid;
    place-items: start;
}

.wu-guest-mini-qr {
    display: grid;
    place-items: end;
    width: 80px;
    height: auto;
    padding: 12px 0 0 0;
}

.wu-guest-qr {
    width: 200px;
    height: auto;
    padding: 12px 0
}

.wu-guest-qr img {
    width: 80%;
}

.wu-guest-mini-qr img {
    width: 80%;
    margin: 0 auto;
}

.wu-field .wrapper {
    border: 1px solid var(--wu-neutral-300);
    border-radius: 6px;
    padding: 4px 12px;
    width: 100%;
}

.wu-field .form-label {
    text-transform: uppercase;
    color: var(--wu-gold-700);
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    margin-bottom: 4px;
}

.wu-field .form-label.wu-guest-sort {
    text-transform: normal;
    padding: 0;
    margin-bottom: 4px;
    color: var(--guest-muted);
    font-size: 12px;
    font-weight: 400;
    width: 120px;
}

.wu-field .form-label.wu-field-label {
    text-transform: normal;
    padding: 0;
    margin-bottom: 4px;
    color: var(--wu-neutral-900);
    font-size: 12px;
    width: 120px;
}

.form-label.wu-field-label {
    text-transform: normal;
    padding: 0;
    margin-bottom: 4px;
    color: var(--wu-neutral-900);
    font-size: 12px;
    width: 120px;
}

.wu-field .input-group {
    flex-wrap: nowrap;
}

.wu-field .input-group .input-group-text {
    background: transparent;
    border-width: 0;
    border-color: transparent;
    padding: 0;
}

.wu-field .input-group .form-control {
    background: transparent;
    border-width: 0;
    border-color: transparent;
    color: var(--wu-neutral-500);
    font-size: 16px;
    text-overflow: ellipsis;
    padding: .5rem;
}

.wu-guest .form-control,
.wu-guest-dialog .form-control {
    color: var(--wu-neutral-900);
    font-size: 16px;
    text-overflow: ellipsis;
    border-radius: 10px;
}

.wu-guest .form-control::placeholder,
.wu-guest-dialog .form-control::placeholder {
    color: var(--wu-neutral-500);
}

.wu-guest-copy-field {
    display: flex;
    gap: 7px;
}

.wu-guest-copy-field .wu-control {
    min-width: 0;
    color: var(--wu-neutral-500);
}

.wu-guest-save {
    margin-top: 20px;
    border-radius: 12px;
}

.wu-guest-feedback {
    padding: 16px;
    border: 1px solid var(--guest-line);
    border-radius: 12px;
}

.wu-guest-dialog .wu-guest-feedback img {
    width: 60px;
}

.wu-guest-info-list {
    display: grid;
    gap: 0;
    border: 1px solid var(--wu-neutral-200);
    border-radius: 12px;
}

.wu-guest-info-list article {
    padding: 16px 8px 16px 16px;
    border-bottom: 1px solid var(--guest-line);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
}

.wu-guest-info-list article:last-child {
    border-bottom: none;
}

.wu-guest-info-list .icons {
    width: 100%;
    height: 60px;
}

.wu-guest-info-list h3 {
    font-size: 17px;
}

.wu-guest-info-list__icon {
    font-size: 23px;
    color: var(--wu-gold-600, #a47d45);
}

.wu-guest-dialog .wu-guest-itinerary {
    border: 1px solid var(--wu-neutral-200);
    border-radius: 12px;
    margin-top: 16px;
}

.wu-guest-itinerary article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--guest-line);
}

.wu-guest-itinerary time {
    background-color: var(--wu-warm-50);
    text-align: center;
    padding: 8px 12px;
    width: fit-content;
    border-radius: 8px;
    color: var(--wu-neutral-900);
    font-weight: 600;
}

.wu-guest-itinerary p {
    margin: 0;
    font-size: 16px;
}

.wu-guest-seat-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 15px;
    border-radius: 12px;
    background: var(--wu-warning-50);
    border: 1px solid var(--wu-neutral-300);
}

.wu-guest-seat-result small {
    display: block;
    color: var(--wu-neutral-500);
}

.wu-guest-seat-result .table-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    width: 60px;
    height: 60px;
    background-color: var(--wu-primary-2);
    color: var(--wu-neutral-0);
    padding: 12px;
    border-radius: 32px;
}

.wu-guest-seat-result .table-number h5 {
    font-family: var(--wu-font-display);
    font-size: 24px;
}

.wu-guest-seat-result .table-number small {
    font-size: 8px;
    color: var(--wu-neutral-200);
}

.wu-guest-steps {
    padding-left: 0;
}

.wu-guest-steps li {
    list-style: none;
    display: flex;
    align-items: start;
    justify-content: space-between;
    background: var(--wu-gold-50);
    padding: 8px 12px 8px 0;
    margin-bottom: 16px;
    border: 1px solid var(--wu-gold-200);
    border-radius: 12px;
}

.wu-guest-steps .count {
    font-size: 32px;
    padding: 0 12px 0 24px;
    align-self: flex-start;
    color: var(--wu-gold-700);
    font-weight: 700;
    line-height: 32px;
}

.wu-guest-steps .text-instruction,
.wu-guest-info-list .text-instruction {
    width: 100%;
    margin: 6px 12px 0;
}

.wu-guest-steps .icon {
    width: 60px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wu-guest-dialog .wu-guest-note {
    display: flex;
    align-items: center;
    padding: var(--wu-space-4) var(--wu-space-6);
}

.wu-guest-dialog .wu-guest-note img {
    width: 32px;
}

.wu-guest-dialog .wu-segment-control {
    border-radius: 32px;
}

.wu-guest-dialog .wu-segment-control button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--wu-neutral-700);
    font-size: 14px;
    text-transform: uppercase;
    width: 100%;
}

.wu-guest-dialog .wu-segment-control button.is-active {
    background: var(--wu-gold-700);
    color: var(--wu-neutral-0);
    font-weight: 700
}


.wu-guest-upload-progress,
.wu-guest-upload-review__head,
.wu-guest-file,
.wu-guest-lightbox p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wu-guest-upload-progress {
    margin-bottom: 14px;
    color: var(--guest-muted);
    font-size: 12px;
}

.wu-guest-upload-progress .is-active {
    color: var(--wu-gold-700, #806036);
    font-weight: 750;
}

.wu-guest-upload-drop {
    padding: 0;
    border: none;
    border-radius: 0;
    text-align: center;
}

.wu-guest-upload-drop.is-dragging {
    border-color: var(--wu-gold-500, #c19a5b);
    background: var(--guest-bg);
}

.wu-guest-upload-drop>p {
    margin: 8px 0 0;
    font-size: 12px;
}

.wu-guest-upload-review {
    padding: 15px 0;
}

.wu-guest-files {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.wu-guest-file {
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--guest-line);
    border-radius: 9px;
    font-size: 12px;
}

.wu-guest-file img,
.wu-guest-file__type {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.wu-guest-file strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wu-guest-upload-extras {
    margin-top: 16px;
}

.wu-guest-extra-panel {
    padding: 15px 0;
}

.wu-guest-extra-panel>small {
    display: block;
    text-align: right;
}

.wu-guest-recorder {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--guest-line);
    border-radius: 12px;
}

.wu-guest-recorder__button {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid var(--guest-line);
    border-radius: 50%;
    background: var(--guest-bg);
}

.wu-guest-recorder__button span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wu-danger-500);
    border: 2px solid var(--wu-danger-200);
}

.wu-guest-recorder__button b {
    font-size: 9px;
    text-transform: uppercase;
}


.wu-guest-recorder__button[aria-pressed='true'] span {
    border-radius: 3px;
}

.wu-guest-recorder audio {
    max-width: 100%;
}

.wu-guest-upload-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--wu-success-50, #edf7f0);
}

.wu-guest-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 65dvh;
    margin: auto;
    object-fit: contain;
}

.wu-guest-lightbox__nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.wu-guest-lightbox p {
    flex-wrap: wrap;
    margin-top: 14px;
}

.wu-guest-toast {
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
    padding: 10px 16px;
    border-radius: 30px;
    background: var(--guest-ink);
    color: #fff;
    box-shadow: 0 12px 25px #0003;
}

/* Moderator reuses the gallery item, with its own explicit remove action. */
.wu-moderator .wu-guest-header__inner {
    grid-template-columns: 1fr 1fr;
}

.wu-moderator-intro {
    padding: 44px 0;
    background: linear-gradient(180deg, #F5ECDD 0%, #FBF8F2 100%);
}

.wu-moderator-intro__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.wu-moderator-intro h1 {
    margin: 0;
    /* font: 400 48px/1.15 var(--wu-font-display, Georgia, serif); */
}

.wu-moderator-caution {
    padding: 16px;
    border: 1px solid var(--wu-gold-400);
    border-radius: 12px;
}

.wu-moderator-caution ul {
    margin: 0;
    padding-left: 20px;
}

.wu-moderator-caution li {
    margin: 4px 0;
}

.wu-moderator .wu-guest-media__caption {
    top: 12px;
    bottom: auto;
    /* max-width: calc(100% - 85px); */
    padding: 4px 8px;
    border-radius: 20px;
    background: #1c17178c;
}

.wu-moderator .wu-guest-media__actions {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wu-moderator .wu-guest-media__actions .wu-button {
    position: absolute;
    pointer-events: auto;
}

.wu-moderator .wu-guest-media__actions .wu-button--danger {
    background: var(--wu-danger-500);
    color: var(--wu-neutral-0);
    border-color: transparent;
}

.wu-moderator [data-preview-photo] {
    top: 9px;
    right: 9px;
}

.wu-moderator [data-moderate-photo] {
    right: 9px;
    bottom: 9px;
}

.wu-guest-confirm {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 14px;
}

.wu-guest-confirm img {
    width: 110px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 9px;
}

/* Album Template 3 */
.wu-album3 .wu-guest-hero {
    height: 700px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E6DEC6 100%);
    overflow: hidden;
}

.wu-album3 .wu-guest-header {
    background: var(--wu-neutral-0);
    border-bottom: none;
}

.wu-album3 .wu-guest-hero .wu-guest-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    width: 100%;
}

.wu-album3 .wu-guest-shell .wu-guest-hero__photo img {
    width: 740px;
    height: auto;
}

.wu-album3 .wu-guest-hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

.wu-album3 .wu-guest-hero__photo {
    min-height: 520px;
    overflow: hidden;
    border-radius: 0 76px 0 0;
    box-shadow: 0px 32px 80px 0px #18161438;
}

.wu-album3 .wu-guest-hero__copy {
    align-self: flex-start;
    min-width: 0;
    padding: clamp(24px, 4vw, 60px);
}

.wu-album3 .wu-guest-hero h1 em {
    display: block;
}

.wu-album3 .wu-guest-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.wu-album3 .wu-guest-action {
    color: var(--guest-ink);
    font-size: 12px;
    font-weight: 400;
    border-radius: 12px;
}

.wu-album3 .wu-guest-action .text-title {
    text-transform: uppercase;
    font-weight: 400;
    color: var(--wu-neutral-700);
    font-size: 14px;
    margin-top: 8px;
}

.wu-album3 .wu-guest-hero .wu-guest-upload-stage__extras {
    margin: 12px auto;
}

.wu-album3 .wu-guest-help {
    background-color: rgba(0, 0, 0, .05);
    margin: 24px 0 0;
}

.wu-album3 .wu-guest-help p {
    font-weight: 400;
}

.wu-album3 .wu-field .form-label.wu-guest-sort {
    width: 200px;
    text-align: right;
    margin-bottom: 0;

}

/* Template 1: inline upload review and demo states. Template 2 retains its modal. */
.wu-album1 [data-inline-upload-stage].is-dragging {
    border-color: var(--wu-gold-600);
    background: var(--wu-gold-50);
}

.wu-album1 [data-inline-upload-stage] [hidden] {
    display: none !important;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-review {
    padding: 18px 0 0;
    text-align: left;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-review__head {
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: var(--wu-neutral-900);
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-files {
    gap: 10px;
    margin: 0;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    min-height: 68px;
    padding: 9px 12px;
    border-color: var(--wu-neutral-200);
    border-radius: 10px;
    background: #fff;
    text-align: left;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file img,
:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file .wu-guest-file__type {
    width: 48px;
    height: 48px;
    border-radius: 7px;
    object-fit: cover;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file .wu-guest-file__type {
    display: grid;
    place-items: center;
    background: var(--wu-gold-50);
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file__info {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 0;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file__info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--wu-neutral-900);
    font-size: 13px;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file__info small {
    color: var(--wu-neutral-500);
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file__status {
    color: var(--wu-gold-500);
    font-size: 12px;
    white-space: nowrap;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file[data-state="complete"] .wu-guest-inline-file__status {
    color: var(--wu-success-600, #32845a);
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file[data-state="error"] .wu-guest-inline-file__status {
    color: var(--wu-danger-500);
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file[data-state="error"] .wu-guest-inline-file__info strong {
    color: var(--wu-danger-700);
    font-weight: 500;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file[data-state="error"] {
    border: 1px solid var(--wu-danger-500);
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-progress {
    height: 5px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--wu-gold-100);
    margin-top: 4px;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(270deg, #71563D 0%, #C19A5B 100%);
    transition: width .13s linear;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-extras {
    margin: 0 auto 20px;
    padding: 18px;
    border: 1px solid var(--wu-neutral-200);
    border-radius: 12px;
    background: #fff;
    text-align: left;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-extra-panel {
    padding: 0;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-extra-panel>p {
    margin-bottom: 14px;
    color: var(--wu-neutral-600);
    font-size: 13px;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-fields>div {
    min-width: 0;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-extra-panel .wu-control {
    width: 100%;
    /* margin-bottom: 10px; */
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-contribution-status,
:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-demo-note {
    display: block;
    margin: 10px 0 0;
    color: var(--wu-neutral-500);
    font-size: 12px;
    line-height: 1.5;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-result {
    text-align: left;
    line-height: 1.5;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-result[data-state="error"] {
    background: var(--wu-danger-50, #fff0ed);
    color: var(--wu-danger-700, #903626);
}

:is(.wu-album1, .wu-guest-dialog--upload-preview) .wu-guest-upload-preview img,
:is(.wu-album1, .wu-guest-dialog--upload-preview) .wu-guest-upload-preview video {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 70dvh;
    margin: 0 auto;
    object-fit: contain;
}

:is(.wu-album1, .wu-guest-dialog--upload-preview) .wu-guest-upload-preview [hidden] {
    display: none !important;
}

/* Add after the existing Guest Template 1 styles. */
:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    border: 0;
    border-radius: 999px;
    background: var(--wu-gold-100);
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras button {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    min-height: 36px;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    white-space: nowrap;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras:not(.has-files) button.is-active,
:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras:not(.has-files) button:disabled {
    background: transparent;
    color: var(--wu-neutral-700);
    font-weight: 400;
    opacity: 1;
    cursor: default;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras.has-files {
    width: 100%;
    padding: 6px;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras.has-files button {
    flex: 1 1 0;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras.has-files button.is-active {
    background: var(--wu-gold-600);
    color: var(--wu-neutral-0);
    font-weight: 700;
}

.wu-guest-upload-stage__extras button span {
    font-weight: 400;
    font-size: 12px;
    opacity: .6;
}

:is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras.has-files .vr {
    display: none !important;
}

@media (max-width: 767.98px) {
    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 8px;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file img,
    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file .wu-guest-file__type {
        width: 42px;
        height: 42px;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file__status {
        text-overflow: ellipsis;
        font-size: 10px;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file__actions {
        grid-column: 3;
        grid-row: 1 / 3;
        flex-direction: column;
        gap: 2px;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-fields {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-extras {
        padding: 14px;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file__info {
        display: block;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-inline-file__info strong {
        width: 100px;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras {
        flex-direction: column;
        gap: 0;
        border-radius: 16px;
        padding: 6px;
        height: fit-content;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras .vr {
        display: none;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras.has-files button.is-active {
        padding: 4px 10px;
        width: 100%;
    }
}

@media (max-width: 500px) {
    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras button {
        gap: 4px;
        padding-inline: 7px;
        font-size: 11px;
    }

    :is(.wu-album1, .wu-guest-dialog--upload) .wu-guest-upload-stage__extras.has-files button {
        min-height: 42px;
    }
}

@media (max-width: 1199.98px) {
    .wu-album3 .wu-guest-hero {
        height: 650px;
    }

    .wu-album3 .wu-guest-hero .wu-guest-shell {
        display: grid;
        grid-template-columns: .75fr 1fr;
        padding: 0;
        width: 100%;
    }

    .wu-album3 .wu-guest-hero__photo {
        min-height: 520px;
        overflow: hidden;
        border-radius: 0 76px 0 0;
    }

    .wu-album3 .wu-guest-shell .wu-guest-hero__photo img {
        width: 600px;
    }

    .wu-album3 .wu-guest-hero__copy {
        align-self: flex-start;
        min-width: 0;
        padding: clamp(24px, 4vw, 60px);
    }

    .wu-album3 .wu-guest-gallery-head .row-1,
    .wu-album3 .wu-guest-gallery-head .row-2 {
        width: 100%;
    }

    .wu-album3 .wu-field .form-label.wu-guest-sort {
        width: 150px;
        text-align: left;
    }

    .wu-moderator-intro h1 br {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .wu-guest-gallery-grid {
        columns: 2;
    }

    .wu-guest-header__inner {
        grid-template-columns: auto auto 1fr;
    }

    .wu-guest-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wu-guest-hero__copy {
        padding: 24px;
    }

    #albumMain .wu-nav-links {
        gap: 12px;
    }

    .wu-album3 .wu-guest-hero {
        height: 600px;
    }

    .wu-album3 .wu-guest-hero .wu-guest-shell {
        grid-template-columns: .6fr 1fr;
    }

    .wu-album3 .wu-guest-shell .wu-guest-hero__photo img {
        width: 500px;
    }

    .wu-album3 .wu-guest-hero__copy {
        padding: 24px;
    }

    .wu-album3 .wu-guest-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wu-album3 .wu-guest-action .text-title {
        font-size: 13px;
        margin-top: 0px;
    }

    .wu-album3 .wu-guest-photo-cta {
        padding: 8px 12px;
    }

    .wu-album3 .wu-guest-hero .wu-guest-upload-stage__extras {
        width: 100%;
        flex-wrap: nowrap;
        margin: 12px 0;
        border-radius: 24px;
        padding: 10px;
    }

    .wu-album3 .wu-guest-hero .wu-guest-upload-stage__extras button {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .wu-guest-header__inner {
        grid-template-columns: 1fr 1fr;
        min-height: 60px;
    }

    .wu-guest-brand {
        justify-self: center;
    }

    .wu-guest-header__action span:last-child {
        display: none;
    }

    .wu-guest-header__actions {
        gap: 16px;
    }

    .wu-guest-header__actions .wu-button {
        padding: 0;
    }

    .wu-album1 .wu-guest-hero {
        padding: 34px 0;
    }

    .wu-guest-quiet-photo {
        height: 250px;
        border-radius: 18px 18px 55px 18px;
    }

    .wu-guest-quiet-cta {
        /* flex-direction: column; */
        align-items: stretch;
        width: 96%;
    }

    .wu-album3 .wu-guest-hero__inner {
        display: block;
    }

    .wu-guest-hero__photo {
        height: 260px;
        min-height: 0;
        border-radius: 0 0 30px 30px;
    }

    .wu-guest-hero__copy {
        padding: 24px 6px;
    }

    .wu-guest-closing>.wu-guest-shell {
        align-items: start;
        flex-direction: column;
    }

    .wu-guest-gallery-grid {
        columns: 1;
    }

    .wu-guest-gallery-controls {
        align-items: start;
        flex-direction: column;
    }

    .wu-guest-share {
        grid-template-columns: 1fr;
        align-items: center;
        justify-content: center;
    }

    .wu-guest-qr {
        margin: 0 auto 24px;
        width: 150px;
    }

    .wu-guest-qr img {
        width: 100%;
    }

    .wu-guest-info-list article {
        grid-template-columns: 32px 1fr;
    }

    .wu-guest-itinerary article {
        grid-template-columns: 48px 1fr;
    }

    .wu-guest-itinerary article button {
        grid-column: 2;
        justify-self: start;
    }

    .wu-guest-footer>.wu-guest-shell {
        flex-direction: column;
        text-align: center;
    }

    .wu-guest-dialog .modal-footer {
        gap: 4px;
    }

    .wu-guest-dialog .modal-footer .wu-button {
        width: 100%;
    }

    .wu-guest-dialog .modal-footer .wu-button--primary {
        order: -1;
    }

    /* .wu-guest-dialog .wu-guest-feedback img{
        width: 200px;
    } */

    .wu-album3 .wu-guest-hero {
        height: fit-content;
    }

    .wu-album3 .wu-guest-hero .wu-guest-shell {
        grid-template-columns: 1fr;
    }

    .wu-album3 .wu-guest-hero__photo {
        min-height: unset;
        height: 320px;
        overflow: hidden;
        border-radius: 0 0 0 128px;
    }

    .wu-album3 .wu-guest-header {
        background: var(--wu-neutral-0);
        border-bottom: none;
    }

    .wu-album3 .wu-guest-shell .wu-guest-hero__photo img {
        width: 100%;
    }

    .wu-guest-hero h1 {
        text-wrap: nowrap;
    }

    .wu-album3 .wu-guest-hero h1 em {
        display: inline;
    }

    .wu-album3 .wu-guest-hero__copy {
        margin-top: 24px;
        padding: 18px;
    }

    .wu-album3 .wu-guest-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .wu-album3 .wu-guest-action {
        border-radius: 24px;
        min-height: unset;
    }

    .wu-album3 .wu-guest-action .text-title {
        font-size: 11px;
        margin-top: 0;
    }

    .wu-album3 .wu-guest-action .text-title br {
        display: none;
    }

    .wu-album3 .wu-guest-hero .wu-guest-upload-stage__extras {
        margin: 12px auto;
        flex-direction: column;
    }

    .wu-album3 .wu-guest-hero .wu-guest-upload-stage__extras button {
        border: 1px solid var(--wu-neutral-400);
        padding: 8px 12px;
        width: 100%;
    }

    .wu-album3 .wu-guest-help {
        background-color: rgba(0, 0, 0, .05);
    }

    .wu-album3 .wu-guest-help p {
        font-size: 12px;
    }

    .wu-album3 .wu-guest-help button {
        width: 150px;
        padding: 6px 12px;
        min-height: unset;
        height: 32px;
    }

    .wu-album3 .wu-guest-gallery-head .row-1,
    .wu-album3 .wu-guest-gallery-head .row-2 {
        flex-direction: column;
    }

    .wu-album3 .wu-guest-gallery-head .wu-field,
    .wu-album3 .wu-guest-gallery-head .wu-button {
        width: 100%;
    }

    .wu-album3 .wu-field .form-label.wu-guest-sort {
        display: none;
    }

    .wu-guest-gallery-head,
    .wu-guest-gallery-controls {
        margin-bottom: 12px;
    }
}

@media (max-width: 577px) {
    .wu-album2 .wu-guest-hero {
        padding: 50px 0 0;
        height: 500px;
    }

    .wu-guest-shell {
        width: min(100% - 16px);
    }

    .wu-guest-brand strong {
        font-size: 16px;
    }

    .wu-guest-action .wu-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .wu-guest-actions {
        gap: 12px;
        margin: 0 0 12px;
    }

    .wu-guest-action {
        min-height: 50px;
        font-size: 11px;
        border-radius: 12px;
    }

    .wu-guest-quiet-cta {
        display: flex;
        align-items: center;
        gap: 12px;
        width: min(100%);
        margin: 0 auto;
        height: 84px;
        padding: 8px 12px;
        border-radius: 0;
    }

    #albumMain .wu-nav-links {
        gap: 10px;
    }

    #albumMain .wu-nav-link .wu-icon {
        justify-self: center;
        margin-right: 0;
    }

    #albumMain .wu-nav-links button {
        flex-direction: column;
        font-size: 12px;
        border-radius: 8px;
        padding: 8px 12px;
    }

    #albumMain .wu-nav-links a {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }

    .wu-guest-header__actions {
        gap: 8px;
    }

    .wu-album1 .wu-guest-header__actions {
        gap: 24px;
    }

    .wu-guest-media__actions {
        right: 6px;
        bottom: 6px;
    }

    .wu-guest-action .text-title {
        font-size: 14px;
    }

    .wu-guest-upload-stage {
        padding: 16px;
        margin: 12px auto;
    }

    .wu-guest-upload-stage>p {
        font-size: 12px;
    }

    .wu-guest-upload-stage__extras {
        gap: 10px;
        margin: 12px auto;
        border: none;
        width: fit-content;
        border-radius: 24px;
        padding: 10px 0;
    }

    .wu-guest-upload-stage__extras button {
        border: 1px solid var(--wu-neutral-200);
        padding: 6px 12px;
        border-radius: 24px;
        width: 100%;
    }

    .wu-guest-upload-stage .wu-button--primary-light {
        width: 100%;
        justify-content: space-between;
    }

    .wu-guest-upload-stage__browse,
    .wu-guest-upload-drop__button {
        min-height: 200px;
        padding: 20px 48px;
    }

    .wu-guest-media__actions .wu-button {
        min-height: 32px;
        padding-inline: 8px;
        font-size: 11px;
    }

    .wu-guest-gallery-controls .wu-field {
        width: 100%;
    }

    .wu-guest-sort {
        display: none;
    }

    .wu-guest-help {
        gap: 8px;
    }

    .wu-guest-help button {
        width: 100%;
    }

    .wu-segment-control {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .wu-guest .wu-segment-control>button {
        width: 100%;
    }

    .wu-guest-media__caption {
        /* max-width: calc(100% - 155px); */
        font-size: 11px;
    }

    .wu-guest-copy-field {
        flex-wrap: wrap;
    }

    .wu-guest-dialog .modal-body {
        padding: 1rem;
    }

    #itineraryDialog .wu-segment-control {
        border-radius: 12px;
    }

    #itineraryDialog .wu-guest-itinerary article {
        grid-template-columns: 1fr;
    }

    #itineraryDialog .wu-guest-itinerary article:first-child {
        order: 2;
    }

    .wu-guest-info-list article {
        grid-template-columns: 1fr;
    }

    .wu-guest-info-list .icons {
        width: 60px;
    }

    .wu-guest-steps .text-instruction,
    .wu-guest-info-list .text-instruction {
        width: 100%;
        margin: 6px 0px;
    }

    .wu-moderator-intro__head {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 20px;
    }

    .wu-moderator-intro h1 {
        text-align: center;
    }
}

/* Bootstrap upload modal: reuse Template 1 file and contribution rules above. */
.wu-guest-dialog--upload [hidden],
.wu-guest-dialog--upload-preview [hidden],
.wu-guest-dialog--upload-status [hidden] {
    display: none !important;
}

.wu-guest-dialog--upload .wu-guest-inline-file__info strong {
    min-width: 0;
}

.wu-guest-dialog--upload .wu-guest-inline-file__info small {
    flex: none;
}

.wu-guest-dialog--upload .wu-guest-inline-file__preview {
    justify-self: start;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
}

.wu-guest-dialog--upload .wu-guest-inline-file__actions .wu-button {
    min-width: 32px;
}

.wu-guest-dialog--upload-status .progress {
    height: 10px;
    background: var(--wu-gold-100);
}

.wu-guest-dialog--upload-status .progress-bar {
    background: linear-gradient(270deg, #71563D 0%, #C19A5B 100%);
    transition: width .13s linear;
}

.wu-guest-dialog--upload-status .progress-bar.bg-danger {
    background: var(--wu-danger-500) !important;
}

/* Template 1: overall upload state stays in the page above its submit button. */
.wu-album1 .wu-guest-inline-status {
    margin-top: 18px;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid var(--wu-neutral-200);
    border-radius: 12px;
    background: #fff;
    text-align: left;
}

.wu-album1 .wu-guest-inline-status__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--wu-neutral-900);
}

.wu-album1 .wu-guest-inline-status__head strong {
    font-size: 18px;
}

.wu-album1 .wu-guest-inline-status__head span {
    color: var(--wu-gold-600);
    font-weight: 700;
}

.wu-album1 .wu-guest-inline-status p {
    margin: 8px 0 14px;
    color: var(--wu-neutral-600);
    font-size: 14px;
}

.wu-album1 .wu-guest-inline-status .progress {
    height: 10px;
    background: var(--wu-gold-100);
}

.wu-album1 .wu-guest-inline-status .progress-bar {
    background: linear-gradient(270deg, #71563d, #c19a5b);
    transition: width .13s linear;
}

.wu-album1 .wu-guest-inline-status[data-state="error"] .progress-bar {
    background: var(--wu-danger-500);
}

.wu-album1 .wu-guest-inline-status .wu-alert {
    line-height: 1.5;
}




/* Google Drive player inside the existing gallery lightbox. */
/* Fit only the gallery lightbox to its active photo or Drive video. */
#lightboxDialog {
    --wu-lightbox-ratio: 1.777777778;
    --wu-lightbox-cap: 1100px;
    --wu-lightbox-min-height: 0px;
    --wu-lightbox-inset: 22px;
}

#lightboxDialog .modal-dialog {
    width: min(
        calc(100% - var(--bs-modal-margin) - var(--bs-modal-margin)),
        var(--wu-lightbox-cap),
        max(
            320px,
            calc(
                max(70dvh, var(--wu-lightbox-min-height))
                * var(--wu-lightbox-ratio)
                + 2px
            )
        )
    );
    max-width: none;
    margin-inline: auto;
}

#lightboxDialog .modal-content {
    border: 3px solid var(--wu-gold-400);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 0 24px var(--wu-form-ring);
}

#lightboxDialog [data-lightbox-image],
#lightboxDialog [data-lightbox-video] {
    width: calc(
        100% + var(--wu-lightbox-inset) + var(--wu-lightbox-inset)
    );
    max-width: none;
    margin:
        calc(0px - var(--wu-lightbox-inset))
        calc(0px - var(--wu-lightbox-inset))
        0;
}

#lightboxDialog [data-lightbox-image] {
    height: auto;
    max-height: none;
    object-fit: contain;
}

#lightboxDialog [data-lightbox-video] {
    position: relative;
    width: calc(
        100% + var(--wu-lightbox-inset) + var(--wu-lightbox-inset)
    );
    height: auto;
    min-width: 0;
    min-height: 300px;
    aspect-ratio: var(--wu-lightbox-ratio);
    background: var(--wu-neutral-900);
}

#lightboxDialog [data-lightbox-video] > iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
}

#lightboxDialog .wu-guest-lightbox small.label {
  font-size: 11px;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 577px) {
    #lightboxDialog {
        --wu-lightbox-inset: 1rem;
    }
}

/* Shared wrapper for photo/video and floating close. */
#lightboxDialog .wu-guest-lightbox__preview {
    position: relative;

    width: calc(
        100% + var(--wu-lightbox-inset) + var(--wu-lightbox-inset)
    );

    margin:
        calc(0px - var(--wu-lightbox-inset))
        calc(0px - var(--wu-lightbox-inset))
        0;
}

/* The wrapper now owns the existing edge-to-edge spacing. */
#lightboxDialog .wu-guest-lightbox__preview > [data-lightbox-image],
#lightboxDialog .wu-guest-lightbox__preview > [data-lightbox-video] {
    width: 100%;
    margin: 0;
}

#lightboxDialog .wu-guest-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background-color: var(--wu-gold-200);
    background-position: center;
    background-size: 12px;
    opacity: 1;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}

#lightboxDialog .wu-guest-lightbox__close:focus-visible {
    outline: 3px solid var(--wu-gold-500);
    outline-offset: 3px;
}