/* ============================================
   GALLERY PAGE ONLY - Само за gallery.html
   ============================================ */
.contact-hero {
    background-image: url('../images/gallery/gallery-header.jpg');
}

.gallery-section {
    padding: 80px 50px;
    background: #0f0f0f;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: rgba(61, 48, 32, 0.3);
    border: 2px solid rgba(212, 168, 85, 0.3);
    color: #d4a855;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

.tab-btn:hover,
.tab-btn.active {
    background: #d4a855;
    color: #2a1f10;
    border-color: #d4a855;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 300px;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item,
.tab-btn,
.lightbox-prev,
.lightbox-next,
.lightbox-close {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.gallery-item img,
.lightbox-img {
    pointer-events: none;
    -webkit-user-drag: none;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: #d4a855;
    font-size: 20px;
    margin: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10002;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #d4a855;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    color: #fff;
    font-size: 20px;
    text-align: center;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 168, 85, 0.8);
    border: none;
    color: white;
    font-size: 40px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10003;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(212, 168, 85, 1);
}

/* Responsive for Gallery Page */
@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}