@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
/* --- ETHEREAL AURORA DESIGN SYSTEM V4.3.0 --- */
/* @author: A team of experts from Google, Meta, and Dior/Prada. */
/* @objective: Comprehensive modernization and User Experience (UX)/Quality of Life (QoL) elevation. */
/* @vibe: Professional Enterprise Liquid Glass Effects. */




/* --- KEYFRAMES & ANIMATIONS --- */
@keyframes aurora-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes spin { 
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); } 
}
@keyframes card-load-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes main-content-load-in { from { opacity: 0; transform: translateY(20px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin-border {
  to {
    --angle: 360deg;
  }
}
@keyframes sparkle-animation { 0% { transform: scale(0); opacity: 1; } 50% { opacity: 1; } 100% { transform: scale(1.5) translate(var(--tx, 0), var(--ty, 0)); opacity: 0; } }
@keyframes pulse-aurora { 0%, 100% { transform: scale(0.8); box-shadow: 0 0 0 0 var(--aurora-glow); } 50% { transform: scale(1); box-shadow: 0 0 20px 10px var(--aurora-glow); } }

/* --- THEME & CORE STYLES --- */







/* --- HEADER GRID UPDATE --- */
.header-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; gap: 1rem; }

/* Group Wrapper for Clock & Weather */
.header-info-group {
    grid-column: 3;
    justify-self: end;
    display: flex;
    flex-direction: column; /* Stack them vertically */
    align-items: flex-end;  /* Right align text */
    gap: 4px;
    pointer-events: all;
}
.header-left-group {
    grid-column: 1;
    justify-self: start;
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    align-items: flex-start; /* Aligns them to the left */
    gap: 8px;
    pointer-events: all;
}

/* UPDATE MOBILE QUERY (Optional but recommended) */
@media (max-width: 768px) {
    .header-left-group { 
        align-items: center; 
        margin-bottom: 10px;
    }
}


/* Weather Widget - Matches Clock Font */
.weather-widget {
    font-family: var(--font-serif); /* Same as Clock */
    font-weight: bold;
    font-size: 1.2rem; /* Matches #digital-clock size */
    letter-spacing: 1px;
color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: main-content-load-in 1s ease-out;
}

/* Color the icon for a nice accent */
.weather-widget i { 
    color: var(--text-muted); 
    font-size: 1rem;
}

/* Reset Old Clock Container to fit in group */
.clock-container { 
    grid-column: unset; 
    justify-self: unset; 
    align-items: flex-end; 
}

/* Mobile: Stack nicely and prevent overlapping */
@media (max-width: 768px) {
    .header-info-group { 
        align-items: center; /* Center on mobile */
        margin-top: 10px; 
    }
    .weather-widget, .clock-container #digital-clock {
        font-size: 1.0rem; /* Slightly smaller for mobile screens */
    }
}




:root { /* Dark Theme (Default) */
--card-bg-hover: rgba(50, 40, 85, 0.6);
    --bg-color: #0d0b14;
    --bg-aurora-gradient: linear-gradient(315deg, #1a142c, #3c1e5a, #2f2b6d, #1a142c);
    --spotlight-color: rgba(168, 113, 255, 0.1);
    --container-bg: #060651d4; /*#060651d4; #030533f7;*/
    --card-bg: #070d31f2;
    --text-color: #EAE6FF; --text-muted: #9a90c2; --text-filename: #8b81b3;
    --primary: #C8B6FF; --accent: #FF69B4; --border-color: #4c2a85;
    --rgb-border-gradient: linear-gradient(90deg, #ff00c1, #9600ff, #4900ff, #00b8ff, #00ffff, #00ff87, #c4ff00, #ff8a00, #ff0000, #ff00c1);
    --font-handwritten: 'Amatic SC', cursive; --font-serif: 'Cormorant Garamond', serif;
    --glass-effect: rgba(0, 0, 0, 0.2) 0px 8px 32px 0px;
/*            --glass-backdrop-filter: blur(16px) saturate(120%); */
--glass-backdrop-filter: none;
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --aurora-glow: rgba(200, 182, 255, 0.5);
}
    /* Container: Clean white glass */
html.light-theme {
 --card-bg-hover: #efeef5;

--card-bg: rgb(95 54 255 / 9%);

    --bg-color: #fcfbff;
    --bg-aurora-gradient: linear-gradient(315deg, #f5f3ff, #e0d9f5, #d8d2f0, #f5f3ff);
    --spotlight-color: rgba(118, 77, 255, 0.12);
    --container-bg: #fcfbffE6;
    --text-color: #2a2347; --text-muted: #6a6291; --text-filename: #5a5281;
    --primary: #6A44FF; --accent: #D9534F; --border-color: #a48fe8;
    --aurora-glow: rgba(106, 68, 255, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23C8B6FF' d='M12 2l2.5 7h7.5l-6 4.5 2.5 7-6-4.5-6 4.5 2.5-7-6-4.5h7.5z'/%3E%3C/svg%3E") 12 12, auto; }
a, button, .lightbox-trigger, .gallery-card, input[type='search'], .pagination-button { cursor: pointer; }

/* :: QoL: Custom Scrollbar & Selection */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; border: 2px solid var(--bg-color); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
::selection { background-color: var(--primary); color: var(--bg-color); }
::-moz-selection { background-color: var(--primary); color: var(--bg-color); }

body { 
    font-family: var(--font-serif); 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.6; 
    padding: 1rem; 
    transition: background-color 0.5s, color 0.5s; 
    background-image: var(--bg-aurora-gradient); 
    background-size: 400% 400%; 
    animation: aurora-flow 20s ease infinite; 
}

/* --- MODIFIED: Themed page transition loader --- */
#page-loader {
    position: fixed;
    /* Use transform to center the oversized element */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Make it wider and taller than the screen to guarantee full coverage */
    min-width: 120vw;
    min-height: 120vh;
    z-index: 10000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 1.5rem;
    background-color: var(--container-bg);
    backdrop-filter: var(--glass-backdrop-filter);
    -webkit-backdrop-filter: var(--glass-backdrop-filter);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.4s var(--ease-out-quint), visibility 0.4s;
}
body.is-loading #page-loader {
    opacity: 1; visibility: visible; pointer-events: all;
}
.aurora-loader-large {
    width: 80px; height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    animation: pulse-aurora 1.8s infinite ease-in-out;
}
#page-loader .loader-text {
    font-family: var(--font-handwritten);
    font-size: 2.5rem;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--primary);
}


#cursor-spotlight { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; transition: background 0.2s ease-out; background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--spotlight-color) 0%, transparent unconditional 13%); }
#cursor-spotlight.is-hidden { opacity: 0; transition: opacity 0.3s ease-in-out; }
/* REFACTOR: Hide expensive spotlight on touch devices */
@media (pointer: coarse) { #cursor-spotlight { display: none; } }

.container { 
    max-width: 1800px; 
    margin: 1rem auto; 
    padding: 2rem 3rem; 
    background-color: var(--container-bg); 
    backdrop-filter: var(--glass-backdrop-filter); 
    -webkit-backdrop-filter: var(--glass-backdrop-filter); 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    box-shadow: var(--glass-effect); 
    /* SEO FIX: Set opacity to 1 by default so content is not hidden from bots */
    opacity: 1; 
    animation: main-content-load-in 0.8s var(--ease-out-quint) forwards; 
}


/* --- HEADER & NAVIGATION --- */
header { position: relative; text-align: center; margin-bottom: 2rem; }
.header-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; gap: 1rem; margin-bottom: 0rem; }
.site-title { grid-column: 2; font-family: var(--font-handwritten); font-size: 3rem; color: var(--primary); text-shadow: 0 0 12px var(--primary), 0 0 20px var(--border-color); letter-spacing: 3px; }
.site-title a { color: inherit; text-decoration: none; }
.theme-switcher { 
    grid-column: 1; justify-self: start; pointer-events: all; width: 32px; height: 32px; 
    cursor: pointer; color: var(--primary); transition: color 0.3s ease;
}
.theme-switcher:hover { color: var(--text-color); }
.theme-switcher .icon { transition: transform 0.5s var(--ease-out-quint); }
html.dark-theme .theme-switcher .sun { display: none; } html.light-theme .theme-switcher .moon { display: none; }
.clock-container { grid-column: 3; justify-self: end; pointer-events: all; font-size: 0.9rem; text-align: left; display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.clock-container #digital-clock { font-family: var(--font-serif); font-weight: bold; font-size: 1.2rem; letter-spacing: 1px; }

nav { display: flex; justify-content: center; align-items: center; gap: 15px; margin: 1rem 0; flex-wrap: wrap; }
nav a { font-family: var(--font-handwritten); font-size: 1.5rem; color: var(--text-color); text-decoration: none; padding: 6px 12px; border-radius: 8px; transition: all 0.3s var(--ease-out-quint); border: 1px solid transparent; position: relative; }
nav a i { margin-right: 8px; transition: transform 0.3s ease; }
nav a:hover { background-color: rgba(255,255,255,0.1); border-color: var(--border-color); color: var(--primary); transform: scale(1.05); }
nav a:hover i { transform: rotate(-10deg) scale(1.2); }
nav a:active { transform: scale(1.02); transition-duration: 0.1s; }

/* --- CINEMATIC SPOTLIGHT (NEW FEATURE) --- */
.cinematic-spotlight-wrapper-link {
    display: block;
    text-decoration: none;
}
.cinematic-spotlight-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--border-color);
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fixes border-radius overflow issue on some browsers */
}
/* EDIT: Added this new rule for the vignette effect */
.cinematic-spotlight-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 80px 40px rgba(0,0,0,0.7);
    z-index: 3;
    pointer-events: none;
}
.cinematic-spotlight-media {
    position: absolute;
    top: 50%; 
    left: 50%;
    max-width: 100%; 
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-quint), filter 0.3s var(--ease-out-quint);
    /* EDIT: Replaced with the new "Éclat Noir" luxury filter */
    filter: contrast(110%) brightness(110%) saturate(110%) sepia(1%) drop-shadow(0 0 25px var(--aurora-glow));
    z-index: 1;
}
.cinematic-spotlight-container:hover .cinematic-spotlight-media {
    transform: translate(-50%, -50%) scale(1.05);
}
.cinematic-spotlight-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2.5rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
    text-align: left;
    pointer-events: none; /* Allows clicks to pass through to the video/container */
}
.cinematic-spotlight-title {
    font-family: 'Amatic SC', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
    margin: 0 0 1rem 0;
    max-width: 80%;
}
.cinematic-spotlight-cta {
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    padding: 10px 22px;
    background-color: var(--primary);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-quint);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    pointer-events: all; /* Make the button clickable again */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cinematic-spotlight-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary);
    background-color: #fff;
}

@media (max-width: 768px) {


/* 2. Disable the card blur (too many items) */
.gallery-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(28, 22, 48, 1); /* Solid dark color */
}

    .cinematic-spotlight-title { font-size: 1.75rem; } /* EDIT: Reduced by 50% from 3.5rem */
    .cinematic-spotlight-overlay { padding: 1.5rem; }
    /* EDIT: Added this new rule for the CTA button on mobile */
    .cinematic-spotlight-cta {
        font-size: 0.75rem; /* 50% of the original 1.5rem */
        padding: 6px 12px; /* Reduced padding to match the smaller text */
    }
}

/* --- LUXURY GALLERY GRID & CARDS --- */
.gallery-grid {

  justify-content: center; /* Centers the grid columns */
  justify-items: center;    /* Centers the cards within the columns */

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1600px; /* 4 × ~400px cards incl. gaps */
  margin: 0 auto;
  gap: 20px;
}


.gallery-card {
 width: 100%; 
max-height: 70vh;
max-width: 39vh; 
    background-color: var(--card-bg); border-radius: 12px; text-decoration: none; color: var(--text-color); display: flex; flex-direction: column; position: relative;
    backdrop-filter: var(--glass-backdrop-filter); -webkit-backdrop-filter: var(--glass-backdrop-filter);
transition: transform 0.4s var(--ease-out-quint), box-shadow 0.4s var(--ease-out-quint), background-color 0.3s ease;

    box-shadow: var(--glass-effect); border: 1px solid var(--border-color);
    opacity: 1; /* Default to visible */
    animation: card-load-in 0.6s var(--ease-out-quint) forwards;
    overflow: hidden;
}
.gallery-card:active { transform: scale(1.0); transition-duration: 0.1s; }
.gallery-card::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); opacity: 0.025; pointer-events: none; }
/* FCP FIX: Show first 4 cards instantly without animation delay */.gallery-card:nth-child(-n+4) { animation: none !important; opacity: 1 !important; }.gallery-card:nth-child(5) { animation-delay: 0.1s; } .gallery-card:nth-child(6) { animation-delay: 0.2s; }

.gallery-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit; padding: 2px;
    background: conic-gradient(
        from var(--angle),
        #ff00c1, #9600ff, #4900ff, #00b8ff, #00ffff, #00ff87, #c4ff00, #ff8a00, #ff0000, #ff00c1
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-quint);
    animation: spin-border 2s linear infinite;
    pointer-events: none; z-index: 2;
}
.gallery-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 40px rgba(0,0,0,0.4); z-index: 10;  background-color: var(--card-bg-hover);}
.gallery-card:hover::before { opacity: 1; }

.sparkle { position: absolute; width: 4px; height: 4px; background-color: white; border-radius: 50%; pointer-events: none; opacity: 0; animation: sparkle-animation 0.8s ease-out forwards; z-index: 10; }
.gallery-card-thumbnail { width: 100%; aspect-ratio: 9 / 16; background-color: #111; position: relative; display:flex; align-items:center; justify-content:center; overflow: hidden; }
.gallery-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease, transform 0.4s var(--ease-out-quint); }
.gallery-card:hover .gallery-card-thumbnail img { transform: scale(1.05); }
/*
.gallery-card-video-preview { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    opacity: 0; 
    z-index: 1; 
}
*/


.gallery-card-video-preview { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* This fills the height and overflows the width */
    object-position: center; /* Keeps the center of the video visible */
    opacity: 0; 
    z-index: 1; 
}

.gallery-card-thumbnail.is-playing .gallery-card-video-preview {align-items: center; opacity: 1; }
.gallery-card-thumbnail[data-video-preview].is-playing img { opacity: 0; }
.gallery-card-thumbnail.is-playing .play-icon { opacity: 0; }
.gallery-card-thumbnail .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 4rem; color: rgba(255,255,255,0.8); text-shadow: 0 0 15px black; pointer-events: none; transition: transform 0.3s var(--ease-out-quint), opacity 0.3s ease; z-index: 2;}
.gallery-card:hover .play-icon { transform: translate(-50%, -50%) scale(1.2); }
.gallery-card-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }


.gallery-card-title { overflow-wrap: anywhere;  word-break: break-word;  white-space: normal;   font-family: 'Amatic SC'; font-weight: 700; margin-bottom: 10px; font-size: 1.8rem; line-height: 1.2; color: var(--text-color); text-shadow: 0 0 8px var(--primary); }
.gallery-card-time { font-size: 0.8rem; color: var(--text-muted); }
.gallery-card-time .fa-regular { margin-right: 5px; }
.gallery-card-meta { color: var(--text-muted); font-family: var(--font-handwritten); letter-spacing: 1px; font-size: 1.2rem; }
.gallery-card-meta i { margin-right: 4px; }
.gallery-card-tags { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

/* REFACTOR: Placeholder for DOM recycling */
.gallery-card.is-placeholder { min-height: 685px; /* Adjust to match new average vertical card height */ }


/* --- SEARCH & FORMS --- */
.search-form { display: flex; max-width: 600px; margin: 0 auto 2rem auto; position: relative; }
.search-form .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.search-form input {
    flex-grow: 1; padding: 12px 18px; border: 1px solid var(--border-color); color: var(--text-color); border-radius: 8px 0 0 8px; font-size: 1.1rem; font-family: var(--font-serif);
    background-color: var(--card-bg); backdrop-filter: var(--glass-backdrop-filter); -webkit-backdrop-filter: var(--glass-backdrop-filter);
    transition: all 0.3s var(--ease-out-quint);
}
.search-form input:focus { border-color: var(--primary); background-color: rgba(0,0,0,0.2); box-shadow: 0 0 15px var(--primary); outline: none; }
.search-form button { font-family: var(--font-handwritten); font-size: 1.5rem; padding: 10px 20px; border: 1px solid var(--primary); background-color: var(--primary); color: var(--bg-color); border-radius: 0 8px 8px 0; cursor: pointer; transition: all 0.3s var(--ease-out-quint); }
.search-form button:hover { background-color: var(--primary); color: white; box-shadow: 0 0 15px var(--primary); }
.search-form button:active { transform: scale(0.98); }
.search-form input:focus + button { box-shadow: 0 0 20px var(--primary); border-color: var(--primary); }

/* --- TAGS & PILLS --- */
.tag-pill { font-family: var(--font-handwritten); font-size: 1.1rem; color: var(--text-muted); text-decoration: none; padding: 2px 8px; background-color: rgba(0,0,0,0.2); border: 1px dashed #ff00c1; border-radius: 10px; transition: all 0.2s var(--ease-out-quint); display: inline-flex; align-items: center; }
.tag-pill .fa-tag { margin-right: 5px; font-size: 0.8em; }
.tag-pill:hover { color: var(--text-color); border-color: var(--primary); background-color: var(--border-color); transform: translateY(-2px); }

/* --- PAGINATION --- */
.pagination-container { text-align: center; margin: 1rem 0; }
.pagination-dropdown { position: relative; display: inline-block; }
.pagination-button { font-family: var(--font-handwritten); font-size: 1.8rem; cursor: pointer; padding: 5px 15px; border: 1px solid var(--border-color); border-radius: 5px; background-color: var(--card-bg); user-select: none; transition: all 0.2s; }
.pagination-button:hover { border-color: var(--primary); color: var(--primary); }
.pagination-button:active { transform: scale(0.95); }
.pagination-button .fa-solid { margin-left: 8px; }
.pagination-list { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 1px solid var(--border-color); min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 30; max-height: 300px; overflow-y: auto; text-align: left; }
/* DESIGN TWEAK: Increase dropdown opacity */
html.dark-theme .pagination-list { background-color: rgba(18, 16, 28, 0.85); backdrop-filter: var(--glass-backdrop-filter); }
html.light-theme .pagination-list { background-color: rgba(255, 255, 255, 0.88); backdrop-filter: var(--glass-backdrop-filter); }
.pagination-list a { color: var(--text-color); padding: 12px 16px; text-decoration: none; display: block; font-size: 1.1rem; }
.pagination-list a.current { background-color: var(--primary); color: var(--bg-color); font-weight: bold; }
.pagination-list a:hover:not(.current) { background-color: var(--border-color); }
.pagination-dropdown:hover .pagination-list, .pagination-dropdown.active .pagination-list { display: block; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-handwritten); font-size: 1.5rem; margin-top: 2rem; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 5px; background-color: var(--card-bg); text-decoration: none; color: var(--text-color); border: 1px solid var(--border-color); transition: all 0.2s; }
.pagination span.current, .pagination a:hover { background-color: var(--primary); border-color: var(--primary); color: var(--bg-color); font-weight: bold; transform: translateY(-2px); }
.pagination a:active { transform: translateY(0px) scale(0.98); }
.pagination span.ellipsis { background: transparent; border: none; padding: 8px 0; }

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

/* --- START: Added for Video Loader --- */
.media-player-container.is-loading video {
    filter: brightness(0.6);
    transition: filter 0.3s ease;
}
.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    z-index: 5;
    animation: spin 1s linear infinite;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.media-player-container.is-loading .video-loader {
    opacity: 1;
    visibility: visible;
}
/* --- END: Added for Video Loader --- */

.media-feed { display: flex; flex-direction: column; align-items: center; gap: 4rem; }
.media-feed-item { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 95%; text-decoration: none; }
.media-player-container { position: relative; display: flex; justify-content: center; align-items: center; width:100%; }
.media-player-container .lightbox-trigger { width: 100%; display: flex; justify-content: center; align-items: center; }
.media-background-blur { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; transform: scale(1.05); filter: blur(10px) saturate(150%) brightness(0.8); opacity: 0.6; z-index: -1; border-radius: 8px; }
.media-feed-item img, .media-feed-item video { max-width: 115%; max-height: 91vh; height: auto;  object-fit: contain; margin: 0 auto; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.7); z-index: 1; }
.media-feed-item img { cursor: pointer; transition: filter 0.3s var(--ease-out-quint); filter: brightness(1.06) contrast(1.037) drop-shadow(0 0 20px rgba(0,0,0,0.5)); }
.media-feed-item img:hover { filter: brightness(1.2) contrast(1.09) drop-shadow(0 0 25px var(--primary)); }

.media-player-container.is-loading .video-watermark-overlay { 
    opacity: 0; 
    visibility: hidden; 
}

.video-watermark-overlay { transition: opacity 0.3s; position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); z-index: 10; max-width: 120px; max-height: 50px; opacity: 0.7; pointer-events: none; }
.media-info { width: 100%; max-width: 800px; padding: 10px; margin-top: 15px; font-size: 1rem; color: var(--text-filename); text-align: center; word-break: break-all; background-color: var(--card-bg); border-radius: 5px; border: 1px solid var(--border-color); }
.media-info a { color: var(--primary); text-decoration: none; transition: color 0.2s; text-shadow: 0 0 8px var(--primary); }
.media-info a:hover { color: white; }
.related-header, .footer-nav { text-align: center; margin: 2rem; }
.gallery-header { text-align: center; margin: 2rem 0 0.5rem 0; position: relative; z-index: 20; }
.gallery-section-divider { width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--border-color), transparent); margin: 3rem 0; opacity: 0.5; }


.gallery-header h1 a:hover {
    color: #fff !important; /* Changes to pure white on hover */
    text-shadow: 0 0 25px #ff00c1, 0 0 10px var(--primary); /* Intense neon glow */
    transition: all 0.4s ease;
}


.gallery-header h1, .related-header h2 { font-family: 'Amatic SC'; font-size: 2.5rem; letter-spacing: 1px; color: #ff00c1; text-shadow: 0 0 10px var(--primary); padding-bottom: 5px;}
.gallery-header-tags, .tag-cloud { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px; 
    margin-top: 0; 
    margin-bottom: 2rem;
}
.gallery-description { max-width: 850px; margin: 1.5rem auto 2.5rem auto; padding: 1.5rem 2rem; text-align: left; font-size: 1.2rem; line-height: 1.7; color: var(--text-color); background: var(--card-bg); border-left: 4px solid var(--primary); border-radius: 5px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.gallery-description p { margin: 0; }

/* --- OTHER COMPONENTS & UTILITIES --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.stat-card { background-color: var(--card-bg); padding: 1.5rem; border-radius: 8px; text-align: center; border: 1px solid var(--border-color); }
.stat-number { font-size: 3rem; color: var(--primary); font-family: var(--font-serif); font-weight: 700; }
.stat-label { font-size: 1.5rem; margin-top: 0.5rem; color: var(--text-muted); font-family: var(--font-handwritten); }
.infinite-scroll-loader { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 2rem; min-height: 64px; }
.infinite-scroll-loader.hidden { display: none; }

.loader-text { font-family: var(--font-handwritten); font-size: 1.8rem; color: var(--text-muted); }
.aurora-loader { width: 40px; height: 40px; border-radius: 50%; background-color: var(--primary); animation: pulse-aurora 2s infinite ease-in-out; }
.page-indicator {
    position: fixed; bottom: 2rem; right: 2rem; padding: 1rem 1.5rem; border-radius: 12px; font-size: 1.5rem; z-index: 10001;
    transition: opacity 0.5s var(--ease-out-quint), transform 0.5s var(--ease-out-quint); transform: translateY(0); opacity: 1;
    background: var(--container-bg); backdrop-filter: var(--glass-backdrop-filter); -webkit-backdrop-filter: var(--glass-backdrop-filter);
    border: 1px solid var(--primary); box-shadow: 0 5px 20px rgba(0,0,0,0.4); font-family: var(--font-handwritten);
    color: var(--text-color); font-size: 2rem; letter-spacing: 1px; text-shadow: 0 0 5px var(--primary);
    max-width: 80vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.page-indicator.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.action-button-container { text-align: center; margin: -1rem 0 2.5rem 0; }
#clear-history-btn {
    display: inline-block; font-family: var(--font-handwritten); font-size: 1.5rem; color: var(--text-muted); text-decoration: none; padding: 8px 20px;
    background-color: var(--card-bg); border: 1px solid var(--accent); border-radius: 20px; transition: all 0.2s; cursor: pointer;
}
#clear-history-btn:hover { background-color: var(--accent); color: white; transform: scale(1.05); box-shadow: 0 0 15px var(--accent); }
#clear-history-btn:active { transform: scale(1.02); transition-duration: 0.1s; }

/* --- LIGHTGALLERY CUSTOMIZATION --- */

/* --- START: FIX FOR VIDEO POSTER STRETCHING --- */

.lg-outer .lg-video-poster, 
.lg-outer .lg-video-poster img,
.lg-outer .lg-video-cont .lg-object {
    width: 100% !important;
    height: 91vh !important;
    max-width: 100% !important;
    max-height: 91vh !important;
    object-fit: contain !important;
    /* Reset positioning to ensure object-fit works within the 100% container */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
}

/* --- END: FIX FOR VIDEO POSTER STRETCHING --- */


/* --- LUXURY NEON LIGHTGALLERY BUTTON --- */

/* 1. The Pulse Animation (Soft & High End) */
@keyframes lg-neon-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(57, 255, 20, 0); /* Ripples out and fades */
    transform: translate(-50%, -50%) scale(1.05); /* Subtle breathe */
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 2. The Button Container */
.lg-video-play-button {
  /* Reset basics */
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1080 !important; /* Ensure it sits above poster images */
  
  /* Size & Shape */
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  
  /* Luxury Glass Styling */
  background-color: rgba(0, 0, 0, 0.4) !important; /* Semi-transparent dark glass */
  backdrop-filter: blur(4px); /* Optional: blurs background slightly behind button */
  border: 2px solid #39FF14 !important; /* Electric Neon Lime */
  
  /* Transition & Cursor */
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  
  /* Animation */
  animation: lg-neon-pulse 2s infinite !important; 
}

/* 3. Hover Effect (Stops pulsing, glows harder) */
.lg-video-play-button:hover {
  animation: none !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  box-shadow: 0 0 30px #39FF14, inset 0 0 10px #39FF14 !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
}

/* 4. The Play Triangle (Pure CSS - Removes SVG issues) */
/* We hide the original image/svg to prevent 'weird' styling issues */
.lg-video-play-button img, 
.lg-video-play-button svg, 
.lg-video-play-icon {
  display: none !important;
}

/* Draw a perfect triangle using the :after pseudo-element */
.lg-video-play-button::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 55%; /* Optical center (triangles look off-center if mathematically centered) */
  transform: translate(-50%, -50%);
  
  /* Triangle dimensions */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px; /* Adjust size of triangle here */
  
  /* Triangle Color */
  border-color: transparent transparent transparent #39FF14;
}

/* 5. Optional: Add a subtle inner glow circle */
.lg-video-play-button::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(57, 255, 20, 0.3);
  pointer-events: none;
}




.lg-react-element { --lg-bg: var(--container-bg); --lg-toolbar-bg: var(--card-bg); --lg-color: var(--text-color); }
.lg-sub-html { background-color: var(--lg-toolbar-bg) !important; text-align: center; }
.lg-sub-html h4 { font-family: var(--font-handwritten); font-size: 2rem; color: var(--primary); margin-bottom: 5px; }
.lg-sub-html p { font-family: var(--font-serif); color: var(--text-muted); margin: 0; }
.lg-toolbar .lg-icon, .lg-next, .lg-prev { color: var(--text-color) !important; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5em; }
.lg-toolbar .lg-icon:hover, .lg-next:hover, .lg-prev:hover { color: var(--primary) !important; }
.lg-toolbar .lg-icon i { font-style: normal; }

/* --- START: LUXURY BACKGROUND AMBIENT ORBS (Corrected) --- */
@keyframes bg-orb-float {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(var(--tx1), var(--ty1)); }
  40%  { transform: translate(var(--tx2), var(--ty2)); }
  60%  { transform: translate(var(--tx3), var(--ty3)); }
  80%  { transform: translate(var(--tx4), var(--ty4)); }
  100% { transform: translate(0, 0); }
}
@keyframes bg-orb-fade {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 0.8; }
}

.background-orbs-container {
  position: fixed;
  inset: 0;
  z-index: -1; /* CRITICAL: Places this behind all other content */
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  /* Corrected Style: Solid, theme-matched color with a distinct glow */
  background-color: var(--primary);
  box-shadow: 0 0 10px 1px var(--primary);
  /* Two separate animations for movement and fading */
  animation: bg-orb-float linear infinite, bg-orb-fade ease-in-out infinite;
  opacity: 0; /* Initial state for fade-in */
}

/* Give each orb a unique size, starting point, and animation path for a natural feel */
.bg-orb:nth-child(1) {
  width: 8px; height: 8px;
  top: 10%; left: 5%;
  animation-duration: 25s, 15s;
  animation-delay: -2s, -2s;
  --tx1: 90vw; --ty1: 15vh; --tx2: 50vw; --ty2: 80vh; --tx3: 20vw; --ty3: -10vh; --tx4: -5vw; --ty4: 40vh;
}
.bg-orb:nth-child(2) {
  width: 12px; height: 12px;
  top: 20%; left: 95%;
  animation-duration: 30s, 18s;
  animation-delay: -10s, -10s;
  --tx1: -80vw; --ty1: 30vh; --tx2: -40vw; --ty2: 70vh; --tx3: -10vw; --ty3: 10vh; --tx4: 5vw; --ty4: -20vh;
}
.bg-orb:nth-child(3) {
  width: 6px; height: 6px;
  top: 90%; left: 50%;
  animation-duration: 22s, 13s;
  animation-delay: -5s, -5s;
  --tx1: -30vw; --ty1: -70vh; --tx2: 20vw; --ty2: -40vh; --tx3: 40vw; --ty3: -10vh; --tx4: -10vw; --ty4: -20vh;
}
.bg-orb:nth-child(4) {
  width: 10px; height: 10px;
  top: 5%; left: 40%;
  animation-duration: 35s, 20s;
  animation-delay: -20s, -20s;
  --tx1: 20vw; --ty1: 90vh; --tx2: -30vw; --ty2: 50vh; --tx3: 50vw; --ty3: 20vh; --tx4: 10vw; --ty4: -10vh;
}
.bg-orb:nth-child(5) {
  width: 14px; height: 14px;
  top: 80%; left: 10%;
  animation-duration: 28s, 16s;
  animation-delay: -12s, -12s;
  --tx1: 70vw; --ty1: -50vh; --tx2: 30vw; --ty2: -20vh; --tx3: -20vw; --ty3: 10vh; --tx4: 10vw; --ty4: 40vh;
}
/* --- END: LUXURY BACKGROUND AMBIENT ORBS --- */
/* --- RESPONSIVE ADJUSTMENTS & MOBILE PERFORMANCE FIXES --- */


/* --- RESPONSIVE ADJUSTMENTS & MOBILE PERFORMANCE FIXES --- */
@media (max-width: 768px) {
    /* CRITICAL FIX: Stop background animation on mobile to prevent screen flickering */
    body {
        animation: none !important;
        background-attachment: scroll !important; 
    }

    /* EDIT: Drastically reduced font sizes for better mobile composition */
    .site-title { font-size: 1.8rem; } 
    nav a { font-size: 0.9rem; } 
    .gallery-header h1, .related-header h2 { font-size: 1.5rem; }

    nav { margin: 0.5rem 0; gap: 8px; } 
    nav a { padding: 4px 8px; } 
    .container { padding: 1.5rem 1rem; } 
    .media-feed-item { max-width: 100%; } 
    .clock-container { align-items: flex-end; flex-direction: column; gap: 2px; }

    /* REFACTOR: Disable expensive visual effects (Blur/Glass) on mobile.
       Added .glass-pill-nav and .page-indicator to this list to stop fixed-element flickering. */
    .container, .gallery-card, .search-form input, .pagination-list, .glass-pill-nav, .page-indicator {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Make the bottom nav solid/opaque since glass is disabled */
    .glass-pill-nav {
        background-color: rgba(18, 16, 28, 0.98) !important;
        border-top: 1px solid var(--border-color);
    }

    .gallery-card {
        box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    }
    
    .cinematic-spotlight-title { font-size: 1.75rem; } 
    .cinematic-spotlight-overlay { padding: 1.5rem; }
    .cinematic-spotlight-cta {
        font-size: 0.75rem; 
        padding: 6px 12px; 
    }
}


/* --- BOTTOM GLASS NAVIGATION --- */
.glass-pill-nav {
    position: fixed;
    bottom: 5px; /* CHANGED: Set to 5px for Desktop */
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    
    /* Layout Logic */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;         
    align-items: center;
    justify-content: center;   
    
    /* Sizing */
    width: fit-content;        
    max-width: 95%;            
    
    /* Scrolling logic */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
    
    /* Aesthetics */
    gap: 5px;
    padding: 6px 8px;
    border-radius: 50px;
    background-color: rgba(18, 16, 28, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Hide Scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.glass-pill-nav::-webkit-scrollbar { display: none; }

/* Light Theme Adjustment */
html.light-theme .glass-pill-nav {
    background-color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.6);
}

.glass-pill-link {
    font-family: 'Amatic SC', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 30px;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap; 
    flex-shrink: 0;      
}

.glass-pill-link:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.glass-pill-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 4px 15px var(--aurora-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .glass-pill-nav { 
        bottom: 5px; /* CHANGED: Set to 5px for Mobile */
        padding: 4px;
        justify-content: flex-start; 
        width: auto; 
    }
    .glass-pill-link { 
        font-size: 1.1rem; 
        padding: 5px 12px; 
    }
}
/* Hide glass nav when LightGallery is open */
body.lg-on .glass-pill-nav,
html.lg-on .glass-pill-nav {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}


.gallery-card-info::after {
    content: "\f101"; /* <--- Change this code to pick your icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    bottom: 85px; 
    font-size: 3.5rem; /* Make it big since it's faint */
    color: var(--primary);
    opacity: 0.08;
    transition: all 0.4s var(--ease-out-quint);
    pointer-events: none;
    z-index: 1;
}

/* Make it glow on hover */
.gallery-card:hover .gallery-card-info::after {
    opacity: 0.3;
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--primary));
}
@media screen and (prefers-reduced-motion: reduce) {
    .container, .gallery-card {
        animation: none !important;
        opacity: 1 !important;
    }
}
