/* =============================
   GALERİ - MODERN WORDPRESS TARZI
============================= */
.gallery-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px 0;
}

.gallery-item-small {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.gallery-item-small:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.2);
}

/* Görsel Container */
.gallery-item-small .image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: rgba(0,0,0,0.3);
}

.gallery-item-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-small:hover img {
    transform: scale(1.1);
}

/* Hover Overlay Effect */
.gallery-item-small .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item-small:hover .image-container::after {
    opacity: 1;
}

/* Zoom İkonu - Modern & Şık */
.gallery-item-small .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
}

.gallery-item-small .zoom-icon::before {
    content: '◉';
    font-size: 16px;
    color: #fff;
    font-weight: 300;
}

.gallery-item-small:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* İçerik Bölümü */
.gallery-info {
    padding: 16px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-info h4 {
    color: #fff;
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-info p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Eğer açıklama yoksa */
.gallery-info.no-description {
    padding: 12px 16px;
}

/* =============================
   LIGHTBOX (Büyük Görüntüleme)
============================= */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.96);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(20px);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    animation: lightboxZoom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Lightbox Caption - Modern Tasarım */
.lightbox-caption {
    margin-top: 25px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.lightbox-caption h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.lightbox-caption p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

/* Lightbox Kontrollar */
.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    font-weight: 300;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
    border-color: rgba(255,255,255,0.4);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    font-weight: 300;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

/* Counter */
.lightbox-counter {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 1200px) {
    .gallery-grid-small {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .gallery-grid-small {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-info h4 {
        font-size: 14px;
    }
    
    .gallery-info p {
        font-size: 12px;
    }
    
    .lightbox-prev,
    .lightbox-next,
    .lightbox-close {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
    }
    
    .lightbox-caption {
        margin-top: 20px;
        padding: 16px 20px;
        max-width: 90%;
    }
    
    .lightbox-caption h3 {
        font-size: 16px;
    }
    
    .lightbox-caption p {
        font-size: 13px;
    }
    
    .lightbox-counter {
        top: 15px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gallery-grid-small {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gallery-item-small .image-container {
        aspect-ratio: 16/10;
    }
}