/* Photon Stdios - Global Styles & Design System */

:root {
    --bg-color: #F5F1EA; /* Warm Luxury Paper */
    --text-color: #1E1A16; /* Warm Charcoal */
    --dark-bg: #1E1A16; /* Dark Brown Theme Background */
    --text-muted: #6E6760; /* Soft Warm Brown */
    --accent-color: #8c725a; /* Warm Bronze */
    --accent-light: #b09982;
    --border-color: rgba(30, 26, 22, 0.09); /* Warm Neutral Divider */
    --card-bg: rgba(255, 255, 255, 0.6);
    --white: #ffffff;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); /* Exact 250ms easing */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
    --font-logo: 'Outfit', sans-serif;
    --header-height: 145px;
}

html.dark-mode {
    --bg-color: #13110F; /* Warm Charcoal Dark Paper */
    --text-color: #F2EFEA; /* Soft Off-white */
    --dark-bg: #F2EFEA;
    --text-muted: #A59E97; /* Warm Muted Grey */
    --border-color: rgba(242, 239, 234, 0.09); /* Warm Dark Divider */
    --card-bg: rgba(28, 25, 23, 0.6);
    --white: #1C1917;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    /* Apply smooth 250ms transitions for theme swaps */
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium print-inspired paper-grain texture overlay */
html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0.025; /* Subtle 2.5% opacity noise */
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Page Loader */
body.loading #page-content {
    opacity: 0.3;
}

.loader-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ----------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.title-large {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.title-medium {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent-color);
}

.subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ----------------------------------------------------
   LAYOUT - HEADER & NAVIGATION
---------------------------------------------------- */

#site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(247, 244, 238, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

#site-header.scrolled {
    height: var(--header-height);
    background-color: rgba(247, 244, 238, 0.98);
}

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

#site-header.scrolled .header-container {
    padding: 10px 20px;
    gap: 8px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo-img {
    height: clamp(44px, 5.5vw, 65px);
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

#site-header.scrolled .site-logo-img {
    height: clamp(32px, 4vw, 44px);
}

/* Navigation Menu - Always Visible & Centered Under Logo */
#desktop-nav {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#desktop-nav::-webkit-scrollbar {
    display: none;
}

#desktop-nav .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3.5vw, 56px);
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

#desktop-nav .nav-links a {
    font-family: 'Cormorant Garamond', 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: clamp(0.92rem, 1.6vw, 1.15rem);
    font-weight: 600;
    letter-spacing: clamp(0.14em, 0.25vw, 0.28em);
    color: #1E1C19;
    position: relative;
    padding: 4px 0;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--transition-fast);
}

#desktop-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent-color, #C5A059);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

#desktop-nav .nav-links a:hover::after,
#desktop-nav .nav-links a.active::after {
    width: 100%;
}

#desktop-nav .nav-links a:hover,
#desktop-nav .nav-links a.active {
    color: var(--accent-color, #C5A059);
}

/* Theme Toggle Button & Dark Mode Overrides */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border-radius: 50%;
    margin-left: 20px;
    outline: none;
}

.theme-toggle-btn:hover {
    color: var(--accent-color);
    background-color: rgba(140, 114, 90, 0.08);
}

/* Header in dark mode */
body.dark-mode #site-header {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .theme-toggle-btn {
    color: #f5f5f5;
}

body.dark-mode .theme-toggle-btn:hover {
    color: var(--accent-light);
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .site-logo-img {
    filter: invert(1);
}

/* Mobile Nav Overlay in dark mode */
body.dark-mode #mobile-nav-overlay {
    background-color: rgba(10, 10, 10, 0.98);
}
body.dark-mode #mobile-nav .mobile-nav-links a {
    color: #f5f5f5;
}
body.dark-mode .hamburger-bar {
    background-color: #f5f5f5;
}

/* Mobile Navigation Hamburger */
#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 1px;
    background-color: var(--text-color);
    transition: var(--transition-fast);
}

#mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
#mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#mobile-nav-overlay.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

#mobile-nav .mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#mobile-nav .mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-color);
}

#mobile-nav .mobile-nav-links a:hover,
#mobile-nav .mobile-nav-links a.active {
    color: var(--accent-color);
}

/* Hide helper */
.hidden {
    display: none !important;
    height: clamp(34px, 5vw, 50px);
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

#site-header.scrolled .site-logo-img {
    height: clamp(30px, 4vw, 40px);
}

/* Navigation Menu - Always Visible */
#desktop-nav {
    display: flex !important;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#desktop-nav::-webkit-scrollbar {
    display: none;
}

#desktop-nav .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: clamp(8px, 1.8vw, 35px);
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

#desktop-nav .nav-links a {
    font-size: clamp(0.65rem, 1.8vw, 0.8rem);
    font-weight: 400;
    letter-spacing: clamp(0.06em, 0.4vw, 0.2em);
    color: var(--text-color);
    position: relative;
    padding: 6px 0;
    text-transform: uppercase;
    text-decoration: none;
}

#desktop-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

#desktop-nav .nav-links a:hover::after,
#desktop-nav .nav-links a.active::after {
    width: 100%;
}

#desktop-nav .nav-links a:hover,
#desktop-nav .nav-links a.active {
    color: var(--accent-color);
}

/* Theme Toggle Button & Dark Mode Overrides */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border-radius: 50%;
    margin-left: 20px;
    outline: none;
}

.theme-toggle-btn:hover {
    color: var(--accent-color);
    background-color: rgba(140, 114, 90, 0.08);
}

/* Header in dark mode */
body.dark-mode #site-header {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .theme-toggle-btn {
    color: #f5f5f5;
}

body.dark-mode .theme-toggle-btn:hover {
    color: var(--accent-light);
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .site-logo-img {
    filter: invert(1);
}

/* Mobile Nav Overlay in dark mode */
body.dark-mode #mobile-nav-overlay {
    background-color: rgba(10, 10, 10, 0.98);
}
body.dark-mode #mobile-nav .mobile-nav-links a {
    color: #f5f5f5;
}
body.dark-mode .hamburger-bar {
    background-color: #f5f5f5;
}

/* Mobile Navigation Hamburger */
#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 1px;
    background-color: var(--text-color);
    transition: var(--transition-fast);
}

#mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
#mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#mobile-nav-overlay.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

#mobile-nav .mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#mobile-nav .mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-color);
}

#mobile-nav .mobile-nav-links a:hover,
#mobile-nav .mobile-nav-links a.active {
    color: var(--accent-color);
}

/* Hide helper */
.hidden {
    display: none !important;
}

/* ----------------------------------------------------
   LAYOUT - DYNAMIC CONTENT AREA
---------------------------------------------------- */

#page-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 120px);
    transition: var(--transition-smooth);
}
/* Content Fade In animation */
.page-view {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------
   LAYOUT - FOOTER
---------------------------------------------------- */

#site-footer {
    min-height: 70px;
    height: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    background-color: var(--bg-color);
    transition: var(--transition-smooth);
}

.footer-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright h2 {
    font-family: var(--font-logo);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.footer-business-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    font-style: normal;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.footer-business-address a {
    color: inherit;
    text-decoration: none;
}

.footer-business-address a:hover {
    color: var(--accent-color);
}

.footer-internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-internal-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-internal-links a:hover {
    color: var(--accent-color);
}

.footer-social a {
    color: var(--text-muted);
    display: block;
}

.footer-social a:hover {
    color: var(--accent-color);
}

.seo-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.seo-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.seo-breadcrumbs a:hover {
    color: var(--accent-color);
}

.seo-breadcrumbs span::before {
    content: "/";
    margin-right: 10px;
    color: var(--border-dark);
}

/* ----------------------------------------------------
   PAGE - COVER LANDING
---------------------------------------------------- */

.entrance-page,
.cover-page-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
    z-index: 2000;
    background-color: #0f0f0f;
    overflow: hidden;
}

/* Controlled Cinematic Vignette Overlay */
.entrance-page::after,
.cover-page-view::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.18) 45%,
        rgba(0, 0, 0, 0.42) 100%
    );
}

/* Background Stage & Collage Slideshow Layer */
.background-stage,
.cover-slideshow-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    animation: backgroundEntranceZoom 5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform-origin: center center;
    will-change: transform;
}

.cover-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.cover-slide.active {
    opacity: 0.85;
}

/* Two-Stage Cinematic Keyframes */
@keyframes backgroundEntranceZoom {
    0% {
        transform: scale(1);
    }
    72% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1.28);
    }
}

@keyframes foregroundEntranceZoom {
    0% {
        opacity: 0;
        transform: scale(0.94);
    }
    18% {
        opacity: 1;
    }
    72% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.12);
    }
}

/* Foreground Position & Animation Wrappers */
.entrance-content-position {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: min(85vw, 440px);
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.entrance-content-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3.5vh, 32px);
    width: 100%;
    transform-origin: center center;
    animation: foregroundEntranceZoom 5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
    pointer-events: auto;
}

/* Logo Responsiveness Across All Screen Aspect Ratios */
.photon-logo,
.cover-logo-img {
    width: clamp(180px, 25vw, 360px);
    max-width: 85vw;
    height: auto;
    filter: invert(1) drop-shadow(0 4px 25px rgba(0, 0, 0, 0.6));
    user-select: none;
}

@media (max-width: 768px) {
    .photon-logo,
    .cover-logo-img {
        width: clamp(170px, 55vw, 260px);
    }
}

@media (max-width: 380px) {
    .photon-logo,
    .cover-logo-img {
        width: clamp(150px, 52vw, 210px);
    }
}

/* Landscape Mode on Mobile & Small Tablets */
@media (max-height: 500px) and (orientation: landscape) {
    .entrance-content-position {
        top: 50%;
    }
    .entrance-content-animation {
        gap: 12px;
    }
    .photon-logo,
    .cover-logo-img {
        width: clamp(130px, 20vw, 200px);
    }
    .enter-button,
    .cover-enter-btn {
        height: 38px;
        min-height: 38px;
        font-size: 10px;
        padding: 0 18px;
    }
}

/* ENTER Button Redesign Across Devices */
.enter-button,
.cover-enter-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: clamp(120px, 32vw, 170px);
    min-height: 42px;
    height: clamp(44px, 6vh, 56px);

    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(15, 15, 15, 0.14);
    color: #ffffff;

    font-family: var(--font-body), sans-serif;
    font-size: clamp(11px, 2.8vw, 13px);
    letter-spacing: 0.3em;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    cursor: pointer;
    transition: background-color 250ms ease, border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
}

.enter-button:hover,
.enter-button:focus-visible,
.cover-enter-btn:hover,
.cover-enter-btn:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.035);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    outline: none;
    color: #ffffff;
    letter-spacing: 0.3em;
}

.enter-button:active,
.cover-enter-btn:active {
    transform: scale(0.98);
}

/* Exit Transition on Click */
.entrance-page.is-exiting .entrance-content-animation {
    animation: foregroundExit 700ms cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.entrance-page.is-exiting .background-stage {
    animation: backgroundExit 700ms cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes foregroundExit {
    0% {
        opacity: 1;
        transform: scale(1.12);
    }
    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

@keyframes backgroundExit {
    0% {
        transform: scale(1.28);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.42);
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    .background-stage,
    .entrance-content-animation {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ----------------------------------------------------
   PAGE - WEDDINGS (HOME)
---------------------------------------------------- */

.weddings-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 100px 40px;
}

/* Main Slideshow */
.wedding-slideshow {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 450px;
    background-color: #fafafa;
    overflow: hidden;
    margin-bottom: 60px;
}

.wedding-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.wedding-slide.active {
    opacity: 1;
}

.slideshow-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 15px;
    z-index: 10;
    transition: var(--transition-fast);
}

.slideshow-control:hover {
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-control.prev { left: 20px; }
.slideshow-control.next { right: 20px; }

/* Quote / Editorial Text */
.editorial-quote {
    text-align: center;
    max-width: 800px;
    margin: 100px auto;
}

.editorial-quote h1 {
    font-size: 2.8rem;
    font-style: italic;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.editorial-quote p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Collage Horizontal Strip Slider */
.collage-slider-section {
    margin-bottom: 100px;
}

.collage-viewport {
    position: relative;
    width: 100%;
    height: 700px; /* Fixed height for laptop/desktop displays */
    overflow: hidden;
}

.collage-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.collage-panel {
    height: 100%;
    aspect-ratio: 480 / 700; /* Proper 480x700 ratio */
    flex: 0 0 auto;
    padding-right: 3px; /* Minimal 15% spacing between photos */
}

.collage-panel img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center; /* Proper centered framing */
    cursor: pointer;
}

.collage-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.7);
    border: none;
    color: #333;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    opacity: 0;
}

.collage-viewport:hover .collage-arrow {
    opacity: 1;
}

.collage-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.collage-prev { left: 10px; }
.collage-next { right: 10px; }

@media (max-width: 1024px) {
    .collage-viewport {
        height: auto;
        padding-bottom: 50%; /* 50% aspect ratio on mobile/tablet */
    }
    .collage-arrow {
        opacity: 1;
        width: 34px;
        height: 34px;
    }
    .collage-arrow svg {
        width: 20px;
        height: 20px;
    }
    .collage-prev { left: 6px; }
    .collage-next { right: 6px; }
}

/* Featured Stories Grid */
.featured-stories {
    margin-top: 100px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.featured-card {
    cursor: pointer;
}

.featured-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f7f7f7;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.featured-card:hover .featured-image-wrapper img {
    transform: scale(1.05);
}

.featured-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.featured-card:hover .featured-title {
    color: var(--accent-color);
}

/* Custom Audio Player Widget */
/* Custom Audio Player Widget (Squarespace Classic Style) */
.audio-player-container {
    width: 100%;
    max-width: 1200px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 40px auto;
    padding: 0 10px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
}

.play-pause-btn {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s ease;
}

.play-pause-btn:hover {
    opacity: 0.7;
}

.audio-player-container .placeholder {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: currentColor;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.audio-player-container .progress {
    flex-grow: 1;
    height: 4px;
    background-color: var(--border-color);
    position: relative;
    cursor: pointer;
}

.audio-player-container .progress-inner {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
    position: absolute;
    top: 0;
    left: 0;
}

.audio-player-container .scrubber {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.listing-card:hover .listing-image-wrapper img {
    transform: scale(1.04);
}

.listing-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.listing-title {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.listing-card:hover .listing-title {
    color: var(--accent-color);
}

.listing-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----------------------------------------------------
   PAGE - GALLERY / STORY DETAIL
---------------------------------------------------- */

.detail-view-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 100px 40px;
}

    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border-radius: 4px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.02);
}

.testimonial-card-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* ----------------------------------------------------
   PAGE - ABOUT
---------------------------------------------------- */

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 100px 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text-column {
    padding-right: 40px;
}

.about-text-column h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.about-text-column p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-image-column {
    position: relative;
}

.about-image-wrapper {
    box-shadow: 0 30px 70px rgba(0,0,0,0.08);
}

/* ----------------------------------------------------
   PAGE - ENQUIRE
---------------------------------------------------- */

.enquire-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 100px 40px;
}

.enquire-intro-img {
    max-width: 800px;
    margin: 0 auto 60px auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

.enquire-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.enquire-email {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.enquire-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Enquire Contact Form */
.enquire-form-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* ----------------------------------------------------
   LIGHTBOX MODAL
---------------------------------------------------- */

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(6, 6, 6, 0.98);
    z-index: 3000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    flex-grow: 1;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#lightbox-caption {
    color: rgba(255,255,255,0.7);
    margin-top: 25px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: center;
}
.listing-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.listing-title {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.listing-card:hover .listing-title {
    color: var(--accent-color);
}

.listing-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----------------------------------------------------
   PAGE - GALLERY / STORY DETAIL
---------------------------------------------------- */

.detail-view-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 100px 40px;
}

.detail-header {
    text-align: center;
    margin-bottom: 60px;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.detail-back-link:hover {
    color: var(--accent-color);
}

.detail-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.detail-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.detail-body-text {
    max-width: 800px;
    margin: 0 auto 80px auto;
    text-align: center;
}

.detail-body-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Detail Masonry Grid - 15% Gap */
.detail-masonry {
    columns: 2 400px;
    column-gap: 5px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 5px;
    cursor: pointer;
    overflow: hidden;
    background-color: #fafafa;
}

.masonry-item img {
    width: 100%;
    height: auto;
}
.audio-player-container .scrubber {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    position: absolute;
    right: -4px;
    top: -2px;
}

.audio-player-container .duration {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------
   PAGE - GALLERIES & STORIES (LISTINGS)
---------------------------------------------------- */

.listing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 100px 40px;
}

.grid-listings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 6px;
    margin-top: 60px;
}

.listing-card {
    cursor: pointer;
}

.listing-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #f7f7f7;
}

.listing-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.masonry-item:hover img {
    transform: scale(1.03);
}

/* ----------------------------------------------------
   PAGE - TESTIMONIALS
---------------------------------------------------- */

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 100px 20px;
}

.testimonials-stack {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 50px;
}

.testimonial-card-img {
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border-radius: 4px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.02);
}

.testimonial-card-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* ----------------------------------------------------
   PAGE - ABOUT
---------------------------------------------------- */

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 100px 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text-column {
    padding-right: 40px;
}

.about-text-column h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.about-text-column p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-image-column {
    position: relative;
}

.about-image-wrapper {
    box-shadow: 0 30px 70px rgba(0,0,0,0.08);
}

/* ----------------------------------------------------
   PAGE - ENQUIRE
---------------------------------------------------- */

.enquire-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 100px 40px;
}

.enquire-intro-img {
    max-width: 800px;
    margin: 0 auto 60px auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

.enquire-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.enquire-email {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.enquire-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Enquire Contact Form */
.enquire-form-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input, .form-textarea {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid #d3d3d3;
    padding: 10px 0;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.form-textarea {
    height: 120px;
    resize: none;
}

.form-label {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

/* Form floating label focus states */
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.form-input:focus ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
    top: -15px;
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-error-msg {
    color: #b03a2e;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.submit-btn {
    align-self: center;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1.5px solid var(--text-color);
    padding: 14px 45px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.submit-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    letter-spacing: 0.25em;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-success-message {
    text-align: center;
    padding: 40px;
    border: 1px dashed var(--accent-color);
    background-color: #faf8f5;
    animation: fadeIn 0.6s ease;
}

.form-success-message h3 {
    font-size: 2rem;
    color: var(--accent-color);
}

/* ----------------------------------------------------
   LIGHTBOX MODAL
---------------------------------------------------- */

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(6, 6, 6, 0.98);
    z-index: 3000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    flex-grow: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#lightbox-caption {
    color: rgba(255,255,255,0.7);
    margin-top: 25px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: center;
}
    max-width: 600px;
}

.lightbox-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 20px;
    transition: var(--transition-fast);
    z-index: 10;
}

.lightbox-btn:hover {
    color: var(--white);
    transform: scale(1.1);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-weight: 200;
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
---------------------------------------------------- */

@media (max-width: 1024px) {
    .header-container {
        padding: 0 16px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-text-column {
        padding-right: 0;
        order: 2;
    }
    
    .about-image-column {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .header-container {
        padding: 0 16px;
        gap: 16px;
    }

    .site-logo-img,
    #site-header.scrolled .site-logo-img {
        height: 26px !important;
        max-height: 26px !important;
        flex-shrink: 0;
    }

    #desktop-nav {
        flex-grow: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0;
    }

    #desktop-nav .nav-links {
        gap: clamp(14px, 3.8vw, 24px);
        padding-right: 12px;
    }

    #desktop-nav .nav-links a {
        font-size: clamp(0.70rem, 2.2vw, 0.78rem);
        letter-spacing: 0.12em;
        padding: 6px 2px;
    }

    .weddings-container, .listing-container, .detail-view-container, .enquire-container {
        padding: 30px 16px 80px 16px;
    }
    
    .grid-listings {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive aspect ratio for wedding section slideshow */
    .wedding-slideshow {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        min-height: 0;
        max-height: 70vh;
        margin-bottom: 30px;
        background-color: #fafafa;
        border-radius: 4px;
        overflow: hidden;
    }

    .wedding-slide {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center center;
    }

    .editorial-quote h1 {
        font-size: 2rem;
    }
    
    .audio-player-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }
    
    .audio-cover {
        display: none;
    }
    
    .play-pause-btn {
        align-self: center;
    }
    
    .lightbox-btn {
        padding: 10px;
    }
    
    #lightbox-prev {
        position: absolute;
        left: 10px;
    }
    
    #lightbox-next {
        position: absolute;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
        gap: 14px;
    }

    .site-logo-img,
    #site-header.scrolled .site-logo-img {
        height: 24px !important;
        max-height: 24px !important;
    }

    #desktop-nav .nav-links {
        gap: clamp(12px, 3.5vw, 18px);
    }

    #desktop-nav .nav-links a {
        font-size: 0.70rem;
        letter-spacing: 0.1em;
    }
}

/* Galleries Feed Articles CSS */
.galleries-feed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0; /* Align with 1200px reference */
}

.gallery-article {
    margin-bottom: 100px;
}

.gallery-article-header {
    margin-bottom: 40px;
    text-align: center;
}

.gallery-article-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-article-title a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.gallery-article-title a:hover {
    color: var(--accent-color);
}

.gallery-article-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.gallery-article-intro {
    max-width: 800px;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
}

.gallery-article-intro p {
    margin-bottom: 20px;
}

.gallery-divider {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 120px 0;
}

@media (max-width: 768px) {
    .galleries-feed-container {
        padding: 60px 20px;
    }
    .gallery-article-title {
        font-size: 1.6rem;
    }
    .gallery-divider {
        margin: 80px 0;
    }
}

/* Aligns the collage slideshow with the text and audio player width */
.gallery-article-body .collage-viewport {
    max-width: 1200px;
    margin: 0 auto;
}

/* Galleries Feed Article Footer & Like/Comment Section */
.gallery-article-footer {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px auto 0 auto;
    padding-top: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

.gallery-article-footer a,
.gallery-article-footer button {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.gallery-article-footer a:hover,
.gallery-article-footer button:hover {
    color: var(--accent-color);
}

.gallery-article-footer .footer-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.gallery-article-footer .footer-actions span {
    opacity: 0.3;
}

.gallery-article-footer .heart-icon {
    transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

.gallery-article-footer button.liked {
    color: #e04f5f;
}

.gallery-article-footer button.liked .heart-icon {
    fill: #e04f5f;
    stroke: #e04f5f;
    transform: scale(1.15);
}

/* Floating Newsletter Widget Container */
.newsletter-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

/* Floating Toggle Button (Icon only) */
.newsletter-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(140, 114, 90, 0.3);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s;
}

.newsletter-toggle-btn:hover {
    background-color: var(--accent-light);
    transform: scale(1.05);
}

.newsletter-toggle-btn.hidden-widget {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

/* Floating Subscription Card */
.newsletter-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 320px;
    padding: 25px;
    background-color: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

.dark-mode .newsletter-box {
    background-color: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.newsletter-box.hidden-widget {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.newsletter-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: var(--transition-fast);
}

.newsletter-close-btn:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .newsletter-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .newsletter-box {
        width: calc(100vw - 40px);
        max-width: 340px;
    }
}

.newsletter-box h3 {
    font-family: var(--font-logo);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.newsletter-box p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.newsletter-input-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 3px;
    transition: var(--transition-fast);
}

.dark-mode .newsletter-input-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.newsletter-input-group:focus-within {
    border-bottom-color: var(--accent-color);
}

.newsletter-input-group input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-logo);
    font-size: 0.9rem;
    color: var(--text-color);
    padding: 8px 0;
}

.newsletter-input-group input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.dark-mode .newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input-group button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.newsletter-input-group button:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.newsletter-msg {
    margin-top: 10px;
    font-size: 0.85rem;
    font-family: var(--font-logo);
    min-height: 18px;
    transition: var(--transition-fast);
}

.newsletter-msg.success {
    color: #2e7d32;
}

.newsletter-msg.error {
    color: #c62828;
}

/* ----------------------------------------------------
   ADMIN DASHBOARD STYLES
---------------------------------------------------- */

.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--font-logo);
}

/* Login Card styling */
.admin-login-container {
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background-color: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    text-align: center;
}

.dark-mode .admin-login-card {
    background-color: var(--dark-card);
    border-color: rgba(255, 255, 255, 0.08);
}

.admin-login-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.admin-form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.admin-input, .admin-textarea, .admin-select {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.dark-mode .admin-input, 
.dark-mode .admin-textarea, 
.dark-mode .admin-select {
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.generic-dropdown {
    position: relative;
    width: 100%;
    z-index: 1;
}

.generic-dropdown.is-open {
    z-index: 30;
}

.generic-dropdown-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.generic-dropdown-trigger {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.generic-dropdown-trigger:hover,
.generic-dropdown.is-open .generic-dropdown-trigger {
    border-color: var(--accent-color);
    background: rgba(140, 114, 90, 0.06);
}

.generic-dropdown-trigger:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.generic-dropdown-chevron {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 180ms ease;
}

.generic-dropdown.is-open .generic-dropdown-chevron {
    transform: rotate(180deg);
}

.generic-dropdown-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    max-height: 280px;
    padding: 6px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 5px;
    background: #f7f5f1;
    box-shadow: 0 18px 45px rgba(20, 17, 14, 0.18);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

.generic-dropdown.is-open .generic-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.generic-dropdown-option {
    position: relative;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 42px 10px 13px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #2e2925;
    font: inherit;
    font-size: 0.94rem;
    text-align: left;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease;
}

.generic-dropdown-option:hover,
.generic-dropdown-option:focus-visible {
    outline: none;
    background: rgba(140, 114, 90, 0.12);
    color: #6f5743;
}

.generic-dropdown-option.is-selected {
    background: rgba(140, 114, 90, 0.16);
    color: #6f5743;
    font-weight: 600;
}

.generic-dropdown-option.is-selected::after {
    content: '';
    position: absolute;
    right: 17px;
    width: 9px;
    height: 5px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg) translateY(-2px);
}

.generic-dropdown-option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dark-mode .generic-dropdown-trigger {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.025);
}

.dark-mode .generic-dropdown-trigger:hover,
.dark-mode .generic-dropdown.is-open .generic-dropdown-trigger {
    border-color: var(--accent-color);
    background: rgba(140, 114, 90, 0.1);
}

.dark-mode .generic-dropdown-menu {
    border-color: rgba(255, 255, 255, 0.14);
    background: #181613;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
}

.dark-mode .generic-dropdown-option {
    color: #e7e1da;
}

.dark-mode .generic-dropdown-option:hover,
.dark-mode .generic-dropdown-option:focus-visible {
    background: rgba(181, 148, 116, 0.13);
    color: #d0ad8c;
}

.dark-mode .generic-dropdown-option.is-selected {
    background: rgba(181, 148, 116, 0.2);
    color: #d7b392;
}

.admin-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-btn:hover {
    background-color: var(--accent-light);
}

.admin-btn.secondary {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.admin-btn.secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.admin-btn.danger {
    background-color: #c62828;
    color: white;
}

.admin-btn.danger:hover {
    background-color: #b71c1c;
}

/* Dashboard Workspace */
.admin-dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    min-height: 600px;
}

@media (max-width: 900px) {
    .admin-dashboard-container {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding-right: 20px;
}

.dark-mode .admin-sidebar {
    border-color: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-menu {
    list-style: none;
}

.admin-sidebar-menu li {
    margin-bottom: 10px;
}

.admin-sidebar-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.admin-sidebar-btn:hover, .admin-sidebar-btn.active {
    background-color: rgba(0,0,0,0.03);
    color: var(--accent-color);
    font-weight: 500;
}

.dark-mode .admin-sidebar-btn:hover, .dark-mode .admin-sidebar-btn.active {
    background-color: rgba(255,255,255,0.03);
}

.admin-content {
    animation: fadeIn 0.4s ease;
}

/* Form Dropzone */
.upload-dropzone {
    position: relative;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    background-color: rgba(0,0,0,0.01);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-muted);
}

.dark-mode .upload-dropzone {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255,255,255,0.01);
}

.upload-dropzone.dragover, .upload-dropzone:hover {
    border-color: var(--accent-color);
    background-color: rgba(140, 114, 90, 0.04);
    color: var(--accent-color);
}

.upload-dropzone svg {
    transition: transform 0.2s ease;
}

.upload-dropzone:hover svg {
    transform: translateY(-4px);
}

.upload-dropzone span {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.upload-dropzone.is-uploading {
    min-height: 430px;
    cursor: wait !important;
    pointer-events: none;
    border-style: solid;
    border-color: rgba(140, 114, 90, 0.45);
    background: rgba(140, 114, 90, 0.045);
    overflow: hidden;
}

.upload-dropzone.is-uploading > :not(.media-upload-progress) {
    opacity: 0;
    visibility: hidden;
}

.media-upload-progress {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(28px, 5vw, 58px);
    color: var(--text-color);
    text-align: left;
    cursor: wait;
    animation: mediaProgressIn 220ms ease both;
    overflow: hidden;
}

.media-upload-progress__top {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.media-upload-progress__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(140, 114, 90, 0.35);
    border-radius: 50%;
    background: rgba(140, 114, 90, 0.1);
    color: var(--accent-color);
}

.media-upload-progress__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    animation: mediaUploadPulse 1.4s ease-in-out infinite;
}

.media-upload-progress__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.media-upload-progress__eyebrow {
    color: var(--accent-color);
    font-size: 0.7rem !important;
    font-weight: 600;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
}

.media-upload-progress__title {
    overflow: hidden;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 400;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-upload-progress__percent {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1;
}

.media-upload-progress__track {
    position: relative;
    height: 7px;
    margin-top: 30px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(140, 114, 90, 0.17);
}

.media-upload-progress__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #80654e, #c5a17e);
    box-shadow: 0 0 18px rgba(181, 148, 116, 0.38);
    transition: width 180ms ease;
}

.media-upload-progress__bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    animation: mediaProgressShimmer 1.2s linear infinite;
}

.media-upload-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.media-upload-progress__queue {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 0;
    margin-top: 18px;
    padding-right: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 114, 90, 0.35) transparent;
}

.media-upload-progress__queue-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid rgba(140, 114, 90, 0.12);
    border-radius: 7px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.35);
}

.media-upload-progress__queue-item.is-active {
    border-color: rgba(140, 114, 90, 0.38);
    color: var(--text-color);
    background: rgba(140, 114, 90, 0.09);
}

.media-upload-progress__queue-item.is-done {
    color: #5f9270;
}

.media-upload-progress__queue-item.has-failed {
    color: #d05b55;
}

.media-upload-progress__queue-status {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(140, 114, 90, 0.1);
    font-size: 0.75rem !important;
    font-weight: 700;
}

.media-upload-progress__queue-name {
    overflow: hidden;
    font-size: 0.76rem !important;
    letter-spacing: 0.02em !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-upload-progress__queue-label {
    font-size: 0.65rem !important;
    font-weight: 600;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

.dark-mode .media-upload-progress__queue-item {
    background: rgba(255, 255, 255, 0.025);
}

.media-upload-progress.is-complete .media-upload-progress__icon {
    border-color: rgba(72, 150, 103, 0.5);
    background: rgba(72, 150, 103, 0.12);
    color: #5fa978;
}

.media-upload-progress.is-complete .media-upload-progress__eyebrow,
.media-upload-progress.is-complete .media-upload-progress__percent {
    color: #5fa978;
}

.media-upload-progress.is-complete .media-upload-progress__bar {
    background: linear-gradient(90deg, #397e55, #6bbb87);
}

.media-upload-progress.has-error .media-upload-progress__icon,
.media-upload-progress.has-error .media-upload-progress__eyebrow,
.media-upload-progress.has-error .media-upload-progress__percent {
    color: #d05b55;
}

.media-upload-progress.has-error .media-upload-progress__bar {
    background: #d05b55;
}

.dark-mode .upload-dropzone.is-uploading {
    background: rgba(140, 114, 90, 0.075);
}

@keyframes mediaProgressIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mediaUploadPulse {
    0%, 100% { transform: translateY(1px); opacity: 0.72; }
    50% { transform: translateY(-2px); opacity: 1; }
}

@keyframes mediaProgressShimmer {
    to { transform: translateX(100%); }
}

@media (max-width: 600px) {
    .media-upload-progress {
        padding: 24px;
    }

    .media-upload-progress__top {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .media-upload-progress__icon {
        width: 42px;
        height: 42px;
    }

    .media-upload-progress__meta {
        flex-direction: column;
        gap: 4px;
    }
}

/* Image Manager Grid */
.admin-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 4px;
    margin-bottom: 40px;
}

.admin-thumb-card {
    position: relative;
    aspect-ratio: 480 / 700;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: rgba(0,0,0,0.02);
}

.admin-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.admin-thumb-card:hover .admin-thumb-overlay {
    opacity: 1;
}

.admin-thumb-btn {
    background-color: white;
    color: #111;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.15s, background-color 0.15s;
}

.admin-thumb-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
    color: white;
}

.admin-thumb-btn.delete:hover {
    background-color: #d32f2f;
    color: white;
}

/* Export / Instructions Modal */
.instructions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.instructions-content {
    background-color: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
    animation: slideInUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dark-mode .instructions-content {
    background-color: var(--dark-card);
    border-color: rgba(255, 255, 255, 0.1);
}

.instructions-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instructions-list {
    margin: 20px 0;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.instructions-list li {
    margin-bottom: 12px;
    line-height: 1.5;
}

/* ====================================================
   CMS PREMIUM MEDIA MANAGEMENT STYLES
   ==================================================== */

.upload-dropzone.drag-over {
    border-color: var(--accent-color) !important;
    background-color: rgba(140, 114, 90, 0.08) !important;
    box-shadow: inset 0 0 10px rgba(140, 114, 90, 0.1);
}

.upload-progress-container {
    width: 100%;
    margin: 15px 0;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: none;
    position: relative;
    height: 20px;
}

.upload-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-color);
    mix-blend-mode: difference;
    left: 0;
    top: 0;
    line-height: 20px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.connected .status-indicator {
    background-color: #2e7d32;
    box-shadow: 0 0 8px #2e7d32;
}

.fallback .status-indicator {
    background-color: #ef6c00;
    box-shadow: 0 0 8px #ef6c00;
}

/* HTML5 Draggable Reorder list support */
.admin-thumbnail-card {
    cursor: grab;
    user-select: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-thumbnail-card:active {
    cursor: grabbing;
}

.admin-thumbnail-card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    border: 2px dashed var(--accent-color);
}

.admin-thumbnail-card.drag-over {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

/* Image preview indicators */
.cover-image-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    z-index: 5;
}

/* Progressive responsive image loader transition classes */
.progressive-img-container {
    position: relative;
    overflow: hidden;
    background-color: var(--border-color);
    display: block;
    width: 100%;
    height: 100%;
}

.progressive-img-blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(15px);
    transform: scale(1.05); /* hide edge bleeds */
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.progressive-img-sharp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
}

.progressive-img-sharp.loaded {
    opacity: 1;
}

.progressive-img-sharp.loaded + .progressive-img-blur {
    opacity: 0;
    pointer-events: none;
}

/* Form switch toggle component for settings */
.cms-switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.cms-switch-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.cms-switch-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.cms-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cms-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cms-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-color);
    transition: .3s;
    border-radius: 24px;
}

.cms-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.cms-switch input:checked + .cms-slider {
    background-color: var(--accent-color);
}

.cms-switch input:checked + .cms-slider:before {
    transform: translateX(20px);
}

/* ====================================================
   TOAST NOTIFICATION SYSTEM
   ==================================================== */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;
    min-width: 320px;
    max-width: 450px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    color: var(--text-color);
    padding: 16px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.toast-message.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-message.hide {
    transform: translateY(20px);
    opacity: 0;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(140, 114, 90, 0.15);
    color: var(--accent-color);
    flex-shrink: 0;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--text-color);
}

/* ====================================================
   RESPONSIVE FOUNDATION
   Keeps every route usable from small phones to tablets.
   ==================================================== */

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
    #site-header,
    #site-header.scrolled {
        height: var(--header-height);
    }

    .header-container {
        padding-inline: clamp(18px, 4vw, 32px);
    }

    .site-logo-img,
    #site-header.scrolled .site-logo-img {
        width: auto;
        height: 42px;
        max-width: min(48vw, 190px);
    }

    /* Mobile Navigation Hamburger - Completely Removed */
    #mobile-menu-toggle,
    .hamburger-bar,
    #mobile-nav-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    #mobile-menu-toggle:focus-visible,
    #mobile-nav a:focus-visible {
        outline: 2px solid var(--accent-color);
        outline-offset: 4px;
    }

    #mobile-nav-overlay {
        top: var(--header-height);
        height: calc(100dvh - var(--header-height));
        min-height: 0;
        padding: 28px clamp(24px, 7vw, 64px);
        align-items: flex-start;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgba(245, 241, 234, 0.98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    #mobile-nav {
        width: 100%;
        min-height: 100%;
        display: flex;
        align-items: center;
    }

    #mobile-nav .mobile-nav-links {
        width: 100%;
        gap: 0;
        text-align: left;
    }

    #mobile-nav .mobile-nav-links li {
        border-bottom: 1px solid var(--border-color);
    }

    #mobile-nav .mobile-nav-links a {
        display: flex;
        min-height: 58px;
        align-items: center;
        justify-content: space-between;
        font-family: var(--font-heading);
        font-size: clamp(1.45rem, 5vw, 2rem);
        letter-spacing: 0.08em;
    }

    #mobile-nav .mobile-nav-links a::after {
        content: "→";
        font-family: var(--font-body);
        font-size: 1rem;
        opacity: 0.35;
    }

    #mobile-nav .mobile-nav-links a.active::after {
        opacity: 1;
        color: var(--accent-color);
    }

    .weddings-container,
    .listing-container,
    .detail-view-container,
    .about-container,
    .enquire-container,
    .testimonials-container,
    .galleries-feed-container,
    .admin-container {
        width: 100%;
        padding-inline: clamp(22px, 5vw, 48px);
    }

    .wedding-slideshow {
        height: min(68vw, 620px);
        min-height: 360px;
    }

    .collage-viewport {
        height: clamp(360px, 68vw, 620px);
        padding-bottom: 0;
    }

    .collage-panel {
        aspect-ratio: 480 / 700;
    }

    .admin-dashboard-container {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .admin-sidebar {
        width: 100%;
        padding: 0 0 12px;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .admin-sidebar-menu {
        display: flex;
        width: max-content;
        gap: 8px;
    }

    .admin-sidebar-menu li {
        margin: 0;
    }

    .admin-sidebar-btn {
        width: auto;
        min-height: 44px;
        white-space: nowrap;
    }
}

/* Use the collage that was composed for the device orientation. */
@media (max-width: 1024px) and (orientation: portrait) {
    .cover-page-view {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: none;
        height: 100dvh;
        min-height: 100svh;
        margin: 0;
    }

    .cover-slide {
        background-image: url("../images/covers/cover2.jpg") !important;
        background-position: center;
    }

    .cover-content {
        transform: translateY(clamp(90px, 20vh, 190px));
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .cover-page-view {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: none;
        height: 100dvh;
        min-height: 100svh;
        margin: 0;
    }

    .cover-slide {
        background-image: url("../images/covers/cover1.jpg") !important;
        background-position: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    #page-content {
        min-height: calc(100dvh - var(--header-height));
    }

    .title-large {
        font-size: clamp(2rem, 10vw, 2.8rem);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .subtitle {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    /* Restore the landing screen as one full-bleed composition. */
    .cover-page-view {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        min-height: 100svh;
        padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
        justify-content: center;
        overflow: hidden;
        background: #13110f;
    }

    .cover-slideshow-container {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }

    .cover-slide {
        background-position: center center;
    }

    .cover-slideshow-container::after {
        display: none;
    }

    .cover-overlay {
        display: block;
        background:
            linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.12) 45%, rgba(0,0,0,.7)),
            radial-gradient(circle at center, transparent 20%, rgba(0,0,0,.52) 100%);
    }

    .cover-content {
        width: min(100%, 420px);
        max-width: 420px;
        margin: 0;
        padding: 0 18px;
        transform: translateY(clamp(90px, 22vh, 170px));
    }

    .cover-logo-img {
        width: clamp(170px, 52vw, 230px);
        margin-bottom: 28px;
    }

    .cover-enter-btn {
        min-width: 132px;
        min-height: 48px;
        padding: 12px 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .weddings-container,
    .listing-container,
    .detail-view-container,
    .about-container,
    .enquire-container,
    .testimonials-container,
    .galleries-feed-container,
    .admin-container {
        padding: 36px 18px 64px;
    }

    .wedding-slideshow {
        height: clamp(300px, 118vw, 540px);
        min-height: 0;
        margin-bottom: 44px;
    }

    .slideshow-control {
        width: 48px;
        height: 48px;
        padding: 9px;
    }

    .slideshow-control.prev { left: 2px; }
    .slideshow-control.next { right: 2px; }

    .editorial-quote {
        margin: 64px auto;
    }

    .editorial-quote h1 {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    .collage-slider-section {
        margin-bottom: 64px;
    }

    .collage-viewport {
        height: clamp(380px, 128vw, 620px);
    }

    .featured-stories {
        margin-top: 64px;
    }

    .grid-listings {
        margin-top: 40px;
        gap: 44px;
    }

    .listing-image-wrapper {
        aspect-ratio: 4 / 3;
        margin-bottom: 18px;
    }

    .detail-header {
        margin-bottom: 40px;
    }

    .detail-title {
        font-size: clamp(2.1rem, 11vw, 3rem);
        overflow-wrap: anywhere;
    }

    .detail-body-text {
        margin-bottom: 48px;
    }

    .detail-body-text p {
        font-size: 1rem;
        text-align: left;
    }

    .detail-masonry {
        columns: 1;
    }

    .masonry-item {
        margin-bottom: 16px;
    }

    .about-grid {
        gap: 36px;
    }

    .about-text-column h1 {
        font-size: clamp(2.4rem, 12vw, 3.25rem);
        overflow-wrap: anywhere;
    }

    .about-text-column p,
    .enquire-desc {
        font-size: 1rem;
    }

    .enquire-intro-img,
    .enquire-info {
        margin-bottom: 44px;
    }

    .enquire-email {
        font-size: clamp(1rem, 5vw, 1.4rem);
        overflow-wrap: anywhere;
    }

    .contact-form {
        gap: 32px;
    }

    .form-input,
    .form-textarea,
    .admin-input,
    .admin-textarea,
    .admin-select {
        font-size: 16px;
    }

    #site-footer {
        height: auto;
        min-height: 100px;
    }

    .footer-container {
        padding: 24px 20px;
        gap: 20px;
    }

    .footer-copyright h2 {
        max-width: 72vw;
        overflow-wrap: anywhere;
    }

    #lightbox {
        padding: 60px 12px 24px;
    }

    #lightbox-close {
        top: max(8px, env(safe-area-inset-top));
        right: 8px;
        width: 48px;
        height: 48px;
    }

    #lightbox-prev { left: 0; }
    #lightbox-next { right: 0; }

    .gallery-article {
        margin-bottom: 64px;
    }

    .gallery-divider {
        margin: 64px 0;
    }

    .gallery-article-footer {
        gap: 16px;
        flex-wrap: wrap;
    }

    .newsletter-widget {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .newsletter-box {
        width: calc(100vw - 32px);
    }

    .admin-container {
        overflow: hidden;
    }

    .admin-content {
        min-width: 0;
    }

    .admin-login-card {
        width: calc(100% - 28px);
        padding: 30px 22px;
    }

    .admin-thumbnail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .admin-grid-actions-toolbar,
    .admin-bulk-actions-bar {
        flex-wrap: wrap;
        justify-content: stretch !important;
    }

    .admin-grid-actions-toolbar .admin-btn,
    .admin-bulk-actions-bar .admin-btn {
        flex: 1 1 140px;
    }

    .upload-dropzone {
        padding: 24px 14px !important;
    }

    #toast-container {
        left: 14px;
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .toast-message {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 380px) {
    .header-container {
        padding-inline: 14px;
    }

    .site-logo-img,
    #site-header.scrolled .site-logo-img {
        max-width: 52vw;
        height: 36px;
    }

    .admin-thumbnail-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        align-items: flex-start;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .cover-content {
        transform: translateY(clamp(28px, 12vh, 64px));
    }

    .cover-logo-img {
        width: 150px;
        margin-bottom: 16px;
    }

    #mobile-nav-overlay {
        padding-block: 12px;
    }

    #mobile-nav .mobile-nav-links a {
        min-height: 42px;
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------------------------------
   LUXURY EDITORIAL ENTRANCE / SPLASH PAGE
---------------------------------------------------- */

:root {
    --background-main: #F7F2EA;
    --background-soft: #FBF8F2;
    --background-warm: #EFE5D7;
    --text-primary: #65513F;
    --text-secondary: #95775E;
    --border-light: rgba(127, 98, 71, 0.28);
    --border-soft: rgba(127, 98, 71, 0.16);
    --button-hover: #6B523E;
    --button-hover-text: #FBF8F2;
}

.entrance-page {
    position: relative;
    width: 100%;
    min-height: 100svh;
    background-color: var(--background-main);
    color: var(--text-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)) 20px;
    box-sizing: border-box;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.entrance-paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.035;
    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.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.entrance-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 11;
    background: radial-gradient(circle at center, rgba(247, 242, 234, 0) 50%, rgba(215, 201, 182, 0.25) 100%);
}

.entrance-container {
    position: relative;
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.entrance-botanical-top {
    color: var(--text-secondary);
    opacity: 0.55;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    animation: fadeInDown 1.2s ease forwards;
}

.entrance-botanical-mobile {
    display: none;
    color: var(--text-secondary);
    opacity: 0.45;
    margin: 30px auto 10px auto;
}

/* ----------------------------------------------------
   DESKTOP COLLAGE & BRAND GRID (1440px - 1920px)
---------------------------------------------------- */
.editorial-collage-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, minmax(0, 1fr));
    gap: 2px;
    align-items: center;
    height: calc(100vh - 80px);
    max-height: 960px;
    box-sizing: border-box;
}

.collage-tile {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1px;
    background-color: var(--background-soft);
    animation: fadeInTile 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInTile {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

.entrance-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(0.97) brightness(1.01) sepia(0.05);
    transition: transform 12s cubic-bezier(0.25, 1, 0.5, 1);
    animation: gentleZoom 16s ease-in-out infinite alternate;
}

@keyframes gentleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.025); }
}

.collage-tile:hover .entrance-img {
    transform: scale(1.018);
}

/* Tile Placements on Desktop */
.tile-1 { grid-column: 1 / 3; grid-row: 1 / 5; animation-delay: 0.1s; }
.tile-2 { grid-column: 3 / 6; grid-row: 1 / 4; animation-delay: 0.15s; }
.tile-3 { grid-column: 1 / 3; grid-row: 5 / 9; animation-delay: 0.2s; }
.tile-4 { grid-column: 3 / 5; grid-row: 6 / 9; animation-delay: 0.25s; }

.tile-5 { grid-column: 8 / 11; grid-row: 1 / 4; animation-delay: 0.15s; }
.tile-6 { grid-column: 11 / 13; grid-row: 1 / 5; animation-delay: 0.2s; }
.tile-7 { grid-column: 9 / 11; grid-row: 4 / 9; animation-delay: 0.25s; }
.tile-8 { grid-column: 11 / 13; grid-row: 5 / 9; animation-delay: 0.3s; }

/* Image Framing & Object Positions */
.img-bride-red { object-position: center 20%; }
.img-couple-lake { object-position: center 40%; }
.img-bride-arch { object-position: center 15%; }
.img-couple-kiss { object-position: center 30%; }
.img-bride-veil { object-position: center 25%; }
.img-couple-back { object-position: center 20%; }
.img-bride-doorway { object-position: center 30%; }
.img-hands-detail { object-position: center center; }

/* ----------------------------------------------------
   CENTRAL BRAND PANEL
---------------------------------------------------- */
.entrance-brand-panel {
    grid-column: 3 / 11;
    grid-row: 2 / 8;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-main);
    padding: 30px 40px;
    text-align: center;
    border-radius: 2px;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: 12px 0;
    color: var(--text-secondary);
    opacity: 0.7;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-light);
}

.divider-star {
    margin: 0 16px;
    flex-shrink: 0;
}

.brand-logo-wrapper {
    margin: 18px 0 16px 0;
}

.cover-logo-img {
    width: clamp(260px, 28vw, 470px);
    height: auto;
    max-height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(101, 81, 63, 0.05));
}

.brand-tagline {
    font-family: var(--font-body), 'Lato', sans-serif;
    font-size: clamp(10px, 0.9vw, 13px);
    font-weight: 400;
    letter-spacing: clamp(0.24em, 0.35vw, 0.38em);
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 12px 0;
}

.brand-action {
    margin-top: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cover-enter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 380px);
    height: 60px;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    font-family: var(--font-body), 'Lato', sans-serif;
    font-size: clamp(10px, 0.85vw, 12px);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 1px;
    box-shadow: 0 4px 15px rgba(101, 81, 63, 0.03);
}

.cover-enter-btn:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
    color: var(--button-hover-text);
    letter-spacing: 0.32em;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(107, 82, 62, 0.18);
}

.cover-enter-btn:active {
    transform: scale(0.985);
}

.entrance-page.is-exiting {
    opacity: 0;
    transform: scale(0.99);
}

/* ----------------------------------------------------
   TABLET RESPONSIVE LAYOUT (768px - 1023px)
---------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
    .editorial-collage-grid {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(8, 1fr);
        height: calc(100vh - 60px);
    }

    .entrance-brand-panel {
        grid-column: 2 / 8;
        grid-row: 2 / 8;
        padding: 25px 20px;
    }

    .tile-1 { grid-column: 1 / 3; grid-row: 1 / 5; }
    .tile-2 { grid-column: 3 / 7; grid-row: 1 / 3; }
    .tile-3 { grid-column: 1 / 3; grid-row: 5 / 9; }
    .tile-4 { grid-column: 3 / 5; grid-row: 7 / 9; }
    .tile-5 { grid-column: 7 / 9; grid-row: 1 / 5; }
    .tile-6 { grid-column: 5 / 7; grid-row: 7 / 9; }
    .tile-7 { display: none; }
    .tile-8 { grid-column: 7 / 9; grid-row: 5 / 9; }
}

/* ----------------------------------------------------
   MOBILE RESPONSIVE LAYOUT (< 768px)
---------------------------------------------------- */
@media (max-width: 767px) {
    .entrance-page {
        min-height: 100vh;
        justify-content: flex-start;
        padding: max(16px, env(safe-area-inset-top)) 16px max(30px, env(safe-area-inset-bottom)) 16px;
        overflow-y: auto;
    }

    .entrance-container {
        max-width: 480px;
    }

    .entrance-botanical-top {
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .entrance-botanical-mobile {
        display: flex;
    }

    .editorial-collage-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 12px;
        height: auto;
        max-height: none;
    }

    /* Mobile Top Section (before logo) */
    .tile-1 {
        grid-column: 1 / 2;
        grid-row: 1;
        height: 250px;
    }

    .tile-2 {
        grid-column: 2 / 3;
        grid-row: 1;
        height: 180px;
        margin-top: 35px;
    }

    /* Mobile Brand Panel */
    .entrance-brand-panel {
        grid-column: 1 / 3;
        grid-row: 2;
        padding: 30px 0 35px 0;
        margin: 15px 0;
    }

    .cover-logo-img {
        width: min(82vw, 320px);
    }

    .brand-tagline {
        font-size: 10px;
        letter-spacing: 0.24em;
    }

    .cover-enter-btn {
        width: min(88vw, 350px);
        height: 58px;
        font-size: 10.5px;
    }

    /* Mobile Lower Section (after logo & button) */
    .tile-5 {
        grid-column: 1 / 2;
        grid-row: 3;
        height: 220px;
    }

    .tile-6 {
        grid-column: 2 / 3;
        grid-row: 3;
        height: 280px;
    }

    .tile-4 {
        grid-column: 1 / 2;
        grid-row: 4;
        height: 250px;
        margin-top: -30px;
    }

    .tile-8 {
        grid-column: 2 / 3;
        grid-row: 4;
        height: 210px;
    }

    .tile-3, .tile-7 {
        display: none;
    }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    .entrance-img {
        animation: none !important;
        transition: none !important;
    }
    .collage-tile, .entrance-brand-panel, .entrance-botanical-top {
        animation: none !important;
    }
}

/* ----------------------------------------------------
   ENTRANCE VIEWPORT CORRECTIONS
   Keep the collage animated while the foreground stays fixed.
---------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

html.entrance-active,
body.entrance-active {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.entrance-active #app,
body.entrance-active #page-content {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.entrance-page.cover-page-view.page-view {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding-top: env(safe-area-inset-top);
    padding-right: 0;
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: 0;
    overflow: hidden;
    isolation: isolate;
    z-index: 2000;
    background: var(--background-main);
    color: var(--text-primary);
    opacity: 1;
    animation: none;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.entrance-page::after {
    display: none;
}

.entrance-paper-texture,
.entrance-vignette {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    pointer-events: none;
}

.entrance-paper-texture {
    z-index: 40;
}

.entrance-vignette {
    z-index: 15;
}

.entrance-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    transform-origin: center center;
    transform: none;
    animation: none;
}

.entrance-background .entrance-img,
.entrance-background .collage-tile:hover .entrance-img {
    transform: none;
    animation: none;
    transition: none;
}

.entrance-background .collage-tile {
    transform: none;
    animation: entranceTileFade 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes entranceTileFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.entrance-botanical-top {
    position: absolute;
    top: max(8px, env(safe-area-inset-top));
    left: 50%;
    z-index: 2;
    display: flex;
    width: 28px;
    height: clamp(44px, 7vh, 65px);
    margin: 0;
    color: var(--text-secondary);
    opacity: 0.55;
    transform: translateX(-50%);
    animation: none;
}

.entrance-botanical-top svg {
    width: 100%;
    height: 100%;
}

.entrance-botanical-mobile {
    display: none;
}

.editorial-collage-grid {
    position: absolute;
    top: clamp(48px, 7vh, 80px);
    right: clamp(20px, 2.8vw, 54px);
    bottom: clamp(20px, 3vh, 38px);
    left: clamp(20px, 2.8vw, 54px);
    display: grid;
    width: auto;
    height: auto;
    max-height: none;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    gap: clamp(2px, 0.2vw, 3px);
    align-items: stretch;
}

.collage-tile {
    min-width: 0;
    min-height: 0;
}

.entrance-brand-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 30;
    display: flex;
    width: min(58vw, 900px);
    height: auto;
    max-height: min(44vh, 420px);
    margin: 0;
    padding:
        clamp(26px, 3.4vh, 46px)
        clamp(36px, 4.5vw, 72px)
        clamp(22px, 2.7vh, 36px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background-color: var(--background-main);
    border-radius: 2px;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transform-origin: center;
    animation: entrancePanelFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes entrancePanelFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.brand-divider {
    display: flex;
    width: 100%;
    max-width: 480px;
    margin: clamp(5px, 1vh, 12px) 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.divider-line {
    min-width: 45px;
    max-width: 145px;
    flex: 1 1 145px;
}

.brand-logo-wrapper {
    display: flex;
    width: 100%;
    min-height: 0;
    margin: clamp(8px, 1.6vh, 18px) 0 clamp(6px, 1.3vh, 16px);
    align-items: center;
    justify-content: center;
}

.photon-logo.cover-logo-img {
    width: clamp(260px, 28vw, 470px);
    max-width: 100%;
    max-height: clamp(82px, 12vh, 110px);
    object-fit: contain;
}

.brand-tagline {
    margin: clamp(5px, 1vh, 12px) 0;
    font-size: clamp(10px, 0.9vw, 13px);
    letter-spacing: clamp(3px, 0.35vw, 5px);
    line-height: 1.4;
    white-space: nowrap;
}

.brand-action {
    display: flex;
    width: 100%;
    margin: clamp(10px, 2vh, 24px) 0 0;
    flex: 0 0 auto;
    justify-content: center;
}

.enter-button.cover-enter-btn {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 380px);
    min-width: 0;
    height: clamp(52px, 6vh, 60px);
    min-height: 52px;
    max-height: 60px;
    margin: 0;
    padding: 0 18px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-primary);
    font-size: clamp(10px, 0.85vw, 12px);
    letter-spacing: clamp(3px, 0.28em, 5px);
    pointer-events: auto;
}

.entrance-page.is-exiting {
    opacity: 0;
    transform: none;
}

@media (min-width: 1024px) {
    .entrance-background::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 5;
        width: clamp(400px, 33vw, 430px);
        height: clamp(350px, 44dvh, 380px);
        border: 1px solid rgba(149, 119, 94, 0.34);
        outline: 1px solid rgba(149, 119, 94, 0.18);
        outline-offset: 8px;
        background:
            linear-gradient(var(--text-secondary), var(--text-secondary)) left 12px top 12px / 52px 1px no-repeat,
            linear-gradient(var(--text-secondary), var(--text-secondary)) left 12px top 12px / 1px 52px no-repeat,
            linear-gradient(var(--text-secondary), var(--text-secondary)) right 12px top 12px / 52px 1px no-repeat,
            linear-gradient(var(--text-secondary), var(--text-secondary)) right 12px top 12px / 1px 52px no-repeat,
            linear-gradient(var(--text-secondary), var(--text-secondary)) left 12px bottom 12px / 52px 1px no-repeat,
            linear-gradient(var(--text-secondary), var(--text-secondary)) left 12px bottom 12px / 1px 52px no-repeat,
            linear-gradient(var(--text-secondary), var(--text-secondary)) right 12px bottom 12px / 52px 1px no-repeat,
            linear-gradient(var(--text-secondary), var(--text-secondary)) right 12px bottom 12px / 1px 52px no-repeat;
        opacity: 0.58;
        pointer-events: none;
        transform: translate(-50%, -50%);
    }

    .entrance-brand-panel {
        width: clamp(320px, 28vw, 360px);
        height: clamp(290px, 36dvh, 310px);
        max-height: calc(100dvh - 32px);
        padding:
            clamp(16px, 2.2vh, 22px)
            clamp(20px, 2.2vw, 28px)
            clamp(16px, 2vh, 20px);
    }

    .entrance-brand-panel .brand-divider {
        max-width: 280px;
        margin: 3px 0;
    }

    .entrance-brand-panel .divider-star {
        width: 12px;
        height: 12px;
        margin: 0 12px;
    }

    .entrance-brand-panel .brand-logo-wrapper {
        margin: 4px 0;
    }

    .entrance-brand-panel .photon-logo.cover-logo-img {
        width: clamp(190px, 17vw, 225px);
        max-height: 74px;
    }

    .entrance-brand-panel .brand-tagline {
        margin: 3px 0;
        font-size: clamp(8px, 0.65vw, 10px);
        letter-spacing: clamp(2px, 0.24vw, 3.5px);
    }

    .entrance-brand-panel .brand-action {
        margin-top: 8px;
    }

    .entrance-brand-panel .enter-button.cover-enter-btn {
        width: min(100%, 280px);
        height: 46px;
        min-height: 46px;
        max-height: 46px;
        font-size: 9px;
        letter-spacing: 3px;
    }

    /* Fill the space around the compact card with the existing photographs. */
    .tile-1 { grid-column: 1 / 4; grid-row: 1 / 5; }
    .tile-2 { grid-column: 4 / 7; grid-row: 1 / 4; }
    .tile-3 { grid-column: 1 / 4; grid-row: 5 / 9; }
    .tile-4 { grid-column: 4 / 7; grid-row: 4 / 9; }
    .tile-5 { grid-column: 7 / 10; grid-row: 1 / 4; }
    .tile-6 { grid-column: 10 / 13; grid-row: 1 / 5; }
    .tile-7 { grid-column: 7 / 10; grid-row: 4 / 9; }
    .tile-8 { grid-column: 10 / 13; grid-row: 5 / 9; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .editorial-collage-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-template-rows: repeat(8, minmax(0, 1fr));
        height: auto;
    }

    .entrance-brand-panel {
        width: min(58vw, 900px);
        padding:
            clamp(26px, 3.4vh, 46px)
            clamp(36px, 4.5vw, 72px)
            clamp(22px, 2.7vh, 36px);
    }
}

@media (max-width: 767px) {
    .entrance-page.cover-page-view.page-view {
        display: block;
        min-height: 0;
        padding-top: env(safe-area-inset-top);
        padding-right: 0;
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: 0;
        overflow: hidden;
    }

    .entrance-botanical-top {
        top: max(6px, env(safe-area-inset-top));
        width: 22px;
        height: clamp(42px, 6.5dvh, 56px);
    }

    .editorial-collage-grid {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        max-height: none;
    }

    .collage-tile {
        display: none;
        animation: fadeInTile 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    .collage-tile.tile-1,
    .collage-tile.tile-2,
    .collage-tile.tile-5,
    .collage-tile.tile-6 {
        position: absolute;
        display: block;
        margin: 0;
    }

    .collage-tile.tile-1 {
        top: max(52px, calc(env(safe-area-inset-top) + 42px));
        bottom: auto;
        left: 20px;
        width: 43%;
        height: clamp(115px, 17dvh, 150px);
    }

    .collage-tile.tile-2 {
        top: max(64px, calc(env(safe-area-inset-top) + 56px));
        right: 20px;
        bottom: auto;
        left: auto;
        width: 43%;
        height: clamp(100px, 14.5dvh, 125px);
    }

    .collage-tile.tile-5 {
        top: auto;
        bottom: max(22px, env(safe-area-inset-bottom));
        left: 20px;
        width: 43%;
        height: clamp(96px, 13dvh, 112px);
    }

    .collage-tile.tile-6 {
        top: auto;
        right: 20px;
        bottom: max(18px, env(safe-area-inset-bottom));
        left: auto;
        width: 43%;
        height: clamp(115px, 16dvh, 138px);
    }

    .entrance-brand-panel {
        position: absolute;
        top: 50%;
        right: 20px;
        bottom: auto;
        left: 20px;
        display: flex;
        width: auto;
        height: clamp(285px, 38dvh, 325px);
        max-height:
            calc(
                100dvh
                - env(safe-area-inset-top)
                - env(safe-area-inset-bottom)
                - 260px
            );
        margin: 0;
        padding:
            clamp(18px, 2.6dvh, 26px)
            clamp(16px, 4.5vw, 22px)
            clamp(18px, 2.5dvh, 24px);
        justify-content: space-between;
        overflow: hidden;
        transform: translateY(-50%);
        animation: entrancePanelFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
    }

    .brand-divider {
        width: 100%;
        max-width: 320px;
        margin: 0;
    }

    .divider-line {
        min-width: 45px;
        max-width: 145px;
        flex: 1 1 45px;
    }

    .divider-star {
        margin: 0 clamp(10px, 4vw, 16px);
    }

    .brand-logo-wrapper {
        margin: 0;
        flex: 1 1 auto;
    }

    .photon-logo.cover-logo-img {
        width: clamp(170px, 53vw, 210px);
        max-width: 100%;
        max-height: clamp(68px, 10dvh, 84px);
        object-fit: contain;
    }

    .brand-tagline {
        margin: 0;
        font-size: clamp(8px, 2.4vw, 11px);
        letter-spacing: clamp(3px, 1.2vw, 5px);
        line-height: 1.4;
        white-space: nowrap;
    }

    .brand-action {
        width: 100%;
        margin: 0;
    }

    .enter-button.cover-enter-btn {
        width: 100%;
        height: clamp(54px, 6.8dvh, 58px);
        min-height: 54px;
        max-height: 58px;
        margin: 0;
        padding: 0 12px;
        font-size: clamp(9px, 2.7vw, 12px);
        letter-spacing: clamp(3px, 1vw, 5px);
    }
}

@media (max-width: 767px) and (max-height: 750px) {
    .entrance-botanical-top {
        top: max(3px, env(safe-area-inset-top));
        width: 18px;
        height: 38px;
    }

    .editorial-collage-grid {
        inset: 0;
        height: 100%;
    }

    .entrance-brand-panel {
        height: min(285px, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 260px));
        max-height: none;
        padding: 12px 14px;
    }

    .photon-logo.cover-logo-img {
        width: clamp(160px, 49vw, 195px);
        max-height: clamp(62px, 9dvh, 70px);
    }

    .brand-divider svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 767px) and (max-height: 620px) and (orientation: portrait) {
    .entrance-botanical-top {
        top: max(2px, env(safe-area-inset-top));
        width: 15px;
        height: 28px;
    }

    .collage-tile.tile-1 {
        top: max(36px, calc(env(safe-area-inset-top) + 28px));
        left: 16px;
        height: 90px;
    }

    .collage-tile.tile-2 {
        top: max(44px, calc(env(safe-area-inset-top) + 36px));
        right: 16px;
        height: 78px;
    }

    .collage-tile.tile-5 {
        bottom: max(16px, env(safe-area-inset-bottom));
        left: 16px;
        height: 78px;
    }

    .collage-tile.tile-6 {
        right: 16px;
        bottom: max(14px, env(safe-area-inset-bottom));
        height: 92px;
    }

    .entrance-brand-panel {
        right: 16px;
        left: 16px;
        height: 245px;
        padding: 8px 12px;
    }

    .brand-divider {
        max-width: 250px;
    }

    .divider-line {
        min-width: 30px;
    }

    .photon-logo.cover-logo-img {
        width: clamp(145px, 48vw, 170px);
        max-height: 54px;
    }

    .brand-tagline {
        font-size: 7px;
        letter-spacing: 2px;
    }

    .enter-button.cover-enter-btn {
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        font-size: 8px;
        letter-spacing: 2.5px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .entrance-botanical-top {
        display: none;
    }

    .entrance-brand-panel {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
        width: min(60vw, 620px);
        height: auto;
        max-height: calc(100dvh - 24px);
        padding: 12px 28px;
        transform: translate(-50%, -50%);
    }

    .brand-divider {
        margin: 2px 0;
    }

    .brand-logo-wrapper {
        margin: 2px 0;
    }

    .photon-logo.cover-logo-img {
        width: clamp(150px, 24vw, 230px);
        max-height: 55px;
    }

    .brand-tagline {
        margin: 2px 0;
    }

    .brand-action {
        margin-top: 5px;
    }

    .enter-button.cover-enter-btn {
        width: min(100%, 330px);
        height: 44px;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .entrance-background,
    .entrance-brand-panel {
        animation: none !important;
    }
}

/* ----------------------------------------------------
   HOME & COVER PAGE SETTINGS ADMIN UI STYLES
---------------------------------------------------- */
.admin-cover-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 3px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.cover-tile-admin-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cover-tile-admin-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    background: #eaeaea;
}

.cover-tile-admin-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.admin-slides-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.admin-slide-item-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 10px 15px;
}

.admin-slide-item-thumb {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #eaeaea;
}

.admin-slide-item-info {
    flex-grow: 1;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-slide-item-controls {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

/* ----------------------------------------------------
   404 ERROR PAGE - BRAND ALIGNED STYLING
---------------------------------------------------- */
.error-404-container {
    min-height: calc(75vh - var(--header-height));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 24px;
}

.error-404-content {
    max-width: 650px;
    margin: 0 auto;
}

.error-404-code {
    font-family: 'Cormorant Garamond', 'Cinzel', serif;
    font-size: clamp(4.5rem, 14vw, 9rem);
    font-weight: 300;
    line-height: 1;
    color: var(--accent-color, #C5A059);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 8px;
}

.error-404-container .title-large {
    font-family: 'Cormorant Garamond', 'Cinzel', serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.22em;
    margin-bottom: 20px;
}

.error-404-divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent-color, #C5A059);
    margin: 24px auto;
}

.error-404-description {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: var(--text-muted, #666);
    line-height: 1.8;
    margin-bottom: 40px;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

.error-404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-404-actions .btn-primary,
.error-404-actions .btn-secondary {
    padding: 14px 32px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-fast);
    border-radius: 0;
}

.error-404-actions .btn-primary {
    background-color: #1E1C19;
    color: #FAF7F2;
    border: 1px solid #1E1C19;
}

.error-404-actions .btn-primary:hover {
    background-color: var(--accent-color, #C5A059);
    border-color: var(--accent-color, #C5A059);
    color: #FFFFFF;
}

.error-404-actions .btn-secondary {
    background-color: transparent;
    color: #1E1C19;
    border: 1px solid #1E1C19;
}

.error-404-actions .btn-secondary:hover {
    border-color: var(--accent-color, #C5A059);
    color: var(--accent-color, #C5A059);
}

/* ----------------------------------------------------
   STORIES EDITORIAL LISTING & COLLAGE ENGINE
---------------------------------------------------- */
.stories-editorial-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.stories-header {
    text-align: center;
    margin-bottom: 70px;
}

.editorial-stories-list {
    display: flex;
    flex-direction: column;
    gap: 85px;
}

.editorial-story-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
}

.editorial-story-banner {
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 260px;
    max-height: 480px;
    overflow: hidden;
    background-color: #E2D7CC;
}

.editorial-story-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.editorial-story-item:hover .editorial-story-banner img {
    transform: scale(1.03);
}

.editorial-story-content {
    text-align: left;
    max-width: 900px;
}

.editorial-story-title {
    font-family: 'Cormorant Garamond', 'Cinzel', serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    color: #1E1C19;
    text-transform: uppercase;
    margin-bottom: 6px;
    transition: color var(--transition-fast);
}

.editorial-story-item:hover .editorial-story-title {
    color: var(--accent-color, #C5A059);
}

.editorial-story-meta {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color, #C5A059);
    margin-bottom: 12px;
}

.editorial-story-excerpt {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: var(--text-muted, #666);
    line-height: 1.7;
    margin-bottom: 18px;
}

.editorial-story-action {
    margin-top: 8px;
}

.editorial-view-link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: #1E1C19;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.editorial-view-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1E1C19;
    transition: var(--transition-fast);
}

.editorial-story-item:hover .editorial-view-link::after {
    background-color: var(--accent-color, #C5A059);
    width: 100%;
}

/* ----------------------------------------------------
   STORY DETAIL & DYNAMIC PHOTO COLLAGE FLOW
---------------------------------------------------- */
.story-detail-editorial {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.detail-header-editorial {
    text-align: center;
    margin-bottom: 40px;
}

.detail-title-large {
    font-family: 'Cormorant Garamond', 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 15px 0 8px;
    color: #1E1C19;
}

.detail-category-meta {
    font-size: 0.76rem;
    letter-spacing: 0.22em;
    color: var(--accent-color, #C5A059);
    text-transform: uppercase;
}

.detail-intro-narrative {
    max-width: 820px;
    margin: 0 auto 60px;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.8;
    color: #444;
}

.editorial-collage-flow {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Framed container wrapper matching screenshot 2 */
.collage-framed-container {
    background-color: #D8C9BC;
    border-radius: 4px;
    padding: 24px;
}

/* Pattern 0: 3-Column Framed Grid */
.collage-block-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.collage-col-item {
    cursor: pointer;
    overflow: hidden;
}

.collage-col-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.collage-col-item:hover img {
    transform: scale(1.02);
}

/* Pattern 1: Full-Width Hero Photo */
.collage-block-hero {
    width: 100%;
    cursor: pointer;
    overflow: hidden;
}

.collage-block-hero img {
    width: 100%;
    max-height: 85vh;
    object-fit: cover;
    display: block;
}

/* Pattern 2: Asymmetric Overlapping Inset Card */
.collage-block-inset {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 36px;
}

.collage-inset-bg {
    width: 68%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.collage-inset-bg img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

.collage-inset-card {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 38%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    border: 6px solid #D8C9BC;
    overflow: hidden;
}

.collage-inset-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Pattern 3: 2-Column Side-by-Side Pair Card */
.collage-block-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Pattern 4: 2x2 Quad Grid */
.collage-block-quad {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.collage-quad-item {
    cursor: pointer;
    overflow: hidden;
}

.collage-quad-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .collage-block-3col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .collage-block-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .collage-block-inset {
        flex-direction: column;
        padding: 16px;
        min-height: auto;
    }
    .collage-inset-bg,
    .collage-inset-card {
        width: 100%;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
    }
    .editorial-story-banner {
        aspect-ratio: 16 / 9;
    }
}
