/* Özel Galeri CSS */
.custom-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.custom-gallery-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    z-index: 100000;
    text-align: center;
}

.custom-gallery-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    object-fit: contain;
    border: 4px solid #fff;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.custom-gallery-caption {
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

.custom-gallery-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    width: 100%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.custom-gallery-controls:hover {
    opacity: 1;
}

.custom-gallery-prev,
.custom-gallery-next,
.custom-gallery-close {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.custom-gallery-prev:hover,
.custom-gallery-next:hover,
.custom-gallery-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.custom-gallery-close {
    position: absolute;
    top: 15px;
    right: 15px;
}

.custom-gallery-counter {
    color: #fff;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 15px;
}

.gallery-item {
    margin-bottom: 30px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

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

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

.gallery-zoom {
    color: #fff;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.gallery-image:hover .gallery-zoom {
    transform: scale(1);
}

/* Animasyon Efektleri */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* Mobil Uyumlu Düzenlemeler */
@media (max-width: 768px) {
    .custom-gallery-image {
        max-height: 70vh;
    }
    
    .custom-gallery-caption {
        font-size: 14px;
    }
    
    .custom-gallery-prev,
    .custom-gallery-next,
    .custom-gallery-close {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .custom-gallery-container {
        max-width: 95%;
    }
    
    .custom-gallery-image {
        max-height: 60vh;
    }
    
    .custom-gallery-prev,
    .custom-gallery-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Touch cihazlar için ekstra stil */
@media (hover: none) {
    .gallery-overlay {
        opacity: 0.3;
    }
    
    .gallery-zoom {
        transform: scale(1);
    }
} 