/* ============================================
   GALLERY PAGE - TRADITIONAL MAROON & GOLD THEME
   Elegant, Traditional South Indian Wedding Style
   ============================================ */

/* CSS Variables */
:root {
    --gl-maroon: #4a1516;
    --gl-dark-maroon: #2d0c0d;
    --gl-brown: #3d2422;
    --gl-deep: #1f0e0e;
    --gl-cream: #f5e6d3;
    --gl-gold: #c9973d;
    --gl-gold-light: #d4a84b;
    --gl-gold-dark: #a67c2e;
    --gl-beige: #e8dcc8;
    --gl-white: #fffbf5;
}

/* Body styling - Clean cream background */
body.gallery-page {
    background: var(--gl-cream);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Hide all mandala decorations */
.mandala-rotate-1,
.mandala-rotate-2,
.mandala-corner-tl,
.mandala-corner-br {
    display: none !important;
}

/* ============================================
   HEADER WITH NAVIGATION
   ============================================ */
.gallery-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 10px 0;
    transition: all 0.3s ease;
}

/* Scrolled state - add background */
.gallery-header.scrolled {
    background: linear-gradient(180deg, 
        rgba(45, 12, 13, 0.98) 0%, 
        rgba(74, 21, 22, 0.95) 100%);
    box-shadow: 0 4px 30px rgba(45, 12, 13, 0.4);
    backdrop-filter: blur(10px);
}

.gallery-header.scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--gl-gold) 50%,
        transparent 100%);
}

.gallery-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
}

.nav-logo a {
    display: block;
}

.nav-logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.gallery-header .nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-header .nav-menu li a {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gl-cream);
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.gallery-header .nav-menu li a:hover {
    color: var(--gl-gold);
    background: rgba(255, 255, 255, 0.1);
}

.gallery-header .nav-menu li a.active {
    color: var(--gl-gold);
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid var(--gl-gold);
}

/* ============================================
   DROPDOWN MENU - Avanti's World
   ============================================ */
.gallery-header .nav-dropdown {
    position: relative;
}

.gallery-header .nav-dropdown .dropdown-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.gallery-header .nav-dropdown .dropdown-arrow {
    margin-top: 4px;
    transition: transform 0.3s ease;
}

.gallery-header .nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.gallery-header .nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    background: linear-gradient(180deg, 
        rgba(45, 12, 13, 0.98) 0%, 
        rgba(74, 21, 22, 0.98) 100%);
    border: 1px solid rgba(201, 151, 61, 0.3);
    border-radius: 12px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.gallery-header .nav-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gl-gold), 
        transparent);
    border-radius: 2px;
}

.gallery-header .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.gallery-header .nav-dropdown .dropdown-menu li {
    margin: 0;
}

.gallery-header .nav-dropdown .dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gl-cream);
    text-decoration: none;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-header .nav-dropdown .dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--gl-gold);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-header .nav-dropdown .dropdown-menu li a:hover {
    background: rgba(201, 151, 61, 0.15);
    color: var(--gl-gold);
    padding-left: 30px;
}

.gallery-header .nav-dropdown .dropdown-menu li a:hover::before {
    opacity: 1;
}

.gallery-header .nav-dropdown .dropdown-menu li:not(:last-child)::after {
    content: '';
    display: block;
    margin: 0 15px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(201, 151, 61, 0.2), 
        transparent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gl-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION - CURVED BOTTOM WITH DARK BG
   ============================================ */
.gallery-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    background: url('img/home4.jpg') center/cover no-repeat;
    border-radius: 0 0 50% 50% / 0 0 80px 80px;
    overflow: hidden;
}

/* Dark overlay on hero */
.gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(45, 12, 13, 0.85) 0%,
        rgba(45, 12, 13, 0.75) 50%,
        rgba(45, 12, 13, 0.9) 100%);
    z-index: 1;
}

/* Decorative pattern overlay */
.gallery-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 151, 61, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(201, 151, 61, 0.08) 0%, transparent 30%);
    z-index: 2;
    pointer-events: none;
}

.gallery-hero .hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 80px 40px 60px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gl-gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title-tamil {
    font-family: 'Noto Serif Tamil', serif;
    font-size: 1.4rem;
    color: var(--gl-cream);
    margin-bottom: 25px;
    font-weight: 500;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: rgba(245, 230, 211, 0.9);
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.5s forwards;
}

.mandala-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px auto 25px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

.divider-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--gl-gold) 50%, 
        transparent 100%);
}

.divider-mandala {
    width: 45px;
    height: 45px;
    background: url('img/m-bg-1.png') center/contain no-repeat;
    filter: brightness(1.8);
    animation: rotateMandala 20s linear infinite;
}

@keyframes rotateMandala {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   GALLERY MAIN SECTION
   ============================================ */
.gallery-main {
    position: relative;
    z-index: 10;
    padding: 50px 60px 80px;
    max-width: 1500px;
    margin: 0 auto;
    background: var(--gl-cream);
}

/* ============================================
   CATEGORY FILTERS
   ============================================ */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 30px;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 60px;
    border: 1px solid rgba(74, 21, 22, 0.1);
    box-shadow: 0 5px 25px rgba(74, 21, 22, 0.08);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: 2px solid rgba(74, 21, 22, 0.2);
    border-radius: 50px;
    background: transparent;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gl-maroon);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn .tamil-label {
    display: none;
    font-family: 'Noto Serif Tamil', serif;
    font-size: 0.7rem;
    opacity: 0.8;
}

.filter-btn:hover {
    background: rgba(74, 21, 22, 0.08);
    border-color: var(--gl-maroon);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gl-maroon), var(--gl-dark-maroon));
    color: var(--gl-cream);
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(74, 21, 22, 0.3);
}

.filter-btn.active svg {
    color: var(--gl-gold);
}

.filter-btn svg {
    transition: transform 0.3s ease;
    color: var(--gl-maroon);
}

.filter-btn:hover svg {
    transform: scale(1.1);
}

/* ============================================
   GALLERY GRID - MASONRY STYLE
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-rows: 280px;
}

/* Size variations */
.gallery-item[data-size="large"] {
    grid-row: span 2;
}

.gallery-item[data-size="wide"] {
    grid-column: span 2;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(74, 21, 22, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.gallery-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Traditional top border on hover */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--gl-maroon) 0%,
        var(--gl-gold) 50%,
        var(--gl-maroon) 100%);
    opacity: 0;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(74, 21, 22, 0.25),
        0 0 0 3px rgba(201, 151, 61, 0.5);
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Gallery Image */
.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.15);
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 30%, 
        rgba(45, 12, 13, 0.7) 70%,
        rgba(45, 12, 13, 0.95) 100%);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(180deg, 
        rgba(74, 21, 22, 0.2) 0%, 
        rgba(45, 12, 13, 0.85) 70%,
        rgba(45, 12, 13, 0.98) 100%);
}

/* Gallery Info */
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    transform: translateY(20px);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item:hover .gallery-info::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gl-gold);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.gallery-info .info-tamil {
    font-family: 'Noto Serif Tamil', serif;
    font-size: 0.85rem;
    color: var(--gl-cream);
    opacity: 0.85;
    margin-bottom: 15px;
}

/* Hide the view button */
.view-btn {
    display: none;
}

/* Traditional decorative corner effect on hover */
.gallery-image::before,
.gallery-image::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--gl-gold);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 5;
}

.gallery-image::before {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    transform: translate(-10px, -10px);
}

.gallery-image::after {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    transform: translate(10px, 10px);
}

.gallery-item:hover .gallery-image::before,
.gallery-item:hover .gallery-image::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* Add "View" text indicator */
.gallery-info::after {
    content: 'Click to View';
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    color: var(--gl-gold);
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.gallery-empty {
    text-align: center;
    padding: 80px 40px;
}

.empty-icon {
    margin-bottom: 25px;
}

.empty-icon svg {
    color: var(--gl-gold);
    opacity: 0.5;
}

.gallery-empty h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gl-cream);
    margin-bottom: 10px;
}

.gallery-empty p {
    font-family: 'Noto Serif Tamil', serif;
    font-size: 1.1rem;
    color: var(--gl-cream);
    opacity: 0.7;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 5, 5, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(201, 151, 61, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close svg {
    color: var(--gl-cream);
}

.lightbox-close:hover {
    background: var(--gl-gold);
    border-color: var(--gl-gold);
    transform: rotate(90deg);
}

.lightbox-close:hover svg {
    color: var(--gl-dark-maroon);
}

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(201, 151, 61, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav svg {
    color: var(--gl-cream);
}

.lightbox-nav:hover {
    background: var(--gl-gold);
    border-color: var(--gl-gold);
}

.lightbox-nav:hover svg {
    color: var(--gl-dark-maroon);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Lightbox Content */
.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
    opacity: 1;
}

.lightbox-info {
    text-align: center;
    margin-top: 25px;
}

.lightbox-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gl-gold);
    margin-bottom: 8px;
}

.lightbox-subtitle {
    font-family: 'Noto Serif Tamil', serif;
    font-size: 1rem;
    color: var(--gl-cream);
    opacity: 0.8;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gl-cream);
    opacity: 0.7;
    letter-spacing: 2px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.gallery-cta {
    position: relative;
    z-index: 10;
    padding: 100px 40px;
    text-align: center;
    background: linear-gradient(135deg, 
        var(--gl-maroon) 0%, 
        var(--gl-dark-maroon) 100%);
    border-radius: 50% 50% 0 0 / 80px 80px 0 0;
    margin-top: 60px;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--gl-gold) 50%,
        transparent 100%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gl-gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.cta-tamil {
    font-family: 'Noto Serif Tamil', serif;
    font-size: 1.2rem;
    color: var(--gl-cream);
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: var(--gl-cream);
    opacity: 0.8;
    margin-bottom: 35px;
    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--gl-gold), var(--gl-gold-dark));
    color: var(--gl-dark-maroon);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 35px rgba(201, 151, 61, 0.4);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 50px rgba(201, 151, 61, 0.5),
        0 0 30px rgba(201, 151, 61, 0.3);
}

.cta-btn svg {
    transition: transform 0.3s ease;
}

.cta-btn:hover svg {
    transform: translateX(5px);
}

/* ============================================
   FOOTER
   ============================================ */
.gallery-footer {
    background: linear-gradient(180deg, 
        var(--gl-dark-maroon) 0%, 
        #1a0a0a 100%);
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 200;
}

.gallery-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--gl-gold) 50%,
        transparent 100%);
}

.footer-content p {
    font-family: 'Lato', sans-serif;
    color: var(--gl-cream);
    opacity: 0.7;
    margin: 5px 0;
    font-size: 0.9rem;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
body.gallery-page .whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

body.gallery-page .whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

body.gallery-page .whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .gallery-nav {
        padding: 10px 30px;
    }

    .gallery-header .nav-menu {
        gap: 12px;
    }

    .gallery-header .nav-menu li a {
        font-size: 0.7rem;
        padding: 8px 10px;
    }

    .gallery-main {
        padding: 40px 40px 60px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        grid-auto-rows: 250px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .gallery-hero {
        min-height: 380px;
        border-radius: 0 0 50% 50% / 0 0 60px 60px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .gallery-header .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, 
            var(--gl-dark-maroon) 0%, 
            var(--gl-maroon) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .gallery-header .nav-menu.active {
        right: 0;
    }

    .gallery-header .nav-menu li a {
        font-size: 1rem;
        padding: 15px 25px;
        text-shadow: none;
    }

    /* Mobile Dropdown Styles */
    .gallery-header .nav-dropdown .dropdown-toggle {
        flex-direction: row;
        gap: 8px;
    }

    .gallery-header .nav-dropdown .dropdown-arrow {
        margin-top: 0;
    }

    .gallery-header .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 8px;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        padding: 0;
        box-shadow: none;
    }

    .gallery-header .nav-dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 10px 0;
    }

    .gallery-header .nav-dropdown .dropdown-menu::before {
        display: none;
    }

    .gallery-header .nav-dropdown .dropdown-menu li a {
        padding: 10px 20px;
        font-size: 0.9rem;
        text-align: center;
    }

    .gallery-header .nav-dropdown .dropdown-menu li a:hover {
        padding-left: 20px;
    }

    .nav-logo img {
        height: 45px;
    }

    .gallery-hero {
        min-height: 320px;
        border-radius: 0 0 50% 50% / 0 0 50px 50px;
    }
    
    .gallery-hero .hero-content {
        padding: 70px 25px 50px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .hero-title-tamil {
        font-size: 1rem;
    }

    .gallery-main {
        padding: 30px 20px 50px;
    }

    .gallery-filters {
        padding: 15px 20px;
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }

    .filter-btn span:not(.tamil-label) {
        display: none;
    }

    .filter-btn.active span:not(.tamil-label) {
        display: inline;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        grid-auto-rows: 200px;
    }

    .gallery-item[data-size="large"] {
        grid-row: span 1;
    }

    .gallery-item[data-size="wide"] {
        grid-column: span 1;
    }

    .gallery-info {
        padding: 15px;
    }

    .gallery-info h3 {
        font-size: 1rem;
    }

    .gallery-info .info-tamil {
        font-size: 0.75rem;
    }

    .view-btn {
        width: 50px;
        height: 50px;
    }

    .view-btn svg {
        width: 22px;
        height: 22px;
    }

    /* Lightbox Mobile */
    .lightbox-nav {
        width: 45px;
        height: 45px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .lightbox-title {
        font-size: 1.2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .gallery-cta {
        padding: 70px 20px 50px;
        border-radius: 50% 50% 0 0 / 50px 50px 0 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .hero-title {
        font-size: 1.6rem;
    }
    
    .gallery-hero {
        min-height: 280px;
        border-radius: 0 0 50% 50% / 0 0 40px 40px;
    }

    .filter-btn svg {
        width: 16px;
        height: 16px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-btn {
        padding: 14px 30px;
        font-size: 0.9rem;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
body.gallery-page::-webkit-scrollbar {
    width: 10px;
}

body.gallery-page::-webkit-scrollbar-track {
    background: var(--gl-dark-maroon);
}

body.gallery-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        var(--gl-gold), 
        var(--gl-gold-dark));
    border-radius: 5px;
}

body.gallery-page::-webkit-scrollbar-thumb:hover {
    background: var(--gl-gold);
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading state */
.gallery-item.loading .gallery-image {
    background: linear-gradient(90deg, 
        var(--gl-maroon) 0%, 
        var(--gl-dark-maroon) 50%, 
        var(--gl-maroon) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Filter transition */
.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}

