/* ==========================================================================
   Wedding Photos v3 – Frontend Styles
   ========================================================================== */

@keyframes wp-wedding-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes wp-wedding-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes wp-wedding-scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes wp-wedding-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ---- Buttons ---- */
.wp-wedding-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 28px; border-radius: 28px;
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
    font-size: 15px; font-weight: 600; cursor: pointer; border: none;
    transition: all 0.2s ease; text-decoration: none;
}
.wp-wedding-btn--primary {
    background: var(--wp-wedding-primary, #c4956a);
    color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none !important;
}
.wp-wedding-btn--primary:hover {
    background: var(--wp-wedding-primary-dark, #a67c52);
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.wp-wedding-btn--secondary {
    background: var(--wp-wedding-bg-alt, rgba(196, 149, 106, 0.1)) !important;
    color: var(--wp-wedding-primary, #c4956a) !important;
    border: 1.5px solid var(--wp-wedding-border, rgba(196, 149, 106, 0.2)) !important;
}
.wp-wedding-btn--secondary:hover {
    background: var(--wp-wedding-primary, #c4956a) !important;
    color: var(--wp-wedding-bg-alt, rgba(196, 149, 106, 0.1)) !important;
    border-color: var(--wp-wedding-primary, #c4956a) !important;
}
.wp-wedding-btn--dark {
    background: #6b6b6b !important; color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none !important;
}
.wp-wedding-btn--dark:hover {
    background: #555 !important; color: #fff !important;
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   UPLOAD
   ======================================== */
.wp-wedding-upload {
    max-width: 520px; margin: 0 auto; padding: 0 0 32px;
    animation: wp-wedding-fadeInUp 0.5s ease-out;
}
@media (max-width: 600px) {
    .wp-wedding-upload { padding: 0 6px 32px; }
}
.wp-wedding-upload__header {
    text-align: center;
    position: relative;
    padding-top: 75px;
    margin-bottom: 8px;
}
.wp-wedding-upload__header::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 100vw;
    height: 100px;
    background: var(--wp-wedding-primary, #c4956a);
    opacity: 0.4;
    z-index: 0;
}
body.wp-wedding-iframe .wp-wedding-upload__header::before {
    width: 100%;
}
.wp-wedding-upload__logo {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    z-index: 2;
}
.wp-wedding-upload__logo img {
    height: 20px !important; width: auto !important; opacity: 1; max-width: none !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.wp-wedding-upload__couple-photo {
    width: 100px; height: 100px; margin: -30px auto 20px;
    border-radius: 50% !important; overflow: hidden;
    border: 3px solid var(--wp-wedding-border, rgba(196, 149, 106, 0.25));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    opacity: 1;
    position: relative; z-index: 1;
    background: #fff;
}
.wp-wedding-upload .wp-wedding-upload__couple-photo img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block !important;
    border-radius: 50% !important; margin: 0 !important;
    padding: 0 !important; max-width: none !important;
}
.wp-wedding-upload__title {
    font-family: var(--wp-wedding-font-display, 'Playfair Display', serif);
    font-size: 28px; font-weight: 700;
    color: var(--wp-wedding-secondary, #6B5740);
    text-align: center; margin-bottom: 4px;
}
.wp-wedding-upload__message {
    font-family: var(--wp-wedding-font-display, 'Playfair Display', serif);
    font-size: 13px; font-style: italic;
    color: var(--wp-wedding-text-light, #a09585);
    text-align: center; margin-bottom: 32px;
    line-height: 1.5;
}

/* Join screen */
.wp-wedding-join__form {
    max-width: 340px; margin: 0 auto; text-align: center;
}
.wp-wedding-join__input {
    width: 100%; padding: 14px 18px;
    border: 1.5px solid var(--wp-wedding-border, rgba(196, 149, 106, 0.2));
    border-radius: var(--wp-wedding-radius, 12px);
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
    font-size: 15px; color: var(--wp-wedding-text, #4a3f35);
    background: rgba(255, 255, 255, 0.7);
    text-align: center; margin-bottom: 12px;
    transition: border-color 0.2s;
}
.wp-wedding-join__input:focus {
    outline: none; border-color: var(--wp-wedding-primary, #c4956a);
}
.wp-wedding-join__input::placeholder {
    color: var(--wp-wedding-text-light, #a09585); opacity: 0.7;
}
.wp-wedding-join__btn {
    width: 100%; padding: 14px; font-size: 16px;
    margin-bottom: 16px;
}
.wp-wedding-join__legal {
    font-size: 11px; color: var(--wp-wedding-text-light, #a09585);
    line-height: 1.6; opacity: 0.7;
}
.wp-wedding-join__legal a {
    color: inherit !important;
    text-decoration: underline !important;
}

/* Upload welcome */
.wp-wedding-upload__welcome {
    text-align: center; font-size: 15px; font-weight: 500;
    color: var(--wp-wedding-secondary, #6B5740);
    margin-bottom: 20px;
}
.wp-wedding-upload__dropzone {
    border: 2px dashed var(--wp-wedding-border, rgba(196, 149, 106, 0.2));
    border-radius: var(--wp-wedding-radius-lg, 20px);
    padding: 48px 24px; text-align: center; cursor: pointer;
    background: rgba(255, 255, 255, 0.5); transition: all 0.2s;
}
.wp-wedding-upload__dropzone:hover,
.wp-wedding-upload__dropzone.dragover {
    border-color: var(--wp-wedding-primary, #c4956a);
    background: rgba(255, 255, 255, 0.8);
}
.wp-wedding-upload__icon { font-size: 48px; display: block; margin-bottom: 12px; }
.wp-wedding-upload__drop-text {
    font-size: 16px; color: var(--wp-wedding-secondary, #6B5740); font-weight: 500; margin-bottom: 4px;
}
.wp-wedding-upload__drop-hint { font-size: 13px; color: var(--wp-wedding-text-light, #a09585); }

/* Progress */
.wp-wedding-upload__progress { margin-top: 24px; text-align: center; }
.wp-wedding-upload__progress-bar {
    height: 4px; background: var(--wp-wedding-bg-alt, #F5EDE3);
    border-radius: 4px; overflow: hidden; margin-bottom: 12px;
}
.wp-wedding-upload__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wp-wedding-primary, #c4956a), var(--wp-wedding-primary-dark, #a67c52));
    border-radius: 4px; width: 0%; transition: width 0.3s;
}
.wp-wedding-upload__progress-text {
    font-size: 14px; color: var(--wp-wedding-text-light, #a09585);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.wp-wedding-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid var(--wp-wedding-border, rgba(196, 149, 106, 0.2));
    border-top-color: var(--wp-wedding-primary, #c4956a);
    border-radius: 50%;
    animation: wp-wedding-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes wp-wedding-spin {
    to { transform: rotate(360deg); }
}

/* Success */
.wp-wedding-upload__success {
    text-align: center; padding: 32px; animation: wp-wedding-scaleIn 0.3s ease-out;
}
.wp-wedding-upload__success-icon {
    display: inline-flex; width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #7BB98F, #5A9E6F);
    color: #fff; font-size: 24px; align-items: center; justify-content: center; margin-bottom: 16px;
}
.wp-wedding-upload__success-text { font-size: 16px; color: var(--wp-wedding-text, #4a3f35); margin-bottom: 20px; }

/* Error */
.wp-wedding-upload__error {
    margin-top: 16px; padding: 12px 16px;
    background: rgba(180, 60, 60, 0.06); border: 1px solid rgba(180, 60, 60, 0.15);
    border-radius: var(--wp-wedding-radius, 12px);
}
.wp-wedding-upload__error-text { color: #b43c3c; font-size: 14px; }

/* ========================================
   GALLERY
   ======================================== */
.wp-wedding-gallery { padding: 32px 0; }
@media (max-width: 600px) {
    .wp-wedding-gallery { padding: 32px 6px; }
}
.wp-wedding-gallery__title {
    font-family: var(--wp-wedding-font-display, 'Playfair Display', serif);
    font-size: 28px; font-weight: 700;
    color: var(--wp-wedding-secondary, #6B5740);
    text-align: center; margin-bottom: 2px;
}
.wp-wedding-gallery__count {
    text-align: center; font-size: 14px;
    color: var(--wp-wedding-text-light, #a09585); margin-bottom: 16px;
}
.wp-wedding-gallery__filter {
    text-align: center; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.wp-wedding-gallery__filter-reset {
    width: 32px; height: 32px; border-radius: 50%;
    background: transparent; border: 1.5px solid var(--wp-wedding-border, rgba(196, 149, 106, 0.2));
    color: var(--wp-wedding-text-light, #a09585);
    font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.wp-wedding-gallery__filter-reset:hover {
    background: var(--wp-wedding-bg-alt, rgba(196, 149, 106, 0.1));
    color: var(--wp-wedding-text, #4a3f35);
}
.wp-wedding-gallery__filter select {
    padding: 8px 40px 8px 14px;
    border: 1.5px solid var(--wp-wedding-border, rgba(196, 149, 106, 0.2));
    border-radius: var(--wp-wedding-radius, 12px);
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
    font-size: 14px; color: var(--wp-wedding-text, #4a3f35);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer; appearance: auto;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.wp-wedding-gallery__filter select:focus {
    border-color: var(--wp-wedding-primary, #c4956a);
}
.wp-wedding-gallery__grid {
    position: relative; width: 100%;
}
.wp-wedding-gallery__item {
    position: absolute;
    border-radius: var(--wp-wedding-radius, 12px); overflow: hidden;
    cursor: pointer; animation: wp-wedding-fadeInUp 0.4s ease-out both;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, opacity 0.3s;
}
.wp-wedding-gallery__item img {
    width: 100%; height: auto; display: block; transition: transform 0.3s;
}
.wp-wedding-gallery__item:hover img { transform: scale(1.05); }
.wp-wedding-gallery__item-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    color: #fff; font-size: 12px; font-weight: 500;
    opacity: 0; transition: opacity 0.2s;
}
.wp-wedding-gallery__item:hover .wp-wedding-gallery__item-overlay { opacity: 1; }
.wp-wedding-gallery__loading,
.wp-wedding-gallery__empty {
    text-align: center; padding: 48px;
    color: var(--wp-wedding-text-light, #a09585);
}
.wp-wedding-gallery__loading {
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.wp-wedding-gallery__empty-icon { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.4; }
.wp-wedding-gallery__load-more { display: block; margin: 24px auto 0; }

/* ========================================
   LIGHTBOX
   ======================================== */
.wp-wedding-lightbox {
    position: fixed; inset: 0; z-index: 999999;
    background: rgba(26, 21, 16, 0.9); backdrop-filter: blur(8px);
    display: flex; flex-direction: column;
    animation: wp-wedding-fadeIn 0.2s ease-out;
    touch-action: none;
}
.wp-wedding-lightbox__content {
    text-align: center; width: 100vw;
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; position: relative;
    justify-content: center;
}
.wp-wedding-lightbox__track {
    display: flex; align-items: center;
    width: 300vw; margin-left: -100vw;
    transition: transform 0.3s ease;
    will-change: transform;
    flex: 1; max-height: calc(100vh - 80px);
}
.wp-wedding-lightbox__slide {
    width: 100vw; max-height: calc(100vh - 80px); object-fit: contain;
    padding: 0 20px; box-sizing: border-box;
    flex-shrink: 0;
    border-radius: 8px;
    user-select: none; -webkit-user-drag: none;
    cursor: grab; pointer-events: auto;
    transform-origin: center center;
}
.wp-wedding-lightbox__slide:active { cursor: grabbing; }
.wp-wedding-lightbox__track.no-transition {
    transition: none;
}
.wp-wedding-lightbox__info {
    display: flex; justify-content: center; gap: 16px;
    padding: 10px 20px 14px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
    font-size: 13px;
    flex-shrink: 0;
}
.wp-wedding-lightbox__topbar {
    position: fixed; top: 0; right: 0; z-index: 10;
    display: flex; gap: 6px; padding: 16px 16px;
}
.wp-wedding-lightbox__icon-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: transparent; border: none !important;
    color: rgba(255, 255, 255, 0.6); font-size: 22px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; outline: none !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.wp-wedding-lightbox__icon-btn svg {
    width: 28px; height: 28px;
}
.wp-wedding-lightbox__icon-btn:hover {
    background: rgba(255, 255, 255, 0.1); color: #fff;
}
.wp-wedding-lightbox__icon-btn:focus,
.wp-wedding-lightbox__icon-btn:active,
.wp-wedding-lightbox__icon-btn:visited {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    outline: none !important; box-shadow: none !important;
}
.wp-wedding-lightbox__icon-btn--delete:hover {
    background: rgba(180, 60, 60, 0.25); color: #fff;
}
.wp-wedding-lightbox__icon-btn--delete:focus,
.wp-wedding-lightbox__icon-btn--delete:active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}
.wp-wedding-lightbox__prev,
.wp-wedding-lightbox__next {
    position: fixed;
    background: transparent; border: none !important;
    color: rgba(255, 255, 255, 0.5); cursor: pointer; font-size: 32px; border-radius: 50%;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; z-index: 10;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.wp-wedding-lightbox__prev svg,
.wp-wedding-lightbox__next svg {
    width: 40px; height: 40px;
}
.wp-wedding-lightbox__prev:hover,
.wp-wedding-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9);
}
.wp-wedding-lightbox__prev:focus,
.wp-wedding-lightbox__prev:active,
.wp-wedding-lightbox__next:focus,
.wp-wedding-lightbox__next:active {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
    outline: none !important; box-shadow: none !important;
}
.wp-wedding-lightbox__prev { top: 50%; left: 20px; transform: translateY(-50%); }
.wp-wedding-lightbox__next { top: 50%; right: 20px; transform: translateY(-50%); }
@media (max-width: 600px) {
    .wp-wedding-lightbox__prev,
    .wp-wedding-lightbox__next { display: none; }
    .wp-wedding-lightbox__topbar { padding: 12px 12px; gap: 10px; }
    .wp-wedding-lightbox__topbar .wp-wedding-lightbox__icon-btn {
        width: 48px; height: 48px;
    }
    .wp-wedding-lightbox__topbar .wp-wedding-lightbox__icon-btn svg {
        width: 28px; height: 28px;
    }
}
.wp-wedding-lightbox__zoom-controls {
    position: fixed; left: 16px; top: 0;
    display: flex; flex-direction: row; gap: 6px; z-index: 10;
    padding: 16px 0;
}
.wp-wedding-lightbox__zoom-controls .wp-wedding-lightbox__icon-btn {
    width: 44px; height: 44px;
    background: transparent;
}
.wp-wedding-lightbox__zoom-controls .wp-wedding-lightbox__icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.wp-wedding-lightbox__zoom-controls .wp-wedding-lightbox__icon-btn:focus,
.wp-wedding-lightbox__zoom-controls .wp-wedding-lightbox__icon-btn:active {
    background: transparent !important;
}
@media (max-width: 600px) {
    .wp-wedding-lightbox__zoom-controls { left: 10px; }
    .wp-wedding-lightbox__zoom-controls .wp-wedding-lightbox__icon-btn {
        width: 44px; height: 44px;
    }
    .wp-wedding-lightbox__prev { left: 10px; }
    .wp-wedding-lightbox__next { right: 10px; }
}

/* ========================================
   VIDEO GALLERY
   ======================================== */
.wp-wedding-gallery__tabs {
    display: flex; gap: 0; margin-bottom: 16px;
    border-bottom: 1.5px solid rgba(0,0,0,0.06);
}
.wp-wedding-gallery__tab {
    flex: 1; padding: 10px 16px; border: none !important; background: none; cursor: pointer;
    font-size: 13px; font-weight: 600; color: #999; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border-bottom: 2px solid transparent !important; margin-bottom: -1.5px;
    border-radius: 0; outline: none; -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}
.wp-wedding-gallery__tab:hover { color: #666; background: none; }
.wp-wedding-gallery__tab:active, .wp-wedding-gallery__tab:focus { background: none; outline: none; color: #999; }
.wp-wedding-gallery__tab--active,
.wp-wedding-gallery__tab--active:hover,
.wp-wedding-gallery__tab--active:active,
.wp-wedding-gallery__tab--active:focus {
    color: #333; border-bottom-color: var(--wp-wedding-primary, #c4956a) !important; background: none;
}
.wp-wedding-gallery__tab span { font-weight: 400; color: #aaa; }
.wp-wedding-gallery__tab--active span { color: #999; }
.wp-wedding-video-gallery { padding-bottom: 200px; }
.wp-wedding-video-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.wp-wedding-video-gallery__item {
    position: relative; cursor: pointer; border-radius: 8px; overflow: hidden;
    background: #111; aspect-ratio: 16/9;
}
.wp-wedding-video-gallery__item img {
    width: 100%; height: 100%; object-fit: contain; object-position: center center; display: block;
}
.wp-wedding-video-gallery__play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.wp-wedding-video-gallery__item:hover .wp-wedding-video-gallery__play { background: rgba(0,0,0,0.8); }
.wp-wedding-video-gallery__play svg { width: 22px; height: 22px; color: #fff; margin-left: 2px; }
.wp-wedding-video-gallery__no-thumb {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: #222;
}
.wp-wedding-video-gallery__info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    font-size: 11px; color: rgba(255,255,255,0.8);
}
.wp-wedding-video-lightbox {
    position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,0.95);
    display: flex; align-items: center; justify-content: center;
}
.wp-wedding-video-lightbox__topbar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    display: flex; justify-content: flex-end; align-items: center; gap: 8px;
    padding: 16px;
}
.wp-wedding-video-lightbox__btn {
    background: transparent; border: none !important; border-radius: 50%;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: rgba(255, 255, 255, 0.6); transition: all 0.2s;
    outline: none !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.wp-wedding-video-lightbox__btn svg {
    width: 28px; height: 28px;
}
.wp-wedding-video-lightbox__btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.wp-wedding-video-lightbox__btn--download { text-decoration: none; }
.wp-wedding-video-lightbox__btn--delete:hover { background: rgba(180, 60, 60, 0.25); color: #fff; }
.wp-wedding-video-lightbox__close {
    background: transparent; border: none !important; border-radius: 50%;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: rgba(255, 255, 255, 0.6); transition: all 0.2s;
    outline: none !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.wp-wedding-video-lightbox__close svg {
    width: 32px; height: 32px;
}
.wp-wedding-video-lightbox__close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.wp-wedding-video-lightbox video {
    max-width: 90vw; max-height: 85vh; border-radius: 8px;
}
@media (max-width: 767px) {
    .wp-wedding-video-gallery__grid { grid-template-columns: repeat(1, 1fr); }
    .wp-wedding-video-gallery__play { width: 40px; height: 40px; }
    .wp-wedding-video-gallery__play svg { width: 18px; height: 18px; }
}

/* ========================================
   SLIDESHOW
   ======================================== */
.wp-wedding-slideshow {
    background: #1a1510; border-radius: var(--wp-wedding-radius-lg, 20px);
    overflow: hidden; position: relative;
}
.wp-wedding-slideshow__screen {
    aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
    background: #111; position: relative; overflow: hidden;
}
.wp-wedding-slideshow__loading {
    position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    z-index: 1; pointer-events: none;
}
.wp-wedding-slideshow__loading .wp-wedding-slideshow__spinner {
    display: inline-block;
    width: 40px; height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2) !important;
    border-top-color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50%;
    animation: wp-wedding-spin 0.8s linear infinite;
    box-sizing: border-box;
}
.wp-wedding-slideshow__img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    position: relative; z-index: 2;
}
.wp-wedding-slideshow__qr {
    position: absolute; bottom: 60px; right: 16px; z-index: 5;
    border-radius: 8px; overflow: hidden;
    width: clamp(70px, 12cqw, 160px);
    height: clamp(70px, 12cqw, 160px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: bottom 0.3s ease;
}
.wp-wedding-slideshow__qr:empty {
    display: none;
}
/* Im Fullscreen volle Größe */
.wp-wedding-slideshow--fullscreen .wp-wedding-slideshow__qr {
    width: 160px;
    height: 160px;
}
.wp-wedding-slideshow__qr canvas { width: 100% !important; height: 100% !important; display: block; }
.wp-wedding-slideshow__challenge {
    position: absolute; top: 16px; left: 16px; z-index: 11;
    padding: 8px 16px; border-radius: 20px;
    background: var(--wp-wedding-primary, #C4956A); color: #fff;
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
    font-size: 12px; font-weight: 500;
    max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.wp-wedding-slideshow__info {
    position: absolute; bottom: 0; left: 16px; z-index: 11;
    display: flex; align-items: center; gap: 6px;
    color: #fff;
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif); font-size: 13px;
    padding: 10px 20px; border-radius: 24px;
    background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.12);
    margin: 12px 0;
}
.wp-wedding-slideshow__info svg { flex-shrink: 0; opacity: 0.7; }
.wp-wedding-slideshow__info-sep { width: 12px; }
.wp-wedding-slideshow__counter { white-space: nowrap; }
.wp-wedding-slideshow__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-wedding-slideshow__controls {
    display: flex; justify-content: center; align-items: center; padding: 12px 16px; position: relative;
}
.wp-wedding-slideshow__controls-center { display: flex; align-items: center; gap: 8px; }
.wp-wedding-slideshow .wp-wedding-slideshow__btn {
    padding: 10px 20px; border-radius: 24px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
    font-size: 14px; cursor: pointer; transition: background 0.2s;
    display: inline-flex; align-items: center; gap: 6px; user-select: none;
}
.wp-wedding-slideshow .wp-wedding-slideshow__btn:hover { background: rgba(255, 255, 255, 0.15); }
.wp-wedding-slideshow .wp-wedding-slideshow__btn svg { display: block; }

.wp-wedding-slideshow__empty {
    text-align: center; padding: 60px; color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 600px) {
    .wp-wedding-slideshow__controls { padding: 8px 10px; }
    .wp-wedding-slideshow__controls-center { gap: 4px; }
    .wp-wedding-slideshow .wp-wedding-slideshow__btn { padding: 7px 12px; font-size: 12px; gap: 4px; border-radius: 20px; }
    .wp-wedding-slideshow .wp-wedding-slideshow__btn svg { width: 16px; height: 16px; }
    .wp-wedding-slideshow .wp-wedding-slideshow__btn span { display: none; }
    .wp-wedding-slideshow__controls { justify-content: center; }
    .wp-wedding-slideshow__info { display: none; }
}
@media (max-width: 1024px) {
    .wp-wedding-slideshow .wp-wedding-slideshow__btn span { display: none; }
}

/* Container Queries: Auch bei schmalem Container (z.B. Spalten-Layouts) reduzierte Nav */
.wp-wedding-slideshow {
    container-type: inline-size;
}
@container (max-width: 1024px) {
    .wp-wedding-slideshow .wp-wedding-slideshow__btn span { display: none; }
}
@container (max-width: 600px) {
    .wp-wedding-slideshow__controls { padding: 8px 10px; justify-content: center; }
    .wp-wedding-slideshow__controls-center { gap: 4px; }
    .wp-wedding-slideshow .wp-wedding-slideshow__btn { padding: 7px 12px; font-size: 12px; gap: 4px; border-radius: 20px; }
    .wp-wedding-slideshow .wp-wedding-slideshow__btn svg { width: 16px; height: 16px; }
    .wp-wedding-slideshow__info { display: none; }
}
/* Im Fullscreen Container Query deaktivieren: immer volle Nav anzeigen */
.wp-wedding-slideshow--fullscreen {
    container-type: normal;
}

/* Fullscreen */
.wp-wedding-slideshow--fullscreen {
    position: fixed; inset: 0; z-index: 999999; border-radius: 0; cursor: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* iOS: Dynamic Viewport Height - ignoriert Browser-UI */
}
.wp-wedding-slideshow--fullscreen.show-controls { cursor: default; }
.wp-wedding-slideshow--fullscreen .wp-wedding-slideshow__screen {
    aspect-ratio: auto;
    height: 100vh;
    height: 100dvh;
}
.wp-wedding-slideshow--fullscreen .wp-wedding-slideshow__info {
    bottom: 0; margin: 0; padding: 10px 20px;
    /* Align with controls bar: position inside the bar area */
    bottom: 12px;
}
.wp-wedding-slideshow--fullscreen .wp-wedding-slideshow__qr {
    bottom: 20px; transition: bottom 0.3s ease;
}
.wp-wedding-slideshow--fullscreen .wp-wedding-slideshow__controls {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 16px;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}
.wp-wedding-slideshow--fullscreen .wp-wedding-slideshow__controls button {
    pointer-events: auto !important;
}
.wp-wedding-slideshow--fullscreen.slideshow-playing .wp-wedding-slideshow__controls {
    opacity: 0;
    pointer-events: none;
}
.wp-wedding-slideshow--fullscreen.slideshow-playing.show-controls .wp-wedding-slideshow__controls {
    opacity: 1;
    pointer-events: auto;
}
.wp-wedding-slideshow--fullscreen.slideshow-playing .wp-wedding-slideshow__qr {
    bottom: 20px;
}
.wp-wedding-slideshow--fullscreen.slideshow-playing.show-controls .wp-wedding-slideshow__qr {
    bottom: 68px;
}
.wp-wedding-slideshow--fullscreen:not(.slideshow-playing) .wp-wedding-slideshow__qr {
    bottom: 68px;
}

/* Sticky Bottom Nav */
.wp-wedding-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    display: flex; background: #fff;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.wp-wedding-nav__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 0; cursor: pointer; color: #bbb; font-size: 11px; font-weight: 500;
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
    transition: color 0.15s; user-select: none; -webkit-tap-highlight-color: transparent;
}
.wp-wedding-nav__item--active { color: #333; }
.wp-wedding-nav__item:hover { color: #666; }
.wp-wedding-nav__item--active:hover { color: #333; }
.wp-wedding-nav__icon-wrap { position: relative; display: inline-flex; }
.wp-wedding-nav__badge {
    position: absolute; top: -5px; right: -10px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px; font-size: 10px; font-weight: 700;
    background: var(--wp-wedding-primary, #C4956A); color: #fff;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* Photo Challenges */
.wp-wedding-challenges { padding: 24px 16px 80px; }
.wp-wedding-challenges__header { margin-bottom: 16px; text-align: center; }
.wp-wedding-challenges__title {
    font-family: var(--wp-wedding-font-display, 'Playfair Display', serif);
    font-size: 22px; font-weight: 700; color: var(--wp-wedding-text, #2c2420); margin: 0;
}
.wp-wedding-challenges__subtitle {
    font-size: 13px; color: var(--wp-wedding-text-light, #a09585); margin: 4px 0 0;
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
}
.wp-wedding-challenges__list { display: flex; flex-direction: column; gap: 8px; }
.wp-wedding-challenges__card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px;
    border: 1.5px solid rgba(0,0,0,0.06); background: #fff;
    transition: all 0.15s;
}
.wp-wedding-challenges__card--done {
    border-color: rgba(90, 158, 111, 0.15); background: rgba(90, 158, 111, 0.03);
}
.wp-wedding-challenges__card-body { flex: 1; min-width: 0; }
.wp-wedding-challenges__task {
    font-size: 14px; font-weight: 500; color: #333; margin: 0;
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
}
.wp-wedding-challenges__done-by {
    font-size: 12px; color: #5A9E6F; margin: 3px 0 0; font-weight: 500;
}
.wp-wedding-challenges__photo {
    width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; cursor: pointer;
}
.wp-wedding-challenges__photo img {
    width: 100%; height: 100%; object-fit: cover;
}
.wp-wedding-challenges__upload-btn {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(0,0,0,0.04); border: 1.5px solid rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; color: #999; transition: all 0.15s;
}
.wp-wedding-challenges__upload-btn:hover { background: rgba(0,0,0,0.08); color: #666; }
.wp-wedding-challenges__upload-btn:active { background: rgba(0,0,0,0.12); }
.wp-wedding-challenges__menu {
    position: fixed; z-index: 99998; bottom: 0; left: 0; right: 0;
    background: #fff; border-radius: 16px 16px 0 0; padding: 8px 0 env(safe-area-inset-bottom, 8px);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    transform: translateY(100%); transition: transform 0.25s ease;
}
.wp-wedding-challenges__menu.open { transform: translateY(0); }
.wp-wedding-challenges__menu-item {
    display: flex; align-items: center; gap: 12px; padding: 16px 24px;
    font-size: 15px; color: #333; cursor: pointer; font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
    transition: background 0.1s;
}
.wp-wedding-challenges__menu-item:active { background: rgba(0,0,0,0.04); }
.wp-wedding-challenges__menu-item svg { color: #888; }
.wp-wedding-challenges__menu-cancel {
    display: block; text-align: center; padding: 14px; margin-top: 4px;
    font-size: 15px; font-weight: 600; color: #999; cursor: pointer;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
}
.wp-wedding-challenges__menu-overlay {
    position: fixed; inset: 0; z-index: 99997; background: rgba(0,0,0,0.3);
    opacity: 0; transition: opacity 0.25s;
}
.wp-wedding-challenges__menu-overlay.open { opacity: 1; }
.wp-wedding-challenges__uploading {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
}
.wp-wedding-challenges__uploading-inner {
    background: #fff; border-radius: 16px; padding: 32px 40px; text-align: center;
    font-size: 14px; color: #555; display: flex; align-items: center; gap: 12px;
    font-family: var(--wp-wedding-font-body, 'Nunito Sans', sans-serif);
}
