﻿.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

    .gallery-item:hover {
        transform: scale(1.05);
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }

/* --- Modal Tam Ekran Ayarları --- */
.modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
}

.modal-content {
    background-color: #000;
    border: none;
    border-radius: 0;
    height: 100vh;
}

.modal-body {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#modalImage {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 0;
}

/* Spinner */
.about-gallery-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1053;
}

/* Navigasyon okları */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
    z-index: 1051;
}

    .nav-arrow:hover:not(:disabled) {
        background-color: rgba(0, 0, 0, 0.6);
    }

    .nav-arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.arrow-left {
    left: 15px;
}

.arrow-right {
    right: 15px;
}

/* Kapatma butonu */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    opacity: 0.8;
    z-index: 1052;
}

    .close-btn:hover {
        opacity: 1;
    }

@media (max-width: 768px) {
    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    .close-btn {
        font-size: 1.8rem;
        top: 10px;
        right: 15px;
    }
}
