/* ==================== 
   VARIABILI & RESET 
==================== */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-yellow: #FFC107;
    --font-heading: 'Londrina Solid', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-handwritten: 'Londrina Solid', cursive;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --max-width: 1200px;
    /* Hand-drawn border radius presets */
    --sketchy-1: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --sketchy-2: 15px 255px 15px 225px / 255px 15px 225px 15px;
    --sketchy-3: 225px 15px 255px 15px / 15px 255px 15px 225px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Both html AND body need this for mobile */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    /* Hard cap to viewport width */
}

/* ==================== 
   TYPOGRAPHY 
==================== */
h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.text-yellow {
    color: var(--color-yellow);
}

.text-black {
    color: var(--color-black);
}

.text-white {
    color: var(--color-white);
}

.text-center {
    text-align: center;
}

p {
    margin-bottom: var(--space-sm);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
}

/* ==================== 
   LAYOUT & UTILITIES 
==================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
}

.section {
    padding: var(--space-xl) 0;
}

.bg-black {
    background-color: var(--color-black);
}

.bg-white {
    background-color: var(--color-white);
    color: var(--color-black);
}

.mb-large {
    margin-bottom: var(--space-lg);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==================== 
   SKETCHY SECTION EDGES 
==================== */
.section-edge {
    width: 100%;
    line-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.section-edge svg {
    width: 100%;
    height: 20px;
    display: block;
}

.edge-black-to-white {
    background-color: var(--color-black);
}

.edge-white-to-black {
    background-color: var(--color-white);
}

/* ==================== 
   BUTTONS (Hand-drawn style)
==================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    border-radius: var(--sketchy-1);
    position: relative;
}

.btn:nth-child(even) {
    border-radius: var(--sketchy-2);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
}

.btn-yellow {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-yellow);
}

.btn-yellow:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-black);
    transform: translateY(-2px) rotate(-1deg);
}

.btn-outline-yellow {
    background-color: transparent;
    border: 3px solid var(--color-yellow);
    color: var(--color-yellow);
}

.btn-outline-yellow:hover {
    background-color: var(--color-yellow);
    color: var(--color-black);
    transform: rotate(1deg);
}

.btn-outline-white {
    background-color: transparent;
    border: 3px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    transform: rotate(-1deg);
}

/* ==================== 
   COMPONENTS 
==================== */

/* ==================== 
   FLOATING NAV 
==================== */
.floating-nav {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 1000;
    pointer-events: none;
    /* Let clicks pass through empty space */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-nav.hidden-by-footer,
.floating-nav.hidden-by-scroll {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none !important;
}

.floating-nav>* {
    pointer-events: auto;
    /* Re-enable clicks for active items */
}

/* Floating Logo Circle */
.floating-logo-link {
    display: inline-block;
}

.floating-logo {
    width: 80px;
    height: 80px;
    background-color: var(--color-white);
    border: 3px solid var(--color-white);
    border-radius: 50% 55% 45% 50% / 55% 45% 50% 50%;
    /* Sketchy circle */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.floating-logo:hover {
    transform: rotate(-4deg) scale(1.05);
}

.floating-logo img {
    width: 100%;
    height: auto;
    margin-left: 4px;
}

/* Floating CTA Pill */
.floating-cta {
    display: flex;
    background-color: var(--color-black);
    border: 3px solid var(--color-white);
    border-radius: 40px 60px 38px 62px / 60px 40px 58px 42px;
    /* Sketchy pill */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.float-btn {
    font-family: var(--font-heading);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.25rem;
    text-transform: uppercase;
    padding: 0.8rem 1.4rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.float-partecipa {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

.float-partecipa:hover {
    background-color: var(--color-white);
}

.float-organizza {
    background-color: var(--color-black);
    color: var(--color-white);
}

.float-organizza:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* ==================== 
   HERO 
==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-black);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    /* Content always visible — spotlight overlay reveals it */
}

.hero-main-logo {
    width: 80%;
    max-width: 550px;
    height: auto;
    margin: 0 auto var(--space-md) auto;
    display: block;
    filter: drop-shadow(3px 3px 0px rgba(255, 193, 7, 0.35));
    transform: translateX(6px);
    /* Optically center logo to the right slightly */
}

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: var(--space-lg);
    color: #ddd;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Spotlight overlay — JS-driven mask-position */
.spotlight-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.95);
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle 250px, transparent 60%, rgba(0, 0, 0, 0.4) 80%, black 100%);
    mask-image: radial-gradient(circle 250px, transparent 60%, rgba(0, 0, 0, 0.4) 80%, black 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.spotlight-overlay.fade-out {
    opacity: 0;
}



/* Soft white glow that follows the spotlight */
.spotlight-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 30%, transparent 70%);
    pointer-events: none;
    z-index: 4;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotlight-glow.active {
    opacity: 1;
}

/* ==================== 
   SECTIONS 
==================== */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
}

/* ==================== 
   COUNTER SECTION
==================== */
.counter-grid {
    gap: var(--space-xl) var(--space-md);
}

.counter-card {
    background-color: transparent;
    padding: var(--space-md);
    text-align: center;
    border: none;
}

.counter-number {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: var(--space-xs);
    color: #111;
}

.counter-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.2;
}

/* ==================== 
   PARTNERS SECTION
==================== */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg) var(--space-xl);
    margin-top: var(--space-md);
}

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

.partner-logo img {
    max-height: 80px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .partner-logo img {
        max-height: 60px;
    }
}

/* ==================== 
   RULES SECTION (Hand-drawn cards)
==================== */
.rule-card {
    background-color: #111;
    padding: var(--space-lg) var(--space-md);
    border: 3px solid #333;
    border-radius: var(--sketchy-1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.rule-card:nth-child(2) {
    border-radius: var(--sketchy-2);
}

.rule-card:nth-child(3) {
    border-radius: var(--sketchy-3);
}

.rule-card:hover {
    transform: translateY(-5px) rotate(-0.5deg);
    border-color: var(--color-yellow);
}

.rule-number {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.rule-title {
    font-size: 2rem;
}

/* ==================== 
   GALLERY — POLAROID STYLE 
==================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 3px solid var(--color-black);
    border-radius: var(--sketchy-1);
    padding: 0.5rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.filter-btn:nth-child(2) {
    border-radius: var(--sketchy-2);
}

.filter-btn:nth-child(3) {
    border-radius: var(--sketchy-3);
}

.filter-btn:nth-child(4) {
    border-radius: var(--sketchy-1);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

.loader-container {
    text-align: center;
    padding: var(--space-lg) 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--color-yellow);
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Polaroid Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Wider grid for horizontal audio-only view */
.gallery-grid-horizontal {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Hidden items before "Espandi" is clicked */
.archive-hidden {
    display: none !important;
}

/* Expand button for date groups */
.btn-expand-archive {
    display: block;
    margin: 1.5rem auto 0;
    padding: 10px 30px;
    background: transparent;
    border: 2px solid var(--color-yellow);
    color: var(--color-yellow);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
}

.btn-expand-archive:hover {
    background: var(--color-yellow);
    color: var(--color-black);
}

/* Polaroid Card */
.polaroid {
    background: var(--color-white);
    padding: 12px 12px 0 12px;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-origin: center center;
    aspect-ratio: 3/4;
    /* Standard card size */
    display: flex;
    flex-direction: column;
}

/* Each polaroid gets a slightly different tilt */
.polaroid:nth-child(6n+1) {
    transform: rotate(-2deg);
}

.polaroid:nth-child(6n+2) {
    transform: rotate(1.5deg);
}

.polaroid:nth-child(6n+3) {
    transform: rotate(-1deg);
}

.polaroid:nth-child(6n+4) {
    transform: rotate(2.5deg);
}

.polaroid:nth-child(6n+5) {
    transform: rotate(-0.5deg);
}

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

.polaroid:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 4px 8px 25px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.polaroid-img-wrapper {
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    background: #e8e8e8;
    position: relative;
}

.polaroid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.polaroid:hover .polaroid-img-wrapper img {
    transform: scale(1.03);
}

.polaroid-caption {
    padding: 14px 6px 16px 6px;
    font-weight: 400;
    font-size: 1.15rem;
    color: #444;
    text-align: center;
    letter-spacing: 0.3px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Handwritten font classes — assigned randomly by JS */
.font-caveat {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
}

.font-shadows {
    font-family: 'Shadows Into Light', cursive;
    font-size: 1.1rem;
}

.font-nothing {
    font-family: 'Nothing You Could Do', cursive;
    font-size: 1rem;
}

/* ==================== 
   MEDIA TYPE: TORN PAPER (TEXT) 
==================== */
.torn-paper {
    background-color: #fdf5c9;
    /* Yellowish paper color */
    background-image:
        linear-gradient(90deg, transparent 40px, #ff4c4c 40px, #ff4c4c 41px, transparent 41px),
        /* Vertical red margin */
        repeating-linear-gradient(transparent, transparent 24px, #61AEE8 24px, #61AEE8 25px);
    /* Horizontal blue lines */
    background-size: 100% 100%, 100% 25px;
    background-position: 0 0, 0 30px;
    position: relative;
    padding: 38px 15px 15px 55px;
    /* Space for holes + align to red line */
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-origin: center center;
    aspect-ratio: 3/4;
    /* Standard card size */
    display: flex;
    flex-direction: column;
    border-radius: 2px 6px 6px 2px;
}

.torn-paper:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 4px 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Base rotation classes */
.torn-paper:nth-child(6n+1) {
    transform: rotate(-1.5deg);
}

.torn-paper:nth-child(6n+2) {
    transform: rotate(2deg);
}

.torn-paper:nth-child(6n+3) {
    transform: rotate(-0.5deg);
}

.torn-paper:nth-child(6n+4) {
    transform: rotate(1deg);
}

.torn-paper:nth-child(6n+5) {
    transform: rotate(-2.5deg);
}

.torn-paper:nth-child(6n+6) {
    transform: rotate(0.5deg);
}

/* Left edge: Create punched holes using masking */
.torn-paper {
    /* Using masking to create transparent "holes" on the left side */
    -webkit-mask-image: radial-gradient(circle at 16px 25px, transparent 8px, black 9px);
    -webkit-mask-size: 100% 40px;
    -webkit-mask-repeat: repeat-y;
    -webkit-mask-position: 0 10px;
    mask-image: radial-gradient(circle at 16px 25px, transparent 8px, black 9px);
    mask-size: 100% 40px;
    mask-repeat: repeat-y;
    mask-position: 0 10px;
}

/* Inner shadow for the holes to make them look 3D 
   (Since masks cut out the element entirely, we fake the shadow via a pseudo element underneath that repeats the shadow pattern) */
.torn-paper::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 0;
    width: 32px;
    background-image: radial-gradient(circle at 16px 25px, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.2) 8px, transparent 8px);
    background-size: 100% 40px;
    background-repeat: repeat-y;
    z-index: -1;
    /* Goes behind the paper content but visible through the mask text */
    /* Adjust mask-position offsets */
    transform: translate(2px, 2px);
    pointer-events: none;
}


/* Content block styling */
.paper-content {
    flex-grow: 1;
    font-size: 1.15rem;
    color: #222;
    line-height: 25px;
    /* MUST exactly match the blue line repeating gradient size (25px) */
    overflow: hidden;
    position: relative;
    /* Hand-written font applies from JS classes */

    /* Truncate text after a few lines if it overflows */
    display: -webkit-box;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Fades out text at bottom of card */
.paper-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(253, 245, 201, 0), #fdf5c9);
}

.paper-meta {
    align-self: flex-end;
    /* Align right */
    padding: 2px 10px;
    background-color: transparent;
    /* Does not cover blue line */
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    margin-right: -10px;
    /* Slight offset */
    margin-bottom: 5px;
}

/* ==================== 
   MEDIA TYPE: CASSETTE (AUDIO) 
==================== */
.cassette {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-origin: center center;
    aspect-ratio: 3/4;
    /* Standard card size */
    border-radius: 8px;
    /* For hover shadow containment */
    /* Minimal shadow for the invisible container */
}

/* Horizontal variation for archive page */
.cassette.horizontal {
    aspect-ratio: 4 / 3;
}

.cassette.horizontal .inner-cassette {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    /* Reset rotation but keep centering */
}

.inner-cassette {
    /* Magic trick to build it perfectly horizontal but fit inside the 3/4 vertical aspect ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 133.333%;
    /* 1 / (3/4) */
    height: 75%;
    /* 3/4 */
    transform: translate(-50%, -50%) rotate(-90deg);
    /* Counter-clockwise makes it read bottom-to-top */

    background-color: #111;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px #333;
    overflow: hidden;
}

/* Base rotation classes for slightly crooked gallery layout */
.cassette:nth-child(6n+1) {
    transform: rotate(1deg);
}

.cassette:nth-child(6n+2) {
    transform: rotate(-2deg);
}

.cassette:nth-child(6n+3) {
    transform: rotate(1.5deg);
}

.cassette:nth-child(6n+4) {
    transform: rotate(-1deg);
}

.cassette:nth-child(6n+5) {
    transform: rotate(2.5deg);
}

.cassette:nth-child(6n+6) {
    transform: rotate(-0.5deg);
}

.cassette:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 2;
    box-shadow: 4px 8px 25px rgba(0, 0, 0, 0.3);
}

.cassette-screw {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.3);
}

.cassette-screw.top-left {
    top: 6px;
    left: 6px;
}

.cassette-screw.top-right {
    top: 6px;
    right: 6px;
}

.cassette-screw.bottom-left {
    bottom: 6px;
    left: 6px;
}

.cassette-screw.bottom-right {
    bottom: 6px;
    right: 6px;
}

.cassette-engraving {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    /* No rotation needed to go baseline-right visually! */
    font-size: 0.9rem;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: #555;
    /* Dark grey */
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.1), -1px -1px 0px rgba(0, 0, 0, 0.8);
}

.cassette-sticker {
    position: absolute;
    top: 13%;
    bottom: 25%;
    left: 6%;
    right: 6%;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Color Themes for VHS stickers */
.cassette-sticker.theme-rainbow {
    background-image:
        linear-gradient(to bottom,
            transparent 0%, transparent 60%,
            #e91e63 60%, #e91e63 68%,
            #ff9800 68%, #ff9800 76%,
            #ffeb3b 76%, #ffeb3b 84%,
            #4caf50 84%, #4caf50 92%,
            #2196f3 92%, #2196f3 100%);
}

.cassette-sticker.theme-vaporwave {
    background-image: linear-gradient(to bottom,
            transparent 0%, transparent 60%,
            #0ff 60%, #0ff 70%,
            #f0f 70%, #f0f 80%,
            #8000ff 80%, #8000ff 90%,
            #ff00ff 90%, #ff00ff 100%);
}

.cassette-sticker.theme-sunset {
    background-image: linear-gradient(to bottom,
            transparent 0%, transparent 60%,
            #d32f2f 60%, #d32f2f 70%,
            #f57c00 70%, #f57c00 80%,
            #fbc02d 80%, #fbc02d 90%,
            #ffeb3b 90%, #ffeb3b 100%);
}

.cassette-sticker.theme-brand {
    background-image: linear-gradient(to bottom,
            transparent 0%, transparent 60%,
            #ffc107 60%, #ffc107 70%,
            #fff 70%, #fff 80%,
            #ffeb3b 80%, #ffeb3b 90%,
            #ff9800 90%, #ff9800 100%);
}

.cassette-sticker.theme-vintage {
    background-image: linear-gradient(to bottom,
            transparent 0%, transparent 60%,
            #e65100 60%, #e65100 70%,
            #ff9800 70%, #ff9800 80%,
            #ffc107 80%, #ffc107 90%,
            #ffeb3b 90%, #ffeb3b 100%);
}

.cassette-title {
    margin-top: 8px;
    font-size: clamp(1rem, 4vw, 2.5rem);
    /* Auto-scale based on viewport */
    color: #111;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    padding: 0 8px;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-height: 55%;
    /* Never overflow beyond the sticker's top half */
}

.cassette-meta {
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    margin-top: 4px;
}

.cassette-cutout {
    position: absolute;
    bottom: 8%;
    /* Sits above timeline stripes or overlapping them */
    left: 17%;
    right: 17%;
    height: 40%;
    background: #000;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
    /* Simulated tape behind holes */
    background-image: linear-gradient(to right, transparent 35%, #3e2723 35%, #3e2723 65%, transparent 65%);
}

.cassette-spool {
    width: 25%;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 50%;
    position: relative;
    /* Simulate spool gears */
    background-image: repeating-conic-gradient(#fff 0 30deg, #111 30deg 60deg);
    box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px #111;
}

/* Animate spools when hovering the whole cassette or when visible in mobile */
.cassette:hover .cassette-spool,
.cassette.is-visible .cassette-spool {
    animation: spin 3s linear infinite;
}

.cassette-trapezoid {
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 18%;
    background: #2a2a2c;
    border-top: 1px solid #333;
    clip-path: polygon(8% 0, 92% 0, 100% 100%, 0% 100%);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding-bottom: 5px;
}

.cassette-trapezoid-hole {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.2);
}

/* ==================== 
   AUDIO PROMPT OVERLAY & PLAYER
==================== */
.audio-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.audio-prompt-popup {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    max-width: 520px;
    width: 90%;
    text-align: center;
    position: relative;
    color: #fff;
}

.audio-prompt-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.audio-prompt-close:hover {
    color: #fff;
}

.audio-prompt-cassette {
    margin: 0 auto 1.5rem;
    width: 100%;
    max-width: 420px;
    pointer-events: none;
}

/* Audio Player Controls */
.audio-player-controls {
    margin-bottom: 1.5rem;
}

.audio-player-controls.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.audio-progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.audio-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--color-yellow);
    border-radius: 3px;
    transition: width 0.1s;
}

.audio-time {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.audio-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 10px;
}

.audio-btn {
    background: none;
    border: 2px solid #555;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.audio-btn:hover {
    border-color: var(--color-yellow);
    color: var(--color-yellow);
}

.audio-btn-play {
    width: 56px;
    height: 56px;
    border-color: var(--color-yellow);
    color: var(--color-yellow);
}

.audio-speed {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.audio-speed-btn {
    background: transparent;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 4px 12px;
    color: #888;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.audio-speed-btn.active,
.audio-speed-btn:hover {
    border-color: var(--color-yellow);
    color: var(--color-yellow);
    background: rgba(255, 193, 7, 0.1);
}

/* Password Form */
.audio-password-form {
    color: #ccc;
}

.audio-password-label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.audio-password-input-wrap {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.audio-password-input {
    flex: 1;
    max-width: 240px;
    padding: 10px 14px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.audio-password-input:focus {
    border-color: var(--color-yellow);
}

.audio-password-submit {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.audio-password-error {
    color: #ff5252;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Shake animation for wrong password */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}

.shake {
    animation: shake 0.4s ease;
}

/* ==================== 
   CTA FOLDER (ARCHIVE) 
==================== */
.folder-cta {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-origin: center left;
    /* swing from the left edge */
    aspect-ratio: 3/4;
    /* Standard card size */
    border-radius: 2px 12px 4px 2px;
    display: flex;
    flex-direction: column;
    perspective: 1500px;
}

/* Background/Back of folder */
.folder-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Top Tab */
.folder-cta::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 5%;
    width: 45%;
    height: 12px;
    background: inherit;
    border-radius: 8px 8px 0 0;
    z-index: 0;
}

/* Cover of folder */
.folder-cover {
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    z-index: 10;
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset -2px 0 10px rgba(0, 0, 0, 0.05), inset 2px 0 5px rgba(255, 255, 255, 0.4);

    display: flex;
    flex-direction: column;
}

/* Add a line simulating folding crease */
.folder-cover::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    width: 2px;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.3);
}

.folder-cta:hover,
.folder-cta.is-visible {
    transform: rotate(0deg) scale(1.05) !important;
    z-index: 5;
}

.folder-cta:hover .folder-cover,
.folder-cta.is-visible .folder-cover {
    transform: rotateY(-30deg);
    /* open folder */
    box-shadow: 8px 4px 20px rgba(0, 0, 0, 0.2), inset -2px 0 10px rgba(0, 0, 0, 0.05);
}

/* Colors */
.folder-cta.color-blue {
    background: #6ab7d4;
}

.folder-cta.color-yellow {
    background: #ecd06f;
}

.folder-cta.color-red {
    background: #d46a6a;
}

.folder-cta.color-green {
    background: #85c285;
}

/* Papers */
.folder-paper {
    position: absolute;
    background: #fdfbf7;
    border: 1px solid #ddd;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.08);
    z-index: 5;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px;
}

.folder-paper-1 {
    top: 8%;
    left: 10%;
    right: 15%;
    bottom: 10%;
    transform: rotate(-1deg);
}

.folder-paper-2 {
    top: 12%;
    left: 8%;
    right: 10%;
    bottom: 8%;
    background: #fffdf5;
    transform: rotate(1.5deg);
}

.folder-cta:hover .folder-paper-1,
.folder-cta.is-visible .folder-paper-1 {
    transform: rotate(-4deg) translateY(-25px) translateX(-5px);
}

.folder-cta:hover .folder-paper-2,
.folder-cta.is-visible .folder-paper-2 {
    transform: rotate(6deg) translateX(25px) translateY(-10px);
}

/* Inner content */
.folder-cover-content {
    flex-grow: 1;
    margin: 15px;
    border: 1.5px solid rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

/* Printed label lines */
.folder-lines {
    margin-top: 15px;
    margin-left: auto;
    width: 65%;
}

.folder-line {
    height: 1px;
    background: rgba(0, 0, 0, 0.6);
    margin-bottom: 12px;
}

.folder-text {
    margin-top: auto;
    margin-bottom: 30px;
    /* Push it up from the bottom so it's centered better */
    font-size: 2.1rem;
    color: #222;
    line-height: 1.05;
    text-align: center;
    transform: rotate(-2deg);
}

/* ==================== 
   LIGHTBOX / POLAROID SLIDER 
==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(8px);
    overflow: hidden;
    /* Prevent any scrolling on the lightbox backdrop */
    touch-action: pan-y;
    /* We handle horizontal swipe in JS */
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    font-family: var(--font-heading);
    cursor: pointer;
    z-index: 2010;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-yellow);
    transform: rotate(90deg);
}

.lightbox-polaroid {
    background: var(--color-white);
    padding: 16px 16px 0 16px;
    max-width: 85vw;
    max-height: 85vh;
    box-shadow: 4px 8px 30px rgba(0, 0, 0, 0.5);
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-x: hidden;
    /* Lock horizontal scroll */
}

.lightbox-img-wrapper {
    width: 100%;
    max-height: 65vh;
    min-height: 200px;
    overflow-x: hidden;
    /* No horizontal scroll on images */
    overflow-y: auto;
    /* Allow vertical scroll for long text in wrapper */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    touch-action: none;
    /* Prevent image from being draggable/scrollable */
}

.lightbox-caption {
    padding: 24px 16px 36px 16px;
    font-weight: 400;
    font-size: 1.4rem;
    color: #444;
    text-align: center;
    letter-spacing: 0.3px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    font-family: var(--font-heading);
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2010;
}

.lightbox-nav:hover {
    color: var(--color-yellow);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.lightbox-next {
    right: 1rem;
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(4px);
}

/* Randomize lightbox polaroid rotation per slide */
.lightbox-polaroid.tilt-1 {
    transform: rotate(-2deg);
}

.lightbox-polaroid.tilt-2 {
    transform: rotate(1.5deg);
}

.lightbox-polaroid.tilt-3 {
    transform: rotate(-1deg);
}

.lightbox-polaroid.tilt-4 {
    transform: rotate(2.5deg);
}

.lightbox-polaroid.tilt-5 {
    transform: rotate(-3deg);
}

.lightbox-polaroid.tilt-6 {
    transform: rotate(0.5deg);
}

/* ==================== 
   FOOTER 
==================== */
.footer {
    padding: var(--space-lg) 0 var(--space-sm) 0;
    border-top: none;
    position: relative;
    /* Translate -1px to avoid white subpixel line bleeding from SVGs above */
    transform: translateY(-1px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--space-sm);
    transform: translateX(4px);
    /* Optically center slightly right */
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    padding-top: var(--space-md);
    position: relative;
}

.footer-bottom a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/* Removed mobile bottom bar */

/* ==================== 
   ORGANIZZA POPUP 
==================== */
.organizza-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.organizza-overlay.active {
    opacity: 1;
    visibility: visible;
}

.organizza-popup {
    background: #111;
    border: 3px solid #333;
    border-radius: var(--sketchy-1);
    padding: var(--space-lg) var(--space-md);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: var(--color-white);
}

.organizza-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.organizza-close:hover {
    color: var(--color-yellow);
}

.organizza-title {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.organizza-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.organizza-form .form-group {
    margin-bottom: 1.2rem;
}

.organizza-form label {
    display: block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    color: #ccc;
}

.organizza-form input[type="text"],
.organizza-form input[type="email"],
.organizza-form input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.organizza-form input:focus {
    outline: none;
    border-color: var(--color-yellow);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: none;
    color: #999;
    line-height: 1.4;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-yellow);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.organizza-submit {
    width: 100%;
    margin-top: var(--space-sm);
    border-radius: var(--sketchy-2);
}

.organizza-success {
    text-align: center;
    padding: var(--space-md) 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-yellow);
    color: var(--color-black);
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm) auto;
}

.organizza-success h3 {
    color: var(--color-yellow);
    font-size: 1.8rem;
}

.organizza-success p {
    color: #aaa;
}

/* ==================== 
   MEDIA QUERIES 
==================== */
@media (max-width: 768px) {

    .d-none-mobile {
        display: none !important;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .hero-main-logo {
        width: 85%;
        max-width: 320px;
    }

    .hero-title {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 var(--space-sm);
    }

    .floating-nav {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .floating-logo {
        width: 60px;
        height: 60px;
        padding: 8px;
    }

    .float-btn {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .rule-card {
        padding: var(--space-md) var(--space-sm);
    }

    .rule-number {
        font-size: 4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.2rem;
    }

    /* Archive page: "Tutte le date" on its own row, other 3 on second row */
    body.archive-page .gallery-filters {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    body.archive-page .gallery-filters .filter-btn:first-child {
        grid-column: 1 / -1;
        /* Full width on first row */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Lightbox mobile */
    .lightbox-polaroid {
        max-width: 92vw;
        padding: 10px 10px 0 10px;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 0.3rem;
    }

    .lightbox-next {
        right: 0.3rem;
    }

    .lightbox-caption {
        font-size: 1.1rem;
        padding: 12px 6px 16px 6px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .polaroid {
        padding: 8px 8px 0 8px;
    }

    .polaroid-caption {
        font-size: 0.9rem;
        padding: 10px 4px 12px 4px;
        min-height: 40px;
    }

    .hero-content {
        padding: 0 var(--space-sm);
    }
}

/* ====================
   ARCHIVE PAGE HEADER
==================== */
.archive-header {
    position: relative;
    overflow: visible;
    padding: 60px 0 50px;
    background: #c9a96e;
    /* Warm manila/kraft cardboard color */
    border-bottom: 4px solid #b08a4a;
}

/* Worn cardboard texture overlay */
.archive-header-bg {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(87deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.015) 4px,
            rgba(0, 0, 0, 0.015) 5px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 6px,
            rgba(0, 0, 0, 0.02) 6px,
            rgba(0, 0, 0, 0.02) 7px),
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 30%, rgba(0, 0, 0, 0.04) 0%, transparent 60%);
    border-left: 5px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 -3px 6px rgba(0, 0, 0, 0.06),
        inset 6px 0 8px -4px rgba(255, 255, 255, 0.15);
    z-index: 0;
}

/* Folder tab sticking out at the top */
.archive-header::before {
    content: '';
    position: absolute;
    top: -18px;
    right: 12%;
    width: 160px;
    height: 18px;
    background: #c9a96e;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.1);
    z-index: 1;
    filter: brightness(0.96);
}

/* Jagged bottom edge simulating torn/cut cardboard */
.archive-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: #c9a96e;
    z-index: 3;
    clip-path: polygon(0% 0%, 3% 40%, 6% 10%, 9% 50%, 12% 20%, 15% 60%, 18% 15%,
            21% 55%, 24% 25%, 27% 65%, 30% 10%, 33% 50%, 36% 20%, 39% 55%,
            42% 15%, 45% 60%, 48% 25%, 51% 50%, 54% 10%, 57% 55%, 60% 20%,
            63% 60%, 66% 15%, 69% 50%, 72% 25%, 75% 55%, 78% 10%, 81% 55%,
            84% 20%, 87% 60%, 90% 15%, 93% 50%, 96% 25%, 100% 0%);
}

.archive-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.archive-header-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #3e2723;
    /* Dark brown ink on cardboard */
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.2);
}

.archive-header-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #5d4037;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .archive-header {
        padding: 45px 0 35px;
    }

    .archive-header-title {
        font-size: 2.5rem;
    }

    .archive-header::before {
        width: 120px;
        height: 14px;
        top: -14px;
        right: 8%;
    }
}

/* Polaroid Reveal Animation */
.polaroid-img-wrapper {
    position: relative;
    overflow: hidden;
}

.polaroid-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #111;
    transition: opacity var(--reveal-duration, 1.5s) ease-in;
    pointer-events: none;
    z-index: 2;
    opacity: 1;
}

.polaroid-img-wrapper.is-loaded::after {
    opacity: 0;
}

/* Lightbox Article Dedicated View */
.lightbox-article-wrapper {
    display: none;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background-color: #fdf5c9;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 0;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    text-align: left;
    color: #222;
}

/* On mobile, take up more space */
@media screen and (max-width: 768px) {
    .lightbox-article-wrapper {
        width: 95%;
        height: 85vh;
    }
}