/* ==========================================================================
   1. GLOBAL & SHARED STYLES
   ========================================================================== */

/* Main Body Layout */
body { 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    background-color: #f8f9fa; 
    color: #333; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* UPDATED: Prevent images/videos from forcing horizontal scroll on mobile */
img, video {
    max-width: 100%;
    height: auto;
}

/* Shared Header Style */
.dash-header, 
.project-header, 
.member-header, 
.archive-header, 
.dash-header-dataset, 
.restoration-header { 
    color: #1976d2; 
    margin-top: 0; 
    margin-bottom: 20px; 
    border-bottom: 2px solid #1976d2; 
    padding-bottom: 10px; 
    font-size: 1.5rem; 
    font-weight: bold; 
    line-height: 1.3;
}

/* Responsive Font Sizes for Headers */
@media (max-width: 640px) {
    .dash-header, 
    .project-header, 
    .member-header, 
    .archive-header, 
    .dash-header-dataset, 
    .restoration-header {
        font-size: 1.25rem; /* Smaller on mobile */
    }
}

/* Shared Card Style */
.dash-card, 
.project-card, 
.project-associate-card, 
.member-section-card, 
.archive-card, 
.dash-card-dataset { 
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
    padding: 30px; 
    margin-bottom: 30px; 
    border: 1px solid #eee;
}

/* Reduce padding on mobile cards */
@media (max-width: 640px) {
    .dash-card, .project-card, .member-section-card, .archive-card, .dash-card-dataset {
        padding: 20px;
    }
}

/* Gradient Background Variant */
.project-card, 
.project-associate-card, 
.dash-card-dataset {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

/* Footer Styles */
.dash-footer {
    background-color: #004274;
    color: white;
    padding: 3rem 0;
    margin-top: auto;
}
.footer-link {
    color: #d1d5db;
    transition: color 0.2s;
    font-size: 0.9rem;
}
.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   2. NAVIGATION STYLES (Adjusted for #01579b)
   ========================================================================== */

/* Navbar Container */
#main-nav {
    /* Solid Dark Blue Background */
    background-color: #01579b !important;
    /* Force white text generally inside the navbar to override defaults */
    color: #ffffff !important;
    
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation Links */
.nav-link {
    position: relative;
    font-weight: 500;
    /* Added !important to override any Tailwind text-gray classes */
    color: #ffffff !important; 
    transition: color 0.3s ease;
    padding: 5px 0;
}

/* Hover State - Lighter Cyan/Blue to pop against Dark Blue */
.nav-link:hover {
    color: #4fc3f7 !important; 
}

/* Animated Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4fc3f7; /* Matches hover color */
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Active State (handled by JS) */
.nav-link.active {
    color: #4fc3f7 !important;
    font-weight: 700;
}
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Logo Hover Effect */
#main-nav .text-2xl {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    /* Ensure logo text is also white if it uses this class */
    color: #ffffff !important; 
}
#main-nav a:hover .text-2xl {
    transform: scale(1.05);
    /* Changed shadow to white/light-blue so it is visible on dark bg */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5); 
}

/* Logo Image Size */
#nav-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* UPDATED: Adjust logo on mobile to prevent overflow/overlap */
@media (max-width: 640px) {
    #nav-logo {
        height: 40px; /* Smaller height on mobile */
        max-width: 60vw; /* Ensure it doesn't push hamburger menu off screen */
    }
}

/* ==========================================================================
   3. CAROUSEL STYLES
   ========================================================================== */
.carousel { 
    background: #ffffff; 
    margin-bottom: 40px; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.carousel-cell, .gallery-cell { 
    width: 100%; 
    height: 500px; 
    margin-right: 10px; 
    border-radius: 5px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    background: #ffffff;
    padding: 10px;
}
.carousel-cell img, .gallery-cell img { 
    max-width: 100%; 
    max-height: 350px; /* Adjusted height to make room for text */
    width: auto; 
    height: auto;
    object-fit: contain; 
    box-shadow: 0 0 10px rgba(0,0,0,0.05); 
    border-radius: 4px;
}

/* UPDATED: Colorful & Readable Caption Style */
.gallery-cell p {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #01579b; /* Dark blue text for readability */
    text-align: center;
    
    /* Colorful Card Effect */
    background: linear-gradient(135deg, #e1f5fe 0%, #ffffff 100%); /* Light Blue Gradient */
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 5px solid #0288d1; /* Strong blue accent on left */
    border-right: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* Soft shadow lift */
    width: 90%; /* Center nicely */
    line-height: 1.4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effect for the caption */
.gallery-cell:hover p {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.15);
    border-left-color: #4fc3f7; /* Lighter blue on hover */
}

@media (max-width: 768px) { 
    .carousel-cell, .gallery-cell { height: 450px; } /* Increased height for mobile so text fits */
    .carousel-cell img, .gallery-cell img { max-height: 250px; }
    .gallery-cell p { font-size: 0.85rem; padding: 10px 15px; }
}


/* ==========================================================================
   4. HOME PAGE SPECIFIC
   ========================================================================== */
#join-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 9999; }
.modal-content { background: white; padding: 2.5rem; border-radius: 16px; max-width: 500px; width: 90%; position: relative; text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.3); animation: popIn 0.3s ease-out; }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; color: #777; cursor: pointer; transition: color 0.2s; }
.close-modal:hover { color: #333; }

.feature-box {
    background: white; padding: 2rem; text-align: center; border-radius: 8px; 
    transition: all 0.3s ease; border: 1px solid #e5e7eb; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

/* Glowing Animation */
@keyframes glowing {
    0% { box-shadow: 0 0 5px rgba(165, 180, 252, 0.4), 0 0 10px rgba(165, 180, 252, 0.2); border-color: #a5b4fc; }
    50% { box-shadow: 0 0 10px rgba(165, 180, 252, 0.8), 0 0 20px rgba(165, 180, 252, 0.4); border-color: #a5b4fc; }
    100% { box-shadow: 0 0 5px rgba(165, 180, 252, 0.4), 0 0 10px rgba(165, 180, 252, 0.2); border-color: #a5b4fc; }
}

.feature-box:hover { transform: translateY(-5px); animation: glowing 1.5s infinite alternate ease-in-out; border-color: #a5b4fc; }
.feature-img { height: 5rem; width: auto; margin-bottom: 1rem; }
.feature-title { font-size: 1.5rem; font-weight: 600; color: #111827; margin-bottom: 0.75rem; }
.feature-desc { font-size: 0.95rem; color: #4b5563; line-height: 1.5; }

#hero-section {
    height: 500px; background-size: cover; background-position: center 60%; position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
    margin-bottom: 40px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 10; }
#hero-content { position: relative; z-index: 20; color: white; padding: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
@media (max-width: 768px) { #hero-section { height: 350px; } #hero-content h1 { font-size: 2.5rem; line-height: 1.2; } #hero-content p { font-size: 0.95rem; } }

#hero-news-banner {
    position: absolute; bottom: 0; left: 0; width: 100%; background-color: rgba(0, 30, 60, 0.95); 
    padding: 15px 0; display: flex; align-items: center; justify-content: center; color: white; z-index: 30; cursor: default;
}
#hero-news-banner button {
    background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: color 0.2s; padding: 0 15px;
}
#hero-news-banner button:hover:not(:disabled) { color: #ccc; }
#hero-news-banner button:disabled { color: #555; cursor: not-allowed; }


/* ==========================================================================
   5. PROFESSOR PAGE
   ========================================================================== */
.tag { display: inline-block; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 700; border-radius: 9999px; margin-right: 0.5rem; margin-bottom: 0.5rem; }


/* ==========================================================================
   6. MEMBERS PAGE (Responsive Tables)
   ========================================================================== */
.member-photo { width: 128px; height: 128px; object-fit: cover; border-radius: 50%; border: 3px solid #1976d2; margin-bottom: 0.5rem; }

/* Member Card Styles */
.member-card { 
    background-color: #ffffff; 
    border-radius: 8px; 
    box-shadow: 0 1px 4px rgba(0,0,0,0.05); 
    padding: 1.5rem; 
    text-align: center; 
    transition: all 0.3s ease; 
    border: 1px solid transparent; 
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Added glowing animation to member cards on hover */
.member-card:hover { 
    transform: translateY(-5px); 
    animation: glowing 1.5s infinite alternate ease-in-out; 
    border-color: #a5b4fc; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.alumni-table table { width: 100%; border-collapse: collapse; }
.alumni-table th, .alumni-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid #e5e7eb; font-size: 0.95rem; vertical-align: top; }
.alumni-table th { background-color: #f3f4f6; font-weight: 700; color: #374151; }
@media (max-width: 768px) {
    .alumni-table table, .alumni-table thead, .alumni-table tbody, .alumni-table th, .alumni-table td, .alumni-table tr { display: block; width: 100%; }
    .alumni-table thead tr { position: absolute; top: -9999px; left: -9999px; }
    .alumni-table tr { margin-bottom: 1.5rem; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .alumni-table td { border: none; position: relative; padding-left: 0; text-align: left; word-wrap: break-word; padding-bottom: 8px; }
    .alumni-table td:before { content: attr(data-label); font-weight: bold; color: #1976d2; display: block; margin-bottom: 4px; font-size: 0.85rem; }
}

/* ==========================================================================
   7. PROJECTS PAGE
   ========================================================================== */
.sub-project-card { padding: 15px; margin-bottom: 12px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); background-color: #fcfcfd; border-left: 4px solid #1976d2; height: 100%; }
.sub-project-card img { margin-top: 10px; margin-bottom: 10px; }

/* ==========================================================================
   8. DATASETS PAGE
   ========================================================================== */
.dataset-grid-img { width: 100%; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* ==========================================================================
   9. NEWS PAGE
   ========================================================================== */
.archive-header { display: flex; flex-wrap: wrap; align-items: center; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 2px solid #1976d2; }
.archive-tabs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.archive-tabs button { padding: 6px 12px; border-radius: 9999px; font-weight: 600; transition: all 0.2s; background-color: #f3f4f6; color: #4b5563; font-size: 0.9rem; }
.archive-tabs button.active { background-color: #1976d2; color: white; box-shadow: 0 2px 5px rgba(25, 118, 210, 0.5); }
.archive-item { display: flex; align-items: flex-start; margin-bottom: 15px; padding: 15px 0; border-bottom: 1px solid #f3f4f6; }
.archive-icon { font-size: 1.5rem; color: #1976d2; margin-right: 15px; line-height: 1; flex-shrink: 0; }
.archive-item-content strong { color: #1976d2; }
.archive-item-content a { color: #1976d2; font-weight: bold; text-decoration: underline; word-break: break-word; }
.pagination-controls button, .pagination button { padding: 8px 16px; border: 1px solid #ddd; border-radius: 4px; margin: 0 4px; background-color: white; font-weight: 500; transition: background-color 0.2s; }
.pagination-controls button:hover:not(:disabled) { background-color: #e3f2fd; }
.pagination-controls button:disabled { opacity: 0.6; cursor: not-allowed; background-color: #f8f9fa; }

/* FIX: New Scrollable Container Style */
.news-scroll-wrapper {
    height: 600px; /* Fixed height creates a stable frame */
    overflow-y: auto; /* Enables internal scrolling */
    padding-right: 10px; /* Space for scrollbar */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    
    /* Modern Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.news-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
}
.news-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.news-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
    border: 2px solid #f1f5f9;
}
.news-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* ==========================================================================
   10. PUBLICATIONS PAGE
   ========================================================================== */
.publication-page-title { color: #1976d2; font-weight: bold; font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
@media (max-width: 640px) { .publication-page-title { font-size: 1.8rem; margin-bottom: 1.5rem; } }
.publication-item { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid #e5e7eb; }
@media (min-width: 768px) { .publication-item { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: flex-start; gap: 2rem; } .publication-details { width: 60%; } .publication-img-container { width: 40%; display: flex; justify-content: center; align-items: flex-start; } }
#publications-content table { border-collapse: collapse; width: 100%; border: none; }
#publications-content thead th { text-align: left; padding: 0 0 4px 0; line-height: 1.2; border-bottom: none; }
#publications-content tbody td { padding: 0; word-break: break-word; }
#publications-content small { font-size: 0.95em; line-height: 1.5; display: block; }
.publication-img-wrapper { position: relative; cursor: zoom-in; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; max-width: 100%; display: inline-block; background-color: #e5e7eb; min-height: 150px; min-width: 200px; }
.publication-img-wrapper:hover { transform: scale(1.02); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.publication-img-wrapper::after { content: '\f00e'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 2rem; opacity: 0; transition: opacity 0.2s ease; text-shadow: 0 2px 4px rgba(0,0,0,0.5); pointer-events: none; }
.publication-img-wrapper:hover::after { opacity: 1; }
.publication-img-wrapper::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.2); opacity: 0; transition: opacity 0.2s ease; }
.publication-img-wrapper::before { opacity: 1; }
.publication-img { max-height: 250px; width: auto; max-width: 100%; object-fit: contain; display: block; }
#lightbox-modal { transition: opacity 0.3s ease; backdrop-filter: blur(5px); }
#lightbox-modal.hidden { display: none; opacity: 0; pointer-events: none; }
#lightbox-modal:not(.hidden) { display: flex; opacity: 1; pointer-events: auto; }
.lightbox-close-btn { position: absolute; top: 20px; right: 30px; color: white; font-size: 3rem; cursor: pointer; transition: transform 0.2s; z-index: 60; line-height: 1; }
.lightbox-close-btn:hover { transform: scale(1.1); color: #ef4444; }
.controls-container { 
    position: sticky; 
    top: 80px; /* UPDATED: Matches the new h-20 (80px) navbar height */
    background: rgba(248, 249, 250, 0.95); 
    backdrop-filter: blur(8px); 
    z-index: 40; 
    padding: 1rem 0; 
    margin-bottom: 2rem; 
    border-bottom: 1px solid #e5e7eb; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
}
.search-wrapper { 
    max-width: 500px; 
    width: 90%; /* UPDATED: Prevents edge-touching on mobile */
    margin: 0 auto 1rem auto; 
    position: relative; 
}
.search-input { width: 100%; padding: 10px 16px 10px 40px; border-radius: 9999px; border: 1px solid #d1d5db; outline: none; transition: all 0.2s; font-size: 0.95rem; }
.search-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; }

/* Pagination Desktop Styles */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

/* UPDATED: Mobile Pagination Improvements */
@media (max-width: 640px) {
    .pagination {
        flex-wrap: nowrap; /* Stop wrapping on mobile */
        overflow-x: auto; /* Enable horizontal scrolling */
        justify-content: flex-start; /* Align left for scrolling */
        /* Increased side padding to 16px so first/last items aren't cut off */
        padding: 4px 16px 12px 16px; 
        gap: 10px; 
        /* Hide Scrollbar for cleaner look */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .pagination::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .pagination button {
        flex: 0 0 auto; /* Prevent buttons from shrinking */
        white-space: nowrap;
    }
}

.pagination button { background-color: white; border: 1px solid #e2e8f0; color: #475569; padding: 8px 16px; border-radius: 9999px; font-weight: 600; font-size: 0.9rem; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.pagination button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); border-color: #3b82f6; color: #3b82f6; }

/* UPDATED: Added !important to color white to ensure visibility against blue bg */
.pagination button.active { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); color: white !important; border-color: transparent; box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5); }

.pagination button:disabled { background-color: #f1f5f9; color: #94a3b8; border-color: #cbd5e1; cursor: not-allowed; box-shadow: none; }
.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 3rem; padding: 0 1rem; }
.research-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; color: #334155; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.research-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: #3b82f6; color: #1d4ed8; }
.research-btn i { font-size: 1.2rem; color: #3b82f6; }
.abstract-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 0.85em; color: #007bff; margin-top: 8px; padding: 4px 8px; background-color: rgba(0, 123, 255, 0.05); border-radius: 4px; transition: background 0.2s; }
.abstract-toggle:hover { background-color: rgba(0, 123, 255, 0.1); }
.abstract-content { display: none; padding: 12px; border-left: 3px solid #007bff; background-color: #f8fbff; margin-top: 8px; border-radius: 0 4px 4px 0; animation: slideDown 0.3s ease; }
.abstract-content.open { display: block; }
.year-section { display: none; margin-top: 20px; animation: fadeIn 0.5s ease; }
.year-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.spinner { border: 4px solid rgba(0, 0, 0, 0.1); width: 36px; height: 36px; border-radius: 50%; border-left-color: #3b82f6; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* ==========================================================================
   11. HEROFACE RESTORATION PAGE
   ========================================================================== */
.restoration-header { color: #1976d2; margin-top: 2rem; margin-bottom: 20px; border-bottom: 2px solid #1976d2; padding-bottom: 10px; font-size: 1.8rem; font-weight: bold; }
@media (max-width: 640px) { .restoration-header { font-size: 1.5rem; } }
.method-card { background-color: #E6F3FF; border-radius: 16px; margin-bottom: 1rem; padding: 1.5rem; text-align: center; }
.media-link-item { display: flex; align-items: flex-start; margin-bottom: 10px; }
.media-link-item::before { content: "•"; color: #1976d2; font-weight: bold; display: inline-block; min-width: 1.5rem; padding-right: 0.5rem; text-align: right; }

/* UPDATED: Added min-width: 0 to allow text wrapping in flex container */
.media-content { flex-grow: 1; min-width: 0; }
.media-content a { word-break: break-all; }

.video-responsive { overflow: hidden; padding-bottom: 56.25%; position: relative; height: 0; max-width: 100%; border-radius: 8px; }
.video-responsive iframe { left: 0; top: 0; height: 100%; width: 100%; position: absolute; border: 0; }
img.clickable-image { cursor: pointer; transition: transform 0.2s ease-in-out; }
img.clickable-image:hover { transform: scale(1.02); }
#image-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); display: none; justify-content: center; align-items: center; z-index: 9999; }
#modal-content { position: relative; max-width: 90%; max-height: 90%; text-align: center; }
#modal-img { max-width: 100%; max-height: 100vh; display: block; margin: auto; border-radius: 8px; box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
.close-btn { position: absolute; top: 10px; right: 10px; color: #fff; font-size: 2rem; font-weight: bold; cursor: pointer; z-index: 10000; opacity: 0.8; padding: 5px 15px; background: rgba(0,0,0,0.5); border-radius: 50%; line-height: 1; }
.close-btn:hover { opacity: 1; }