@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #FFD700;
    --secondary-color: #1a1a1a;
    --dark-bg: #111111;
    --text-light: #e0e0e0;
    --gradient-1: linear-gradient(45deg, #FFD700, #FFA500);
    --gradient-2: linear-gradient(to right, rgba(255,215,0,0.2), rgba(255,215,0,0));
}

/* Hero Section */
.gallery-hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1);
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.text-wrapper {
    position: relative;
    padding: 3rem;
}

.text-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--primary-color);
}

.hero-content h1 {
    font-family: 'Michroma',sans-serif;
    font-size: 5.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.4);
}

.hero-content p {
    font-size: 2rem;
    color: var(--text-light);
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards 0.8s;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 4px;
        padding: 0 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .text-wrapper {
        padding: 1.5rem;
    }

    .text-wrapper::before {
        width: 60px;
    }

    /* Filter Section */
    .gallery-filter {
        padding: 20px 15px;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .filter-btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
        font-size: 0.9rem;
        justify-content: center;
    }

    /* Gallery Grid */
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .gallery-item img {
        height: 250px;
    }

    /* Navigation */
    .gallery-navigation {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    /* Section Styles */
    .gallery-section {
        padding: 20px;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
        padding: 15px;
    }

    .section-description {
        font-size: 0.9rem;
        padding: 12px;
        margin-bottom: 20px;
    }

    .image-counter {
        font-size: 0.9rem;
        padding: 4px 12px;
    }

    /* Lightbox Customization */
    .lb-nav a {
        width: 40px !important;
        height: 40px !important;
    }

    .lb-nav a.lb-prev::after,
    .lb-nav a.lb-next::after {
        width: 12px;
        height: 12px;
        border-width: 0 3px 3px 0;
    }
}

/* تحسينات إضافية للشاشات الأصغر */
@media (max-width: 480px) {
    .gallery-hero {
        height: 40vh;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.85rem;
    }

    .nav-button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .gallery-item:hover {
        transform: scale(1.02);
    }
}

/* Filter Section */
.gallery-filter {
    padding: 30px 0;
    background: var(--dark-bg);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: var(--secondary-color);
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Michroma',sans-serif;
    text-transform: uppercase;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 1.1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    padding: 50px 0;
    background: var(--dark-bg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #111;
    display: block;
}

/* تخصيص Lightbox */
.lb-nav {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.lb-nav a {
    width: 80px !important;
    height: 80px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50%;
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
}

.lb-nav a:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.lb-nav a.lb-prev {
    left: 30px !important;
}

.lb-nav a.lb-next {
    right: 30px !important;
}

/* إضافة الأسهم */
.lb-nav a.lb-prev::after,
.lb-nav a.lb-next::after {
    content: '';
    width: 20px;
    height: 20px;
    border: solid var(--primary-color);
    border-width: 0 4px 4px 0;
    display: inline-block;
    position: absolute;
}

.lb-nav a.lb-prev::after {
    transform: rotate(135deg);
    left: 32px;
}

.lb-nav a.lb-next::after {
    transform: rotate(-45deg);
    right: 32px;
}

/* ت��سين ظهور الأزرار على الهواتف */
@media (max-width: 768px) {
    .lb-nav a {
        width: 60px !important;
        height: 60px !important;
    }

    .lb-nav a.lb-prev {
        left: 10px !important;
    }

    .lb-nav a.lb-next {
        right: 10px !important;
    }

    .lb-nav a.lb-prev::after,
    .lb-nav a.lb-next::after {
        width: 15px;
        height: 15px;
    }

    .lb-nav a.lb-prev::after {
        left: 25px;
    }

    .lb-nav a.lb-next::after {
        right: 25px;
    }
}

.lb-data .lb-close {
    font-size: 30px;
    color: var(--primary-color);
}

.lb-outerContainer {
    background: var(--dark-bg);
}

.lb-dataContainer {
    background: var(--dark-bg);
}

/* تحسين حجم الصورة في Lightbox */
.lb-outerContainer {
    max-width: 90vw !important;
    max-height: 90vh !important;
}

.lb-image {
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 80%;
        justify-content: center;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* تحسين تخطيط الشبكة */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 576px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* إضافة تأثير التحميل */
.grid {
    animation: fadeIn 0.5s ease-in forwards;
}

/* تحسين الـ container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation Styles */
.gallery-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px;
}

.nav-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 25px;
    color: var(--dark-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Michroma',sans-serif;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.category-label {
    color: var(--primary-color);
    font-family: 'Michroma',sans-serif;
    font-size: 1.2rem;
}

/* Animation Classes */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item.current {
    box-shadow: 0 0 20px var(--primary-color);
}

/* Lightbox Customization */
.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

.lb-data .lb-number {
    color: var(--primary-color);
    font-family: 'Michroma',sans-serif;
}

/* تنسيق الأقسام */
.gallery-section {
    position: relative;
    margin-bottom: 60px;
    padding: 30px;
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.section-title {
    font-family: 'Michroma',sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 3px solid;
    border-image: var(--gradient-1) 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    font-size: 1.8rem;
}

/* إضافة عداد الصور */
.image-counter {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 2;
}

/* تحسين عرض الصور */
.gallery-section {
    position: relative;
    margin-bottom: 60px;
    padding: 30px;
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.section-description {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0 0 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 15px 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.section-description:hover {
    transform: translateX(10px);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* تنسيق النصوص المميزة */
.highlight {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    padding: 0 5px;
}

.highlight-secondary {
    color: #FFA500;
    font-weight: 600;
    font-style: italic;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
    padding: 0 3px;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.1rem;
        padding: 15px;
        margin-bottom: 20px;
    }

    .highlight {
        font-size: 1.2rem;
    }
}

/* تأثيرات إضافية */
.section-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 0 15px 15px 0;
}

.section-description:hover::before {
    opacity: 1;
}

/* تحسين أزرار التنقل */
.section-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-button {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 25px;
    background: var(--gradient-1);
    border: none;
    border-radius: 25px;
    color: var(--dark-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

/* تحسين Lightbox */
.lb-data .lb-caption {
    font-family: 'Michroma',sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.lb-data .lb-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .nav-button {
        font-size: 1rem;
        padding: 8px 20px;
    }
}

/* Media Queries - تحسينات متناسقة */
/* Large Screens (1400px and up) */
@media screen and (min-width: 1400px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 6rem;
    }
}

/* Desktop (1200px to 1399px) */
@media screen and (max-width: 1399px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .hero-content h1 {
        font-size: 5rem;
    }
}

/* Tablets and Small Laptops (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .gallery-item img {
        height: 250px;
    }
}

/* Tablets (768px to 991px) */
@media screen and (max-width: 991px) {
    .gallery-hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .filter-buttons {
        padding: 0 15px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Mobile (767px and down) */
@media screen and (max-width: 767px) {
    .gallery-hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item img {
        height: 200px;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Small Mobile (480px and down) */
@media screen and (max-width: 480px) {
    .gallery-hero {
        height: 40vh;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .gallery-item img {
        height: 180px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Gallery Item Info Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--dark-bg);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #111;
    transition: transform 0.4s ease;
    border-radius: 12px 12px 0 0;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-info {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(17, 17, 17, 0.95));
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary-color);
}

.gallery-item-title {
    font-family: 'Michroma',sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFD700 !important;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    background: none !important;
    width: 100%;
    display: block;
    overflow: visible;
    white-space: normal;
    padding: 0;
}

.gallery-item-description {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-description {
    opacity: 1;
}

/* Responsive adjustments for gallery item info */
@media (max-width: 768px) {
    .gallery-item-info {
        padding: 1rem;
    }
    
    .gallery-item-title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .gallery-item-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-item-info {
        padding: 0.8rem;
    }

    .gallery-item-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .gallery-item-description {
        font-size: 0.85rem;
    }
}

/* ==========================================
   Gallery Detail Modal
   ========================================== */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: galleryModalFadeIn 0.3s ease;
}

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

.gallery-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #1a1a1a, #111111);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    height: 85vh;
    overflow: hidden;
    animation: galleryModalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.08);
    display: flex;
    flex-direction: column;
}

@keyframes galleryModalSlideIn {
    from { transform: translate(-50%, -45%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

.gallery-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-modal .close-modal:hover {
    background: var(--primary-color);
    color: #111;
    transform: rotate(90deg);
}

.gallery-modal .modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Image takes all available space */
.gallery-modal .modal-image-section {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #0a0a0a;
}

.gallery-modal .modal-image-section img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Info pinned at bottom, never scrolls */
.gallery-modal .modal-info-section {
    flex-shrink: 0;
    padding: 18px 25px;
    width: 100%;
    border-top: 3px solid var(--primary-color);
    background: linear-gradient(145deg, #1a1a1a, #111111);
}

.gallery-modal .modal-info-section h2 {
    font-family: 'Michroma', sans-serif;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    text-align: center;
}

.gallery-modal .modal-details {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.gallery-modal .modal-details p {
    color: #e0e0e0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    flex: 1;
    margin: 0;
}

.gallery-modal .modal-details p i {
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.gallery-modal .modal-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(255, 215, 0, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    text-align: left;
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    max-height: 60px;
    overflow-y: auto;
}

.gallery-modal .modal-description:empty {
    display: none;
}

.gallery-modal .modal-description::-webkit-scrollbar {
    width: 4px;
}

.gallery-modal .modal-description::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

.gallery-modal .modal-description::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 2px;
}

/* Navigation arrows */
.gallery-modal .modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.gallery-modal .modal-nav:hover {
    background: var(--primary-color);
    color: #111;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.gallery-modal .modal-prev {
    left: 20px;
}

.gallery-modal .modal-next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-modal .modal-details {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .gallery-modal .modal-content {
        width: 95%;
        height: 90vh;
        border-radius: 15px;
    }

    .gallery-modal .modal-image-section {
        border-radius: 15px 15px 0 0;
    }

    .gallery-modal .modal-info-section {
        padding: 12px 15px;
    }

    .gallery-modal .modal-info-section h2 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .gallery-modal .modal-details p {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .gallery-modal .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-modal .modal-prev {
        left: 10px;
    }

    .gallery-modal .modal-next {
        right: 10px;
    }
}
  