/*
    Galeri sayfasına özel stiller (galeri.html).
    Sadece "gallery-" ön ekli class'lar kullanılır; mevcut site stillerine dokunmaz.
*/

.gallery-page .wt-bnr-inr {
    margin-top: 170px;
}

.gallery-section {
    background-color: #fff;
}

/* Filtre sekmeleri (Tümü / Fotoğraflar / Videolar) */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    list-style: none;
    padding: 0;
}

.gallery-filter li {
    margin: 0;
}

.gallery-filter button {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #00173c;
    background-color: #fff;
    border: 2px solid #00173c;
    border-radius: 30px;
    padding: 10px 26px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-filter button:hover {
    background-color: #ceb034;
    border-color: #ceb034;
    color: #00173c;
}

.gallery-filter button.gallery-filter-active {
    background-color: #00173c;
    border-color: #00173c;
    color: #fff;
}

/* Grid yapısı */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media only screen and (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media only screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    background-color: #00173c;
}

.gallery-item[hidden] {
    display: none;
}

.gallery-item img,
.gallery-item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover img,
.gallery-item:hover .gallery-item-thumb {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 23, 60, 0) 40%, rgba(0, 23, 60, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item-caption {
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.gallery-item-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 23, 60, 0.75);
    color: #ceb034;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.gallery-item-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: rgba(206, 176, 52, 0.92);
    color: #00173c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-play {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox / Modal */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 10, 26, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-lightbox.gallery-lightbox-open {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox-inner {
    position: relative;
    max-width: 1100px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-inner img,
.gallery-lightbox-inner video {
    max-width: 100%;
    max-height: 88vh;
    display: block;
    border-radius: 4px;
    background-color: #000;
}

.gallery-lightbox-inner[hidden] {
    display: none;
}

.gallery-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ceb034;
    color: #00173c;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.gallery-lightbox-close:hover {
    background-color: #fff;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(206, 176, 52, 0.9);
    color: #00173c;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.2s ease;
}

.gallery-lightbox-nav:hover {
    background-color: #fff;
}

.gallery-lightbox-prev {
    left: -10px;
}

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

.gallery-lightbox-caption {
    position: absolute;
    bottom: -42px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
}

@media only screen and (max-width: 767px) {
    .gallery-lightbox-close {
        top: -46px;
        right: 0;
    }

    .gallery-lightbox-prev {
        left: 4px;
    }

    .gallery-lightbox-next {
        right: 4px;
    }

    .gallery-lightbox-caption {
        bottom: -34px;
        font-size: 12px;
    }
}

@media only screen and (max-width: 991px) {
    .gallery-page .wt-bnr-inr {
        margin-top: 0;
    }
}
