/* Galeri Stilleri */
.gallery-section {
    margin-top: 3rem;
}

.gallery-grid {
    margin-top: 2rem;
}

/* Masonry Layout için temel stiller */
.gallery-item {
    width: 300px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item a {
    display: block;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Justified Gallery özel stilleri */
.jg-caption {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
}

/* Justified Gallery responsive ayarları */
@media (max-width: 768px) {
    .gallery-grid {
        width: 100% !important;
        margin: 1rem 0;
    }
}

/* Lightbox efekti için */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.9;
}

/* Galeri başlığı */
.gallery-section h3 {
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Modal stilleri */
#imageModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

#imageModal .modal-content {
    background: #000;
    border: none;
    border-radius: 0;
}

#imageModal .modal-header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid #333;
    color: white;
}

#imageModal .modal-body {
    padding: 0;
    background: #000;
}

#imageModal .modal-body img {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
}

#imageModal .btn-close {
    filter: invert(1);
}

/* Navigation butonları */
#imageModal .btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

#imageModal .btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

#imageModal .btn:focus {
    box-shadow: none;
}

/* Image counter */
#imageCounter {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Caption */
#modalCaption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-top: 1px solid #333;
}

/* Modal backdrop temizleme */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Responsive modal */
@media (max-width: 768px) {
    #imageModal .modal-dialog {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    #imageModal .modal-body img {
        max-height: 70vh;
    }
    
    #imageModal .btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    .gallery-item{
        width: 100%;
    }
}
