/* ==================== GALLERY FILTERS ==================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--primary, #d35400);
    color: var(--primary, #d35400);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: var(--primary, #d35400);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary, #d35400);
    color: white;
}

/* ==================== GALLERY GRID ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item.hide {
    display: none !important;
}

.gallery-item.hidden-initially {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    border: 4px solid;
    border-image: linear-gradient(135deg, #d4af37, #3498db, #d4af37) 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-overlay h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

/* ==================== GALLERY DESCRIPTION ==================== */
.gallery-description {
    padding: 1rem;
    background: #f9f9f9;
    border-top: 3px solid var(--primary, #d35400);
    min-height: 80px;
}

.gallery-description p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

/* ==================== GALLERY ACTIONS ==================== */
.gallery-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fff;
    border-top: 1px solid #eee;
}

.action-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.view-btn {
    background: #3498db;
    color: white;
}

.view-btn:hover {
    background: #2980b9;
}

.download-btn {
    background: var(--primary, #d35400);
    color: white;
}

.download-btn:hover {
    background: #c0440d;
}

.lang-toggle-btn {
    background: #27ae60;
    color: white;
    font-size: 0.85rem;
}

.lang-toggle-btn:hover {
    background: #229954;
}

/* ==================== PHOTO MODAL ==================== */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: -10px;
    width: 45px;
    height: 45px;
    background: var(--primary, #d35400);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.modal-close:hover {
    background: #c0440d;
    transform: rotate(90deg) scale(1.1);
}

/* ==================== SHOW MORE BUTTON ==================== */
.show-more-container {
    text-align: center;
    margin-top: 2rem;
}

#showMoreBtn {
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

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