:root {
    --yesilay: #00913f;
    --koyu: #222;
    --beyaz: #ffffff;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background-color: #f0f2f5;
}

/* Navigasyon */
.sub-nav {
    background: var(--beyaz);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.back-btn {
    text-decoration: none;
    color: var(--yesilay);
    font-weight: bold;
}

/* Video Header */
.video-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.video-overlay h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0;
}

/* Galeri Grid Sistemi */
.gallery-section {
    padding: 40px 5%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: var(--beyaz);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.item-info {
    padding: 15px;
}

.item-info h3 {
    margin: 0 0 5px 0;
    color: var(--yesilay);
    font-size: 1.2rem;
}

.item-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* İzleme Modu Butonu */
.btn-watch {
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--yesilay);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-watch:hover {
    background: #007332;
    transform: scale(1.05);
}

/* Slayt Geçiş Efektleri */
.slideshow {
    position: relative;
}

.slide-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* 1 saniyede yumuşak geçiş */
}

.slide.active {
    opacity: 1;
}

/* Sinema Modu Aktifken */
.cinema-mode .video-overlay h1, 
.cinema-mode .video-overlay p {
    display: none; /* Yazıları gizle */
}

.cinema-mode .btn-watch {
    position: absolute;
    bottom: 20px;
    background: rgba(0,0,0,0.5);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .video-container {
        height: 40vh;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--koyu);
    color: white;
    margin-top: 40px;
}
/* Lightbox Tasarımı */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1000px;
}

#lightboxMediaContainer img, 
#lightboxMediaContainer video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 50%;
    margin: 0 20px;
    transition: 0.3s;
}

.nav-btn:hover { background: var(--yesilay); }

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
}

.close-lightbox {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

#lbCounter {
    display: block;
    margin-top: 10px;
    color: #888;
}

/* Mobilde okları aşağı al */
@media (max-width: 768px) {
    .lightbox-content { flex-direction: column; }
    .nav-btn { margin: 10px; padding: 15px; }
}