/* ============================================================
   Armour Hub - Gallery Module Styles
   ============================================================ */

.gallery-section {
    background-color: #FFFFFF;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 240px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 27, 43, 0.85) 0%, rgba(11, 27, 43, 0.2) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: opacity 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 44px;
    height: 44px;
    background: #D4AF37;
    color: #0B1B2B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: auto;
    align-self: flex-end;
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}

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

.gallery-title {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.gallery-category {
    color: #D4AF37;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content-box {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.lightbox-caption {
    color: #FFFFFF;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.lightbox-caption span {
    color: #D4AF37;
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 4px;
}

.lightbox-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 2.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close-btn:hover {
    color: #D4AF37;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 27, 43, 0.7);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.4);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.lightbox-arrow:hover {
    background: #D4AF37;
    color: #0B1B2B;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
