/* ==========================================================================
   1. FONTS & DESIGN VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

@font-face {
    font-family: 'DSEG7ClassicMini';
    src: url('DSEG7ClassicMini-Regular.woff2') format('woff2'),
        url('DSEG7ClassicMini-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

:root {
    --bg-main: #F7F3EF;
    /* Off-white main background */
    --bg-card: #F2E8DF;
    /* Warm beige background for sections/cards */
    --bg-header: #E8D9C9;
    /* Warm tan for headers, buttons, and accents */
    --highlight: #EDE0DC;
    /* Pale blush accent */
    --accent-light: #8F7A67;
    /* Medium brown accent for hovers & badges */
    --accent-dark: #6B635C;
    /* Dark brownish-grey for borders & muted text */
    --text-main: #3E3A37;
    /* Primary dark charcoal text */
    --text-muted: #6B635C;
    /* Muted secondary text */
    --card-white: #FFFFFF;
    /* Pure white for polaroid frames */

    --font-primary: 'Cormorant Garamond', Georgia, serif;
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-card);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    -webkit-text-size-adjust: none;
}

h1,
h2,
h3 {
    font-family: var(--font-primary);
    font-weight: 600;
}

/* Page Body Variant Wrappers */
.seating-page-body {
    overflow: hidden;
}

.photobooth-body {
    background-color: var(--bg-main);
    min-height: 100vh;
    width: 100%;
}

.wall-body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--text-main);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.12'/%3E%3C/svg%3E");
}

/* ==========================================================================
   3. MOBILE CONTAINER & HEADER
   ========================================================================== */
.mobile-container {
    width: 100%;
    margin: 0 auto;
    background-color: var(--bg-card);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(62, 58, 55, 0.08);
    position: relative;
}

.wedding-header {
    background-color: var(--bg-header);
    text-align: center;
    padding: 40px 20px 20px;
}

.minimal-header {
    padding: 20px 20px 10px;
}

.monogram-img,
.wedding-logo {
    max-width: 100px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

.wedding-header h1 {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: var(--text-main);
    text-transform: uppercase;
}

.wedding-header .date {
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.divider {
    color: var(--accent-dark);
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background-color: var(--accent-dark);
}

.divider::before {
    left: -60px;
}

.divider::after {
    right: -60px;
}

/* ==========================================================================
   4. TIMETABLE & CONTENT SECTIONS
   ========================================================================== */
.timetable-section {
    padding: 30px 20px;
    /* 90px bottom padding clears fixed nav bar */
    background-color: var(--bg-card);
}

.timetable-section h2 {
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    color: var(--text-main);
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card {
    display: flex;
    align-items: center;
    border: 1px solid var(--accent-dark);
    border-radius: 4px;
    padding: 15px;
    background-color: var(--bg-main);
}

.event-icon {
    font-size: 1.5rem;
    color: var(--text-main);
    width: 40px;
    text-align: center;
    margin-right: 15px;
}

.event-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
    width: 50px;
    padding-right: 15px;
    border-right: 1px solid var(--highlight);
}

.event-details {
    padding-left: 15px;
    flex-grow: 1;
}

.event-details h3 {
    font-size: 1.2rem;
    margin-bottom: 3px;
    letter-spacing: 1px;
    color: var(--text-main);
}

.event-details p {
    font-size: 1rem;
    color: var(--accent-dark);
}

.event-card.ongoing {
    border: 2px solid var(--accent-light);
    background-color: var(--bg-card);
    box-shadow: 0 4px 10px rgba(143, 122, 103, 0.15);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.event-card.ongoing .event-time,
.event-card.ongoing .event-icon {
    color: var(--accent-light);
}

.badge {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--bg-main);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.end-message {
    text-align: center;
    padding: 20px;
    color: var(--text-main);
    font-style: italic;
}

/* ==========================================================================
   5. NAVIGATION BUTTONS & FIXED BOTTOM BAR
   ========================================================================== */
.bottom-nav {
    padding: 20px;
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
}

/* Fixed Bottom Navigation Bar for Sub-Pages ("BACK TO HOME") */
.minimal-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 8500;
    padding: 12px 20px 20px 20px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--accent-dark);
    box-shadow: 0 -4px 15px rgba(62, 58, 55, 0.15);
}

.nav-button {
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: var(--bg-header);
    color: var(--text-main);
    border: 1px solid var(--accent-dark);
    padding: 14px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
}

.nav-button:hover,
.nav-button:active {
    background-color: var(--accent-light);
    color: var(--bg-main);
}

/* ==========================================================================
   6. SEATING CHART STYLES
   ========================================================================== */
.seating-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.chart-viewport {
    flex-grow: 1;
    overflow: hidden;
    background-color: var(--bg-card);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--bg-header);
    border-bottom: 1px solid var(--bg-header);
    touch-action: none;
    padding-bottom: 80px;
}

.floor-plan {
    width: 200px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 30px 40px;
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: scale(0.7);
    margin: 20px 0;
}

.floor-plan.zoomed {
    transform: scale(2.2);
}

#table-1 {
    grid-column: 1 / span 2;
    grid-row: 1;
    justify-self: center;
}

#table-2 {
    grid-column: 1;
    grid-row: 2;
}

#table-3 {
    grid-column: 2;
    grid-row: 2;
}

#table-4 {
    grid-column: 1;
    grid-row: 3;
}

#table-5 {
    grid-column: 2;
    grid-row: 3;
}

#table-6 {
    grid-column: 1;
    grid-row: 4;
}

#table-7 {
    grid-column: 2;
    grid-row: 4;
}

#table-8 {
    grid-column: 1;
    grid-row: 5;
}

#table-9 {
    grid-column: 2;
    grid-row: 5;
}

.table-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-self: center;
    width: 50px;
    height: 50px;
}

.round-table {
    width: 100%;
    height: 100%;
    background-color: var(--bg-header);
    border: 2px solid var(--accent-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.table-number {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
}

.seat {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--highlight);
    border: 1px solid var(--accent-dark);
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.5s ease;
    cursor: pointer;
}

.seat-1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.seat-2 {
    top: 15%;
    right: 15%;
    transform: translate(50%, -50%);
}

.seat-3 {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
}

.seat-4 {
    bottom: 15%;
    right: 15%;
    transform: translate(50%, 50%);
}

.seat-5 {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.seat-6 {
    bottom: 15%;
    left: 15%;
    transform: translate(-50%, 50%);
}

.seat-7 {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.seat-8 {
    top: 15%;
    left: 15%;
    transform: translate(-50%, -50%);
}

@keyframes pulseSeat {
    0% {
        box-shadow: 0 0 0 0 rgba(143, 122, 103, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(143, 122, 103, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(143, 122, 103, 0);
    }
}

.highlighted-seat {
    background-color: var(--accent-light) !important;
    border-color: var(--text-main);
    animation: pulseSeat 1.5s infinite;
    z-index: 10;
}

.zoom-controls {
    position: absolute;
    right: 20px;
    bottom: 95px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 50;
}

.zoom-btn {
    width: 42px;
    height: 42px;
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 2px solid var(--accent-dark);
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.floating-btn {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-main);
    color: var(--bg-main);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-tooltip {
    display: none;
    position: fixed;
    background-color: var(--text-main);
    color: var(--bg-main);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1rem;
    pointer-events: none;
    z-index: 200;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* ==========================================================================
   7. PHOTOBOOTH GALLERY & FLOATING CONTROLS
   ========================================================================== */
.gallery-section {
    background-color: var(--bg-card);
    padding: 25px 20px 180px 20px;
    /* Extended bottom padding so photos never hide under FABs/Nav */
    flex-grow: 1;
}

.gallery-section h2 {
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    color: var(--text-main);
}

#photoGallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.photo-card {
    background: var(--card-white);
    padding: 8px 8px 12px 8px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(62, 58, 55, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    border: 1px solid rgba(107, 99, 92, 0.2);
}

.photo-card img {
    width: 100%;
    border-radius: 2px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--bg-main);
}

.photo-card p {
    font-family: var(--font-primary);
    margin: 8px 0 2px 0;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-card:nth-child(8n+1) {
    transform: rotate(-2deg);
}

.photo-card:nth-child(8n+2) {
    transform: rotate(1.5deg);
}

.photo-card:nth-child(8n+3) {
    transform: rotate(-1deg);
}

.photo-card:nth-child(8n+4) {
    transform: rotate(2deg);
}

.photo-card:nth-child(8n+5) {
    transform: rotate(-2.5deg);
}

.photo-card:nth-child(8n+6) {
    transform: rotate(1deg);
}

.photo-card:nth-child(8n+7) {
    transform: rotate(-1.5deg);
}

.photo-card:nth-child(8n) {
    transform: rotate(2.5deg);
}

.photo-card:active,
.photo-card:hover {
    transform: scale(1.03) rotate(0deg);
    box-shadow: 0 8px 20px rgba(62, 58, 55, 0.2);
    z-index: 10;
}

/* Photobooth FABs elevated above fixed bottom navigation bar */
.fab-btn {
    position: fixed;
    background: #E8D9C9EB;
    color: var(--text-main);
    font-size: 1rem;
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 900;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 1px;
    font-family: var(--font-primary);
    text-transform: uppercase;
}

#galleryFab {
    left: 50%;
    transform: translateX(-50%);
    bottom: 100px;
    /* Lifted cleanly above fixed nav bar */
}

#cameraFab {
    left: 50%;
    transform: translateX(-50%);
    bottom: 155px;
    /* Positioned cleanly above gallery FAB */
    width: 70px;
    height: 70px;
    padding: 0;
    border-radius: 50%;
}

.fab-icon {
    width: 22px;
    height: 22px;
}

#cameraFab .fab-icon {
    width: 35px;
    height: 35px;
    transform: translateY(-2px);
}

.fab-btn:hover,
.fab-btn:active {
    background: var(--accent-light);
    color: var(--bg-main);
}

.status-toast {
    position: fixed;
    bottom: 240px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-light);
    color: var(--bg-main);
    font-size: 1rem;
    border-radius: 30px;
    padding: 10px 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 950;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease, bottom 0.4s ease;
}

.status-toast.hide {
    opacity: 0;
    bottom: 195px;
}

/* ==========================================================================
   8. MODALS & OVERLAYS
   ========================================================================== */
.modal-overlay,
.preview-modal,
#infobox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 58, 55, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box,
.preview-content,
#infobox {
    background-color: var(--bg-main);
    padding: 30px 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    border: 2px solid var(--accent-dark);
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.modal-box h2,
#infobox h2 {
    color: var(--text-main);
    margin-bottom: 10px;
}

.modal-box p,
#infobox p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent-dark);
}

.autocomplete-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.modal-box input,
#tagInput {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--accent-dark);
    border-radius: 4px;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    background-color: var(--bg-card);
    color: var(--text-main);
    margin-bottom:10px;
}

.custom-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--accent-dark);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 150px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
    text-align: left;
}

.custom-dropdown li {
    padding: 12px;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    border-bottom: 1px solid var(--bg-header);
}

.custom-dropdown li:hover,
.custom-dropdown li:active {
    background-color: var(--bg-header);
}

.action-btn,
#uploadBtn,
#infobox button {
    width: 100%;
    cursor: pointer;
    background-color: var(--accent-light);
    color: var(--bg-main);
    border: 1px solid var(--text-main);
    padding: 12px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease;
}

.action-btn:hover,
#uploadBtn:hover,
#infobox button:hover {
    background-color: var(--text-main);
}

.error-text {
    color: #d9534f;
    font-size: 1rem !important;
    margin-top: 10px;
    margin-bottom: 0 !important;
}

.close-preview {
    position: absolute;
    top: 8px;
    right: 15px;
    color: var(--accent-dark);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

#imagePreview {
    max-width: 100%;
    border-radius: 4px;
    margin: 15px auto 10px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-how-to {
    background-color: var(--bg-card);
    border: 1px solid var(--accent-dark);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: left;
}

.how-to-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-main);
}

.how-to-row:last-child {
    margin-bottom: 0;
}

.how-to-icon {
    background: var(--accent-light);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.how-to-icon svg {
    width: 18px;
    height: 18px;
}

.info-disclaimer {
    font-size: 0.9rem;
    color: var(--accent-dark);
    margin-bottom: 15px;
    font-style: italic;
}

/* ==========================================================================
   9. LIGHTBOX
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 58, 55, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
}

.lightbox-polaroid {
    background: var(--card-white);
    padding: 15px 15px 25px 15px;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90vw;
    max-width: 480px;
    box-sizing: border-box;
    border: 1px solid var(--bg-header);
}

.lightbox-photo-area {
    position: relative;
    display: grid;
    grid-template-areas: "stack";
    line-height: 0;
    background-color: var(--bg-main);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.lightbox-content,
.lightbox-placeholder {
    grid-area: stack;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-placeholder {
    filter: blur(5px);
    z-index: 1;
}

.lightbox-content {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 2;
}

.lightbox-content.loaded {
    opacity: 1;
}

#lightbox-caption {
    font-family: var(--font-primary);
    margin-top: 15px;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
    line-height: 1.3;
}

#lightbox-timestamp {
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-family: 'DSEG7ClassicMini', monospace;
    font-weight: 400;
    font-size: 20px;
    color: #ffaa00;
    text-shadow: 1px 1px 3px rgba(62, 58, 55, 0.8);
    letter-spacing: 2px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.95;
}

.lightbox-controls {
    position: fixed;
    bottom: 25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 1010;
    padding: 0 20px;
}

.nav-lightbox {
    font-family: var(--font-primary);
    background: var(--bg-header);
    color: var(--text-main);
    border: 1px solid var(--accent-dark);
    font-size: 1rem;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background-color 0.2s ease;
    flex: 1;
    max-width: 140px;
}

.nav-lightbox:hover,
.nav-lightbox:active {
    background-color: var(--accent-light);
    color: var(--bg-main);
}

.lightbox-counter {
    font-family: var(--font-primary);
    color: var(--bg-main);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background: rgba(62, 58, 55, 0.6);
    border: 1px solid var(--accent-dark);
    border-radius: 4px;
    letter-spacing: 1px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--bg-main);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 1010;
}

/* ==========================================================================
   10. WALL PROJECTION VIEW STYLES (wall.php)
   ========================================================================== */
#wall-viewport {
    position: relative;
    width: 100%;
    height: 100%;
}

#joinBanner {
    position: absolute;
    top: 4vh;
    right: 4vh;
    background: var(--bg-header);
    border: 2px solid var(--accent-dark);
    border-radius: 5vh;
    padding: 1.5vh 3.5vh 1.5vh 2.5vh;
    box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    color: var(--text-main);
    user-select: none;
}

.banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.banner-icon svg {
    width: 5.5vh;
    height: 5.5vh;
}

.banner-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-row-top {
    font-size: 2vh;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2vh;
    margin-bottom: 0.2vh;
    color: var(--accent-dark);
}

.banner-row-bottom {
    font-size: 3.2vh;
    font-weight: 700;
    letter-spacing: 0.1vh;
    color: var(--text-main);
}

.polaroid-wall {
    position: absolute;
    top: 50%;
    background: var(--card-white);
    padding: 2.5vh;
    padding-bottom: 3.5vh;
    border-radius: 1vh;
    box-sizing: border-box;
    box-shadow: -1.5vh 2.5vh 4vh rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.polaroid-wall img {
    height: 65vh;
    object-fit: cover;
    border-radius: 0.5vh;
    box-shadow: inset 0 0.2vh 1vh rgba(0, 0, 0, 0.15);
    pointer-events: none;
    background-color: var(--bg-card);
}

.polaroid-wall p {
    margin: 2.5vh 0 0 0;
    font-size: 3.5vh;
    line-height: 1.2;
    color: var(--text-main);
    font-weight: 600;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-primary);
}

#loadingMsg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-card);
    font-size: 4vh;
    letter-spacing: 0.5vh;
    text-transform: uppercase;
}

/* ==========================================================================
   11. ANIMATIONS & RESPONSIVE
   ========================================================================== */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    #photoGallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .lightbox-polaroid {
        width: 92vw;
        padding: 10px 10px 20px 10px;
    }

    #lightbox-timestamp {
        font-size: 16px;
    }
}