/* Identical CSS from New Gallery */
.gallery-main {
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: bold;
    color: #D4AF37;
    margin-bottom: 20px;
}

.header p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.search-bar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-bar-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 600px;
    width: 100%;
}

.search-box {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(212, 175, 55, 0.2);
    color: #333;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.search-box::placeholder {
    color: rgba(51, 51, 51, 0.7);
}

.search-button {
    background: rgba(212, 175, 55, 0.9);
    color: black;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-button:hover {
    background: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.filters {
    margin-bottom: 30px;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.filter-group {
    position: relative;
    min-width: 150px;
}

.filter-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #D4AF37;
    font-weight: 500;
}

.filter-display:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.filter-display i {
    color: #D4AF37;
}

.selected-value {
    font-weight: bold;
    color: #2c2c2c;
}

.filter-group select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.gallery {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Enhanced Project Card Styling */
.project-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.4);
}

.image-carousel {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-image:hover {
    transform: scale(1.02);
}

.carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-arrow.prev {
    left: 15px;
}

.carousel-arrow.next {
    right: 15px;
}

.spec-item {
    text-align: center;
    padding: 12px 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.2);
}

.spec-item .font-semibold {
    font-size: 1.1rem;
    color: #2c2c2c;
}

.spec-icon {
    font-size: 1.5rem;
    color: #D4AF37;
    margin-bottom: 5px;
}

.collection-tag {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    color: #B8860B;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.premium-badge {
    background: rgba(107, 114, 128, 0.1);
    color: #4B5563;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.project-status {
    font-weight: 700;
    color: #D4AF37;
    font-size: 1.1rem;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Button Styling */
.black-button {
    background: linear-gradient(to bottom, #222, #000);
    border: 2px solid #d4af37;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.black-button:hover {
    background: linear-gradient(to bottom, #333, #111);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline:hover {
    background: #D4AF37;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.gold-button {
    background: linear-gradient(to bottom, #d4af37, #b8860b);
    border: 2px solid #d4af37;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gold-button:hover {
    background: linear-gradient(to bottom, #b8860b, #d4af37);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.filter-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.fullscreen-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.fullscreen-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    z-index: 10;
}

.tab-btn {
    background: rgba(212, 175, 55, 0.2);
    color: white;
    border: 2px solid rgba(212, 175, 55, 0.5);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active,
.tab-btn:hover {
    background: rgba(212, 175, 55, 0.9);
    color: black;
    border-color: #D4AF37;
}

.gallery-main-image {
    position: relative;
    max-width: 80%;
    max-height: 70%;
    margin-bottom: 30px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: rgba(212, 175, 55, 0.9);
    color: black;
}

.gallery-nav.prev {
    left: -70px;
}

.gallery-nav.next {
    right: -70px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    max-width: 80%;
    overflow-x: auto;
    padding: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #D4AF37;
    transform: scale(1.1);
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(212, 175, 55, 0.9);
    color: black;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-close:hover {
    background: #D4AF37;
    transform: scale(1.1);
}

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

/* Gold Divider */
.gold-divider {
    width: 4rem;
    height: 0.25rem;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #B8860B 100%);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* Loading Styles */
.loading {
    display: none;
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin: 50px 0;
}

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

/* Enhanced Styles from Projects Page */
.gold-button {
    background: linear-gradient(to bottom, #d4af37, #b8860b);
    border: 2px solid #d4af37;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gold-button:hover {
    background: linear-gradient(to bottom, #b8860b, #d4af37);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .search-bar-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
}