/* Gallery Section */

.gallery {
    padding: 70px 20px;
    background: var(--black);
    color: var(--white);
}

.gallery .section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 8px;
}

.gallery-subtitle {
    text-align: center;
    color: var(--soft-gray);
    font-weight: 600;
    margin-bottom: 30px;
}

/* Grid */
.gallery-grid {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
    background: linear-gradient(180deg, #000, #111);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 45px rgba(0,0,0,0.75);
}


/* Gallery Slider */

.gallery-slider {
    position: relative;
    max-width: 1100px;
    margin: auto;
}

.gallery-track-wrapper {
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.4s ease;
}

/* One Slide = 2 Row Grid */
.gallery-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* reuse existing image style */
.gallery-img {
    height: 220px;
}

/* Buttons */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 5;
}

.gallery-btn:hover {
    background: rgba(0,0,0,0.8);
}

.gallery-btn.prev { left: -10px; }
.gallery-btn.next { right: -10px; }



/* Responsive */
@media (max-width: 900px) {
    .gallery-slide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-slide {
        grid-template-columns: 1fr;
    }
    .gallery-img {
        height: 260px;
    }
}

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

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-img {
        height: 260px;
    }
}
