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

body {
    font-family: 'Arial Black', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #f5f5f0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    /* was: height: 100vh; */
    min-height: 100vh;
    background: linear-gradient(to bottom, rgba(139, 0, 0, 0.3), rgba(0, 0, 0, 0.9)), 
                url('images/hero-banner-flame-tyrant.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;

    /* NEW – keeps title/CTA clear of the fixed nav and gives
       the hero some breathing room on small screens */
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.fire-text {
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ff4500, #ff6b00, #ffd700, #ff4500);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fireGradient 3s ease infinite;
    text-shadow: 0 0 40px rgba(255, 69, 0, 0.8);
    margin-bottom: 1rem;
}

@keyframes fireGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tagline {
    font-size: 2rem;
    color: #ff4500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 1rem;
    color: #daa520;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.cta-button {
    display: inline-block;
    padding: 20px 60px;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    background: linear-gradient(45deg, #8b0000, #ff4500);
    color: #fff;
    text-decoration: none;
    border: 3px solid #ff4500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 69, 0, 0.5);
    transition: left 0.3s ease;
}

.cta-button:hover:before {
    left: 0;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8);
}

/* MASTER NAVIGATION - CONSISTENT ACROSS ALL PAGES */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid #ff4500;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0;
}

/* HAMBURGER MENU BUTTON - Hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ff4500;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* DEFAULT LINK STYLING - WHITE TEXT */
nav a {
    color: #f5f5f0 !important;
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
}

/* HOVER STATE - RED FOR MOST LINKS */
nav a:hover {
    color: #ff4500 !important;
}

/* COMMUNITY SPECIAL STYLING */
.community-link {
    color: #ff4500 !important;
}

.community-link:hover {
    color: #ffd700 !important;
}

/* FUND THE FIRE SPECIAL STYLING */
.fund-the-fire-link {
    color: #ffd700 !important;
    font-weight: bold;
}

.fund-the-fire-link:hover {
    color: #ff4500 !important;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.8);
}

/* ACTIVE STATE INDICATORS */
.community-link.active {
    color: #ff4500 !important;
    position: relative;
}

.community-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff4500;
}

.fund-the-fire-link.active {
    color: #ffd700 !important;
    position: relative;
}

.fund-the-fire-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffd700;
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: #ff4500;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #ff4500;
}

/* Death Content Preview */
.death-content-preview {
    background: rgba(139, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid #8b0000;
    margin-top: 3rem;
}

/* Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.class-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
    border: 2px solid #8b0000;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    cursor: pointer;
}

.class-card:hover {
    transform: translateY(-5px);
    border-color: #ff4500;
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.3);
}

.class-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid #8b0000;
}

.class-name {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.class-tagline {
    font-size: 1rem;
    color: #daa520;
    font-style: italic;
    margin-bottom: 1rem;
}

.class-description {
    color: #f5f5f0;
    margin-bottom: 1rem;
}

.death-voice {
    color: #ff4500;
    font-style: italic;
    font-size: 1.1rem;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(255, 69, 0, 0.1);
    border-left: 3px solid #ff4500;
}

.class-role {
    display: inline-block;
    padding: 5px 15px;
    background: #ff4500;
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Factions */
.factions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faction-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.faction-image {
    width: 100px;
    height: 100px;
    float: right;
    margin-left: 1rem;
    border: 2px solid;
    border-color: inherit;
}

.faction-card.iron-guard {
    border-color: #2e4f7f;
}

.faction-card.flame-scholars {
    border-color: #663399;
}

.faction-card.ember-legion {
    border-color: #8b0000;
}

.faction-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.3);
}

.faction-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.iron-guard .faction-name {
    color: #2e4f7f;
}

.flame-scholars .faction-name {
    color: #663399;
}

.ember-legion .faction-name {
    color: #8b0000;
}

.faction-death-culture {
    color: #ff4500;
    font-style: italic;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Story Gallery */
.story-gallery {
    padding: 2rem 0;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.story-panel {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
    border: 3px solid #8b0000;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.story-panel:hover {
    transform: translateY(-5px);
    border-color: #ff4500;
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.5);
}

.story-image-container {
    position: relative;
    width: 100%;
    height: 512px;
    overflow: hidden;
    background: #000;
}

.story-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.story-panel:hover .story-image-container img {
    transform: scale(1.1);
}

.story-number {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    font-weight: 900;
    color: #ff4500;
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    opacity: 0.8;
}

.story-title {
    font-size: 1.3rem;
    color: #ffd700;
    text-transform: uppercase;
    padding: 1rem 1.5rem 0.5rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: 1px;
}

.story-preview {
    color: #f5f5f0;
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-style: italic;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    border: 3px solid #8b0000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff4500, #8b0000, #ff4500);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover:before {
    opacity: 1;
}

.feature:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(0, 0, 0, 0.9));
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.5);
}

.feature-icon {
    width: 256px;
    height: 256px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.8));
}

.feature-title {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.feature p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Endgame Cards */
.endgame-card {
    background: rgba(139, 0, 0, 0.2);
    padding: 2rem;
    border-left: 4px solid #ff4500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.endgame-card:hover {
    background: rgba(255, 69, 0, 0.2);
    transform: translateX(10px);
}

/* Decorative Elements */
.skull-divider {
    text-align: center;
    margin: 4rem 0;
    position: relative;
}

.skull-divider:before,
.skull-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4500, transparent);
}

.skull-divider:before {
    left: 0;
}

.skull-divider:after {
    right: 0;
}

.skull-divider img {
    width: 256px;
    height: 172px;
    filter: drop-shadow(0 0 10px #ff4500);
}

/* Metal Decoration */
.metal-border {
    position: relative;
    padding: 3rem;
    margin: 2rem 0;
}

.metal-border:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #8b0000,
        #8b0000 10px,
        #ff4500 10px,
        #ff4500 20px
    );
}

.metal-border:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #8b0000,
        #8b0000 10px,
        #ff4500 10px,
        #ff4500 20px
    );
}

/* =========================
   Modals (UPDATED)
   - Media (image/video) on top
   - Caption BELOW media
   - Fixed for landscape monitors
   ========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1000px;
    width: 92%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    pointer-events: none; /* click outside closes modal */
}

/* container that holds image/video */
#modalMedia {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#modalMedia img,
#modalMedia video {
    max-width: 100%;
    max-height: 65vh !important; /* FORCE constraint for portrait videos */
    width: auto;
    height: auto;
    object-fit: contain;
    background: #000;
    display: none;           /* toggled via JS */
    pointer-events: auto;    /* allow play/pause on video */
}

/* Also target video directly in case it's outside #modalMedia */
#modalVideo {
    max-height: 65vh !important;
}

.close-modal, .close-info-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ff4500;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.close-modal:hover, .close-info-modal:hover {
    color: #fff;
}

/* Caption sits BELOW the media */
.modal-caption {
    flex: 0 0 auto;
    position: static;
    transform: none;
    color: #ffd700;
    font-size: 1.1rem;
    text-align: left;
    text-transform: none;
    background: rgba(0, 0, 0, 0.85);
    padding: 16px 24px;
    border: 2px solid #ff4500;
    max-height: 20vh;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
    margin-top: 12px;
}

/* Landscape screens - even more aggressive constraints */
@media (orientation: landscape) {
    #modalMedia img,
    #modalMedia video,
    #modalVideo {
        max-height: 55vh !important; /* shorter on landscape to guarantee caption fits */
    }
    .modal-caption {
        max-height: 25vh;
    }
}

/* Very short landscape screens (phones rotated, small laptops) */
@media (orientation: landscape) and (max-height: 500px) {
    #modalMedia img,
    #modalMedia video,
    #modalVideo {
        max-height: 45vh !important;
    }
    .modal-caption {
        padding: 10px 14px;
        font-size: 0.9rem;
        max-height: 35vh;
        margin-top: 8px;
    }
    .close-modal {
        top: 5px;
        right: 15px;
        font-size: 28px;
    }
}

/* Info Modal */
.info-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(0, 0, 0, 0.98));
    border: 3px solid #ff4500;
    padding: 3rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(255, 69, 0, 0.8);
}

.info-title {
    font-size: 2.5rem;
    color: #ffd700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.info-content {
    color: #f5f5f0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.info-content h3 {
    color: #ff4500;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.info-content ul {
    list-style: none;
    padding-left: 0;
}

.info-content li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.info-content li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ff4500;
    font-size: 1.5rem;
}

.info-content strong {
    color: #ffd700;
}

/* Footer */
footer {
    background: #000;
    text-align: center;
    padding: 3rem 2rem;
    border-top: 2px solid #ff4500;
}

.footer-quote {
    font-size: 1.5rem;
    color: #ff4500;
    margin-bottom: 2rem;
    font-style: italic;
}

.footer-fund-link {
    color: #ffd700;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 2rem;
    border: 2px solid #ffd700;
    margin-top: 1rem;
}

.footer-fund-link:hover {
    background: #ffd700;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* Responsive - NAV HAMBURGER (higher breakpoint for 9-item menu) */
@media (max-width: 1150px) {
    /* MOBILE NAV - Hamburger Menu */
    .hamburger {
        display: flex;
        position: fixed;
        top: 60px;
        right: 1rem;
        z-index: 1002;
        background: rgba(0, 0, 0, 0.8);
        padding: 12px;
        border-radius: 4px;
        border: 1px solid #ff4500;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 5rem 2rem 2rem 2rem; /* space for top of screen + thumb reach */
        margin: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;

        /* NEW: allow scrolling when menu is taller than the viewport */
        overflow-y: auto;
    }
    
    nav ul.active {
        opacity: 1;
        visibility: visible;
    }
    
    nav ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    nav ul.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(2) { transition-delay: 0.15s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.25s; }
    nav ul.active li:nth-child(5) { transition-delay: 0.3s; }
    nav ul.active li:nth-child(6) { transition-delay: 0.35s; }
    nav ul.active li:nth-child(7) { transition-delay: 0.4s; }
    nav ul.active li:nth-child(8) { transition-delay: 0.45s; }
    nav ul.active li:nth-child(9) { transition-delay: 0.5s; }
    
    nav ul li a {
        font-size: 1.3rem;
        padding: 0.5rem 1rem;
        display: block;
    }
}

/* Responsive - OTHER ELEMENTS (smaller breakpoint) */
@media (max-width: 768px) {
    /* tighten vertical rhythm on phones */
    section {
        padding: 3.5rem 1.5rem;
    }

    .hero {
        padding-top: 5rem;
        padding-bottom: 2.5rem;
    }

    .fire-text {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .classes-grid,
    .factions-container,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .info-modal-content {
        padding: 2rem;
        width: 95%;
    }

    /* Slightly tighter vertical rhythm on mobile */
    section,
    .metal-border {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Mobile modal tuning (keeps caption below) */
    .modal-content { width: 96%; max-height: 92vh; }
    #modalMedia { max-height: none; flex: 1 1 auto; }
    .modal-caption {
        font-size: 0.95rem;
        padding: 15px 20px;
        max-height: 30vh;
        width: 100%;
        border-width: 2px;
        margin-top: 10px;
    }

    /* On small screens, don't hide content behind fade-in.
       The IntersectionObserver can be a bit flaky on mobile,
       so just show everything immediately. */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Clickable cursor */
.clickable {
    cursor: pointer;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff4500;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b00;
}

/* Loading animation for images */
.class-image,
.faction-image,
.story-image-container img {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Ensure images stop animating when loaded */
.class-image[src],
.faction-image[src],
.story-image-container img[src] {
    animation: none;
}

/* Fund the fire preview loading */
.shirt-preview.loading {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Item loaded animation */
.fund-item.loaded {
    animation: fadeInScale 0.5s ease forwards;
}

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

/* Make sure the modal fully intercepts clicks and sits above the page */
.modal {
  position: fixed; /* ensure it's not relative */
  inset: 0;
  z-index: 10000;  /* above nav and everything else */
  background: rgba(0, 0, 0, 0.85);
}

/* Don't let clicks pass through the content area */
.modal .modal-content {
  pointer-events: auto;
  cursor: default;
}

/* Explicitly allow interacting with media controls */
#modalVideo,
#modalImage {
  pointer-events: auto;
}
