.waterfall-container {
    display: flex;
    position: relative;
    overflow: hidden;
    padding: 20px 40px;
    margin: 0 auto;
    width: calc((163.85px * 5) + (10px * 4)); /* 5 resim genişliği */
}

.waterfall-slider {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    width: 100%;
}

.waterfall-container img {
    height: 280px;
    width: 163.85px; /* Sabit genişlik */
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px; /* Köşeleri yuvarla */
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.slider-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-button.prev {
    left: 5px;
}

.slider-button.next {
    right: 5px;
}

slider-button:disabled {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

/* Responsive tasarım için */
@media (max-width: 1200px) {
    .waterfall-container {
        width: calc((163.85px * 3) + (10px * 2)); /* 3 resim genişliği */
    }
}

@media (max-width: 768px) {
    .waterfall-container {
        width: calc((163.85px * 2) + (10px * 1)); /* 2 resim genişliği */
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px; /* Köşeleri yuvarla */
}

.close-button {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.close-button:hover {
    color: #999;
}

.special-designs {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.special-designs img {
    width: 320px;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 28px; /* Köşeleri yuvarla */
}

.special-designs img:hover {
    transform: scale(1.05);
}

.special-designs.two-rows {
    flex-direction: column;
    gap: 30px;
}

.special-designs .row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ekledik - satır sığmazsa alt satıra geçer */
}

/* Responsive tasarım için */
@media (max-width: 1200px) {
    .special-designs {
        gap: 15px;
    }
    .special-designs img {
        width: 320px;
        height: 200px;
    }
    .special-designs .row {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .special-designs .row {
        justify-content: center;
    }
    .special-designs img {
        width: calc(50% - 10px); /* Her satırda 2 resim */
        min-width: 280px; /* Minimum genişlik */
    }
}

@media (max-width: 480px) {
    .special-designs img {
        width: 100%; /* Her satırda 1 resim */
        max-width: 320px;
    }
}
