/* Custom Gallery CSS for Armadin Mining Company */

.gallery-container {
    padding: 60px 0;
}

.gallery-title {
    position: relative;
    margin-bottom: 40px;
}

.gallery-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-filter-buttons {
    margin-bottom: 40px;
}

.filter-button {
    padding: 10px 20px;
    margin: 0 5px 10px;
    background-color: #f5f5f5;
    border-radius: 30px;
    color: #333;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.filter-button:hover, .filter-button.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    margin: 0 -15px;
}

.gallery-item {
    padding: 15px;
    transition: all 0.3s ease;
}

.gallery-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    position: relative;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-box:hover .gallery-img img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-box:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.gallery-box:hover .gallery-icon {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption {
    padding: 15px;
    background-color: #fff;
    text-align: center;
}

.gallery-caption h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.mining-gallery-section {
    background-color: #f8f9fa;
    position: relative;
}

.mining-gallery-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-color: var(--primary);
    opacity: 0.05;
    z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .gallery-img img {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .filter-button {
        padding: 8px 15px;
        margin: 0 3px 8px;
        font-size: 14px;
    }
    
    .gallery-img img {
        height: 220px;
    }
}

/* Animation for items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-gallery {
    animation: fadeInUp 0.5s ease forwards;
}

/* Different animation delays for gallery items */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }

/* Lightbox styles */
.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.85);
}

.lg-actions .lg-next, 
.lg-actions .lg-prev {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.lg-actions .lg-next:hover, 
.lg-actions .lg-prev:hover {
    background-color: var(--primary);
}

.lg-toolbar .lg-icon {
    color: #fff;
}

.lg-toolbar .lg-icon:hover {
    color: var(--primary);
}

.lg-outer .lg-thumb-outer {
    background-color: rgba(0, 0, 0, 0.5);
}

.lg-outer .lg-thumb-item.active, 
.lg-outer .lg-thumb-item:hover {
    border-color: var(--primary);
} 