/* Gallery Section */
.gallery-section {
    background-color: #000;
    padding: 6rem 0;
    position: relative;
    border-bottom: 2px solid var(--secondary-color);
}

.gallery-section .section-title {
    color: #fff;
    margin-bottom: 3rem;
    text-align: center;
}

.gallery-section .highlight {
    color: var(--primary-color);
    text-shadow: 2px 2px 0 var(--accent-color);
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    border: 2px solid #333;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay */
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay i {
    color: #fff;
    font-size: 2rem;
    background: var(--primary-color);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

/* CTA */
.gallery-cta {
    text-align: center;
}

.btn-gallery {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-gallery:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px var(--primary-color);
    border-radius: 10px;
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.lightbox-content,
#caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(255, 0, 153, 0.8);
}

/* Responsive */
@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }

    /* Ensure 2 columns on mobile for better view */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        /* Smaller gap */
    }

    .section-title {
        font-size: 2.5rem;
    }
}