/**
 * Veteriner Detay - Galeri Bölümü
 * Ana görsel ve küçük resimler
 */

.galeri-grid {
    position: relative;
    width: 100%;
    height: 500px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.galeri-ana {
    position: relative;
    grid-row: span 2;
    overflow: hidden;
    min-height: 0;
}

.galeri-ana img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.galeri-ana img:hover {
    opacity: 0.95;
}

.galeri-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-150);
    color: var(--neutral-400);
    font-size: 80px;
}

.galeri-kucuk-resimler {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    grid-row: span 2;
    min-height: 0;
}

.galeri-kucuk-resimler img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.galeri-kucuk-resimler img:hover {
    opacity: 0.9;
}

.tum-fotolar-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    font-size: 14px;
    color: var(--neutral-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.tum-fotolar-btn:hover {
    background: var(--primary-500);
    color: #fff;
    transform: translateY(-2px);
}

/* Fotoğraf Lightbox Popup */
.foto-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.foto-lightbox.aktif {
    display: flex;
    opacity: 1;
}

.foto-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.foto-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.foto-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.foto-lightbox-prev,
.foto-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.foto-lightbox-prev {
    left: 20px;
}

.foto-lightbox-next {
    right: 20px;
}

.foto-lightbox-prev:hover,
.foto-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.foto-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.foto-lightbox.tek-foto .foto-lightbox-prev,
.foto-lightbox.tek-foto .foto-lightbox-next {
    display: none;
}

@media (max-width: 768px) {
    .galeri-grid {
        height: 300px;
    }

    .foto-lightbox-prev,
    .foto-lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 18px;
        left: 10px;
        right: 10px;
    }

    .foto-lightbox-next {
        right: 10px;
    }
}
