/* =========================================================
   ŞİFA KAPLICA EVLERİ
   GALERİ SAYFASI
========================================================= */

.gallery-page {
    position: relative;
    max-width: 1480px;
    margin: 0 auto;
    padding: 18px 32px 20px;
}

/* =========================================================
   GERİ DÖN
========================================================= */

.gallery-page .back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #0d4f42;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.gallery-page .back-button:hover {
    opacity: .75;
    transform: translateX(-3px);
}


/* =========================================================
   BAŞLIK
========================================================= */

.gallery-page-header {
    text-align: center;
    margin: 4px auto 22px;
}

.gallery-page-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #b88a4a;

    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 700;

    letter-spacing: 4px;
}

.gallery-page-header h1 {
    margin: 0;

    color: #0d4f42;

    font-family: "Manrope", sans-serif;
    font-size: 36px;
    font-weight: 800;

    line-height: 1.1;
}

.gallery-page-header p {
    margin: 8px 0 0;

    color: #6c6963;

    font-size: 14px;
}


/* =========================================================
   GRID
========================================================= */

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 14px;
}


/* =========================================================
   FOTOĞRAF
========================================================= */

.gallery-page-item {
    position: relative;

    display: block;

    width: 100%;
    height: 290px;

    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 18px;

    background: #e9e5dc;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(31, 49, 44, .08);

    appearance: none;
}

.gallery-page-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .6s cubic-bezier(.2, .7, .2, 1),
        filter .4s ease;
}


/* =========================================================
   HOVER
========================================================= */

.gallery-page-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(8, 56, 47, 0);

    transition: background .3s ease;
}

.gallery-page-zoom {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;

    background: rgba(255,255,255,.92);

    color: #0d4f42;

    font-size: 18px;

    opacity: 0;

    transform: scale(.8);

    transition:
        opacity .3s ease,
        transform .3s ease;
}

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

.gallery-page-item:hover .gallery-page-overlay {
    background: rgba(8, 56, 47, .22);
}

.gallery-page-item:hover .gallery-page-zoom {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   BOŞ GALERİ
========================================================= */

.gallery-empty {
    min-height: 340px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px;

    border: 1px solid rgba(13, 79, 66, .10);
    border-radius: 18px;

    background: rgba(255,255,255,.65);

    color: #77736c;

    text-align: center;
}

.gallery-empty i {
    margin-bottom: 16px;

    color: #b88a4a;

    font-size: 42px;
}

.gallery-empty strong {
    color: #0d4f42;

    font-family: "Manrope", sans-serif;
    font-size: 20px;
}

.gallery-empty p {
    margin: 6px 0 0;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 90px;

    background: rgba(5, 20, 17, .94);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

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

.gallery-lightbox-content {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    max-width: 1400px;
    max-height: calc(100vh - 100px);
}

.gallery-lightbox-content img {
    display: block;

    max-width: 100%;
    max-height: calc(100vh - 100px);

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.4);
}


/* =========================================================
   LIGHTBOX BUTONLARI
========================================================= */

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;

    background: rgba(255,255,255,.10);

    color: #fff;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255,255,255,.20);
}

.gallery-lightbox-close {
    top: 25px;
    right: 30px;

    width: 46px;
    height: 46px;

    font-size: 20px;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    top: 50%;

    width: 52px;
    height: 52px;

    font-size: 18px;

    transform: translateY(-50%);
}

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

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

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    transform: translateY(-50%) scale(1.06);
}


/* =========================================================
   SAYICI
========================================================= */

.gallery-lightbox-counter {
    position: absolute;

    left: 50%;
    bottom: 18px;

    padding: 7px 13px;

    border-radius: 30px;

    background: rgba(0,0,0,.55);

    color: #fff;

    font-size: 12px;
    font-weight: 600;

    transform: translateX(-50%);
}


/* =========================================================
   LIGHTBOX AÇIKKEN
========================================================= */

body.gallery-open {
    overflow: hidden;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .gallery-page {
        padding: 24px 20px 40px;
    }

    .gallery-page-item {
        height: 270px;
    }

    .gallery-lightbox {
        padding: 60px 65px;
    }

}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 650px) {

    .gallery-page {
        padding: 20px 14px 32px;
    }

    .gallery-page-header {
        margin-bottom: 24px;
    }

    .gallery-page-header h1 {
        font-size: 30px;
    }

    .gallery-page-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-page-item {
        height: 240px;
        border-radius: 14px;
    }

    .gallery-page-zoom {
        width: 46px;
        height: 46px;
    }

    .gallery-lightbox {
        padding: 65px 12px;
    }

    .gallery-lightbox-content img {
        max-height: calc(100vh - 130px);
    }

    .gallery-lightbox-close {
        top: 14px;
        right: 14px;
    }

    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 42px;
        height: 42px;

        background: rgba(0,0,0,.45);
    }

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

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

}