/* 🌟 General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #F2F4F3;
    color: #22333B;
    line-height: 1.6;
}

/* 🌟 Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 🌟 Header */
header {
    background: #0A0908;
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header h1 {
    color: #A9927D;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #F2F4F3;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: 0.3s ease-in-out;
}

nav ul li a:hover {
    background: #A9927D;
    color: #0A0908;
    border-radius: 5px;
}


/* 🌟 Mobile Menu Styles */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2em;
    color: #A9927D;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* 📱 Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* Show on mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #0A0908;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 10px;
    }

    .nav-links a {
        color: #F2F4F3;
        font-size: 1.2em;
        display: block;
        padding: 10px 0;
    }

    .nav-links a:hover {
        background: #A9927D;
        color: #0A0908;
        border-radius: 5px;
    }
}

/* 🌟 Gallery Intro (Consistent with Other Pages) */
.gallery-intro {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(10, 9, 8, 0.7), rgba(10, 9, 8, 0.7)), url('images/hero-gallery.jpg') center/cover;
    color: #F2F4F3;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* Improves readability */
}

.gallery-intro h2 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 15px;
}

.gallery-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2em;
    font-weight: 500;
}

/* 🌟 Gallery Section */
.gallery-category {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.gallery-category h3 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* 🌟 3D Gallery Grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    perspective: 1000px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
}

.gallery-item:hover img {
    transform: rotateY(15deg) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 🌟 Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 80%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Close & Navigation Buttons */
.close-btn, .prev-btn, .next-btn {
    position: absolute;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.close-btn {
    top: 20px;
    right: 30px;
}

.prev-btn, .next-btn {
    top: 50%;
    transform: translateY(-50%);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.prev-btn:hover, .next-btn:hover, .close-btn:hover {
    color: #A9927D;
}

/* 🌟 3D Carousel */
.gallery-carousel {
    display: flex;
    justify-content: center;
    perspective: 1000px;
    margin: 40px auto;
    position: relative;
    width: 350px;
    height: 350px;
}

.gallery-carousel .gallery-item {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    transform-origin: center;
    opacity: 0.9;
}

.gallery-carousel img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

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

/* 🌟 Rotation Controls */
.gallery-controls {
    text-align: center;
    margin-top: 20px;
}

.next-btn,
.prev-btn {
    background: #A9927D;
    color: #0A0908;
    font-size: 1.5rem;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.next-btn:hover,
.prev-btn:hover {
    background: #5E503F;
    color: white;
}

/* 🌟 Footer */
footer {
    background: #0A0908;
    color: #F2F4F3;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* 🌟 Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .prev-btn, .next-btn {
        font-size: 1.5rem;
        padding: 8px 15px;
    }
}