/* Galeri Sayfası CSS Dosyası */

/********* GALLERY HERO SECTION *********/
.gallery-hero-section {
    position: relative;
    height: 40vh;
    min-height: 350px;
    color: #fff;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
    background: none;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/foto5.jfif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.gallery-hero-overlay:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.85));
}

/********* GALLERY SECTION *********/
.gallery-section {
    padding: 80px 0;
}

.nav-pills .nav-link {
    color: #333;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #ffc107 0%, #1a1a1a 100%);
    color: #fff;
}

.nav-pills .nav-link:not(.active):hover {
    background-color: #e9e9e9;
    color: #ffc107;
    border-color: #ccc;
}

/* Fotoğraf Galerisi */
.gallery-items {
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    padding: 20px;
    width: 100%;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Video Galerisi */
.video-item {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-item video {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Video kontrol düğmelerini daha görünür yap */
video::-webkit-media-controls-panel {
    background-color: rgba(26, 26, 26, 0.7);
}

video::-webkit-media-controls-play-button {
    background-color: #ffc107;
    border-radius: 50%;
    color: #1a1a1a;
}

.video-item .ratio {
    background-color: #1a1a1a;
}

.video-info {
    padding: 15px;
}

.video-info h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.video-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Lightbox Galerisi */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: #fff;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background-color: #f1f1f1;
    transform: rotate(90deg);
}

.lightbox-title {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 193, 7, 0.8);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: #fff;
}

/* Responsive Düzenlemeler */
@media (max-width: 991.98px) {
    .gallery-hero-section {
        height: 40vh;
    }
    
    .gallery-section {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .gallery-hero-section {
        height: 30vh;
    }
    
    .nav-pills .nav-link {
        margin-bottom: 10px;
    }
    
    .lightbox-prev {
        left: -50px;
    }
    
    .lightbox-next {
        right: -50px;
    }
}

@media (max-width: 575.98px) {
    .gallery-hero-section {
        min-height: 300px;
    }
    
    .lightbox-prev {
        left: -40px;
    }
    
    .lightbox-next {
        right: -40px;
    }
}
