/* ================================
   YILMAZ TURIZM GALLERY
   ================================ */

.gallery-final-grid .gallery-open {
    border: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: zoom-in;
}

.gallery-final-grid .gallery-open:nth-child(1) {
    background-image:
        url("/static/uploads/yilmaz4.png");
}

.gallery-final-grid .gallery-open:nth-child(2) {
    background-image:
        url("/static/uploads/yilmaz2.png");
}

.gallery-final-grid .gallery-open:nth-child(3) {
    background-image:
        url("/static/uploads/yilmaz3.png");
}

.gallery-final-grid .gallery-open:nth-child(4) {
    background-image:
        url("/static/uploads/yilmaz1.png");
}

.gallery-final-grid .gallery-open:nth-child(5) {
    background-image:
        url("/static/uploads/yilmaz5.png");
}


/* VIEWER */

.yt-gallery-viewer {
    position: fixed !important;

    z-index: 999999 !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

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

    padding: 55px 95px !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    overflow: hidden;

    isolation: isolate;

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


.yt-gallery-viewer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* BACKDROP */

.yt-gallery-backdrop {
    position: absolute;

    z-index: -1;

    inset: 0;

    background:
        rgba(5, 6, 9, .90);

    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
}


/* STAGE */

.yt-gallery-stage {
    position: relative;

    width: min(1180px, 82vw);

    max-height: 88vh;

    display: flex;
    flex-direction: column;

    opacity: 0;

    transform:
        translateY(35px)
        scale(.88);

    transition:
        opacity .42s ease,
        transform .55s
        cubic-bezier(.16,.8,.24,1);
}


.yt-gallery-viewer.is-open
.yt-gallery-stage {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* IMAGE */

.yt-gallery-photo-shell {
    position: relative;

    width: 100%;
    height: min(72vh, 780px);

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

    overflow: hidden;

    border-radius: 26px;

    background:
        #101114;

    box-shadow:
        0 45px 140px
        rgba(0,0,0,.65);
}


.yt-gallery-photo-shell img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    opacity: 1;

    transform: scale(1);

    transition:
        opacity .18s ease,
        transform .32s ease;
}


.yt-gallery-photo-shell img.is-changing {
    opacity: 0;

    transform: scale(.965);
}


/* INFO */

.yt-gallery-info {
    min-height: 60px;

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

    gap: 30px;

    padding:
        15px 5px 0;

    color: white;
}


.yt-gallery-info > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.yt-gallery-info small {
    color:
        rgba(255,255,255,.38);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}


.yt-gallery-info strong {
    font-size: 14px;

    font-weight: 650;
}


.yt-gallery-info > span {
    color:
        rgba(255,255,255,.45);

    font-size: 11px;
    font-weight: 700;
}


/* CLOSE */

.yt-gallery-close {
    position: fixed;

    z-index: 5;

    top: 26px;
    right: 30px;

    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 50%;

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

    color: white;

    font-size: 31px;
    font-weight: 300;

    cursor: pointer;

    backdrop-filter: blur(12px);

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


.yt-gallery-close:hover {
    background: #c8102e;

    border-color: #c8102e;

    transform:
        rotate(6deg)
        scale(1.06);
}


/* ARROWS */

.yt-gallery-arrow {
    position: fixed;

    z-index: 5;

    top: 50%;

    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    transform:
        translateY(-50%);

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 50%;

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

    color: white;

    font-size: 38px;
    line-height: 1;

    cursor: pointer;

    backdrop-filter: blur(12px);

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


.yt-gallery-prev {
    left: 27px;
}


.yt-gallery-next {
    right: 27px;
}


.yt-gallery-arrow:hover {
    background: #c8102e;

    border-color: #c8102e;

    transform:
        translateY(-50%)
        scale(1.07);
}


body.yt-gallery-lock {
    overflow: hidden !important;
}


/* MOBILE */

@media (max-width: 800px) {

    .yt-gallery-viewer {
        padding:
            70px 16px 95px !important;
    }

    .yt-gallery-stage {
        width: 100%;
    }

    .yt-gallery-photo-shell {
        height: 65vh;

        border-radius: 19px;
    }

    .yt-gallery-close {
        top: 15px;
        right: 15px;

        width: 44px;
        height: 44px;
    }

    .yt-gallery-arrow {
        top: auto;
        bottom: 22px;

        width: 47px;
        height: 47px;

        transform: none;
    }

    .yt-gallery-prev {
        left:
            calc(50% - 57px);
    }

    .yt-gallery-next {
        right:
            calc(50% - 57px);
    }

    .yt-gallery-arrow:hover {
        transform:
            scale(1.05);
    }

}


/* ONLY REAL YILMAZ TURIZM PHOTOS */

.gallery-final-grid .gallery-open:nth-child(1) {
    background-image: url("/static/uploads/yilmaz1.png") !important;
}

.gallery-final-grid .gallery-open:nth-child(2) {
    background-image: url("/static/uploads/yilmaz2.png") !important;
}

.gallery-final-grid .gallery-open:nth-child(3) {
    background-image: url("/static/uploads/yilmaz3.png") !important;
}

.gallery-final-grid .gallery-open:nth-child(4) {
    background-image: url("/static/uploads/yilmaz4.png") !important;
}

.gallery-final-grid .gallery-open:nth-child(5) {
    background-image: url("/static/uploads/yilmaz5.png") !important;
}


/* YILMAZ TURIZM GALLERY - 8 REAL PHOTOS */

.gallery-final-grid .gallery-open:nth-child(6) {
    background-image:
        url("/static/uploads/yilmaz6.png") !important;
}

.gallery-final-grid .gallery-open:nth-child(7) {
    background-image:
        url("/static/uploads/yilmaz7.png") !important;
}

.gallery-final-grid .gallery-open:nth-child(8) {
    background-image:
        url("/static/uploads/yilmaz8.png") !important;
}
