/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.gallery-header {
    background-color: #1a1a1a;
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.gallery-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    margin-bottom: 2rem;
}

.nav-left a {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-right {
    display: flex;
    gap: 1.5rem;
}

.nav-right a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #ccc;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-right a:hover {
    color: white;
}

.nav-right a.active {
    color: white;
    font-weight: 500;
    border-bottom: 2px solid #e63946;
}

.header-content {
    text-align: center;
    padding: 0 5%;
}

.header-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0;
    font-weight: 700;
}

.header-content .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: #ccc;
}

/* Main Gallery Layout */
.gallery-container {
    display: flex;
    min-height: calc(100vh - 300px);
}

.thumbnail-sidebar {
    width: 35%;
    background-color: #2a2a2a;
    padding: 2rem;
    overflow-y: auto;
}

.main-display {
    width: 65%;
    background-color: #f5f5f5;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.display-content {
    max-width: 800px;
    width: 100%;
}

/* Thumbnail Grid */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1;
    transition: transform 0.3s;
}

.thumbnail-item:hover {
    transform: scale(1.03);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.thumbnail-item:hover img {
    opacity: 0.7;
}

.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.thumbnail-item:hover .thumbnail-overlay {
    transform: translateY(0);
}

/* Large Image Display */
.large-image-container {
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.large-image-container img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.image-details {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-top: 0;
    color: #1a1a1a;
}

.image-details p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    color: #e63946;
}

/* Footer */
.gallery-footer {
    background-color: #1a1a1a;
    color: white;
    padding: 2rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.back-home a {
    color: #e63946;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.gallery-footer p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

/* Sanskrit Glyph Animation */
.sanskrit-glyph {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    animation: floatUp 1.5s forwards;
    opacity: 0.8;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) rotate(10deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-container {
        flex-direction: column;
    }
    
    .thumbnail-sidebar, .main-display {
        width: 100%;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-right {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content .subtitle {
        font-size: 1rem;
    }
}