/* ================== GALLERY SECTION ================== */
.gallery-section {
    padding: 80px 0;
    background: #f9f9f9;
    text-align: center;
    width: 100%;
}

.gallery-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
}

.gallery-section p {
    font-size: 16px;
    color: #555;
    margin: 0 auto 40px;
    max-width: 800px;
}

.gallery-category {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 60px 0 20px;
    padding-bottom: 6px;
    display: inline-block;
    border-bottom: 3px solid #e67e22;
}

/* ================== GALLERY WRAPPER ================== */
.gallery-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    overflow: hidden;
    padding: 0 30px;
    /* Sağ-sol boşluk */
}

/* ================== GALLERY CAROUSEL ================== */
.gallery-carousel {
    display: grid;
    grid-template-columns: repeat(8, 220px);
    grid-template-rows: repeat(2, 220px);
    gap: 20px;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    max-height: 480px;
}

.gallery-carousel a {
    display: block;
    width: 220px;
    height: 220px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-carousel a:hover img {
    transform: scale(1.05);
}

/* ================== SLIDER BUTTONS ================== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    background-color: #ffffff;
    color: #e67e22;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.carousel-btn:hover {
    background-color: #e67e22;
    color: #ffffff;
}

.carousel-btn.prev {
    left: 5px;
}

.carousel-btn.next {
    right: 5px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
    .gallery-carousel {
        grid-template-columns: repeat(6, 180px);
        grid-template-rows: repeat(2, 180px);
    }

    .gallery-carousel a {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .gallery-carousel {
        grid-template-columns: repeat(4, 150px);
        grid-template-rows: repeat(2, 150px);
    }

    .gallery-carousel a {
        width: 150px;
        height: 150px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-carousel {
        grid-template-columns: repeat(2, 140px);
        grid-template-rows: repeat(2, 140px);
    }

    .gallery-carousel a {
        width: 140px;
        height: 140px;
    }
}