/* ============================================= */
/* GALLERY STYLES (Puzzle/Masonry Düzeni)        */
/* ============================================= */
.photo-grid {
    padding: 2rem;
    column-count: 4;
    column-gap: 1.5rem;
}

@media (max-width: 1024px) {
    .photo-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .photo-grid {
        column-count: 1;
        padding: 1rem;
    }
}

/* _gallery.css'te .gallery-img'i GÜNCELLEYİN */
.gallery-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Varsayılan olarak solgun ve hafif karanlık */
    filter: grayscale(80%) brightness(0.9);
    /* Geçişi daha yavaş ve zarif yapın */
    transition: filter 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* .photo-frame:hover .gallery-img'i GÜNCELLEYİN */
.photo-frame:hover .gallery-img {
    filter: grayscale(0%) brightness(1); /* Üzerine gelince renkleri ve parlaklığı geri getirin */
    transform: scale(1.03); /* Hafif bir zoom efekti */
}
.photo-frame {
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    overflow: hidden; 
    border-radius: 4px;
    background-color: #000;
    cursor: pointer;
}

/* ============================================= */

.photo-frame.story-visible .gallery-img {
    filter: brightness(0.15);
    transform: scale(1.05);
}
/* ============================================= */
/* ============================================= */
/* ÜZERİNE GELİNCE GÖRÜNEN BİLGİ ALANI           */
/* ============================================= */
.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
    font-size: 0.75rem;
}

.photo-frame:hover .photo-info {
    opacity: 1;
    transform: translateY(0);
}

.photo-info h3 {
    margin: 0 0 0.4rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.photo-info .photo-tech-details {
    font-size: 0.65rem;
    color: #d1d5db;
    margin-bottom: 0.6rem;
}

.photo-info::after {
    content: 'Click for story';
    display: block;
    font-size: 0.7rem;
    font-style: italic;
    color: #ccc;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================= */
/* KART İÇİ HİKAYE PANELİ                         */
/* ============================================= */
.story-text-panel {
    position: absolute;
    top: 0; 
    left: 0; 
    bottom: 0;
    width: 60%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    color: #fff;
    text-align: left;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.6) 70%, transparent 100%);
}

.photo-frame.story-visible .story-text-panel {
    opacity: 1;
}

.story-text-panel h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 0 0 0.6rem 0;
}

.story-text-panel p {
    font-size: 0.8rem;
    line-height: 1.5;
}

.story-text-panel .story-lang-block + .story-lang-block {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* RESPONSIVE STORY PANEL */
@media (max-width: 768px) {
    .story-text-panel {
        width: 100%;
        max-width: none;
        padding: 1.2rem;
        background: rgba(0, 0, 0, 0.8);
    }

    .story-text-panel h3 {
        font-size: 1rem;
    }

    .story-text-panel p {
        font-size: 0.75rem;
    }
}

/* ============================================= */
/* FOTOĞRAF VARYASYONLARI                        */
/* ============================================= */
.variation-container {
    position: absolute;
    bottom: 0; 
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease 0.2s, opacity 0.4s ease 0.2s;
    z-index: 6;
    pointer-events: auto;
}

.photo-frame.story-visible .variation-container {
    transform: translateY(0);
    opacity: 1;
}

.variation-thumb {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.variation-thumb:hover,
.variation-thumb.active {
    transform: scale(1.1);
    opacity: 1;
    border-color: #fff;
    border-width: 2px;
}

/* ============================================= */
/* LIGHTBOX STYLES                               */
/* ============================================= */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    top: 20px; right: 20px;
    width: 44px; height: 44px;
    font-size: 1.5rem;
}

.lightbox-prev, .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    font-size: 1.8rem;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
