/* YourTourKey — Ana galeri, büyük görsel ekranı ve paylaş butonu.
 * ytk-product.css içinden taşınmıştır. Masaüstü ve mobil kurallar birlikte tutulur.
 */

/* GALLERY */

.ytk-product-gallery-section {
    width: 100%;
    margin: 0;
}

.ytk-product-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 204px 204px;
    gap: 10px;
    overflow: hidden;
}

.ytk-product-gallery-item {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: hidden;
    background: #dfe8e8;
    border-radius: 4px;
    text-decoration: none;
    cursor: zoom-in;
}

/* Dış köşeler büyük, iç köşeler küçük */

.ytk-product-gallery-item:nth-child(1) {
    border-radius: 14px 4px 4px 14px;
}

.ytk-product-gallery-item:nth-child(2) {
    border-radius: 4px;
}

.ytk-product-gallery-item:nth-child(3) {
    border-radius: 4px 14px 4px 4px;
}

.ytk-product-gallery-item:nth-child(4) {
    border-radius: 4px;
}

.ytk-product-gallery-item:nth-child(5) {
    border-radius: 4px 4px 14px 4px;
}

.ytk-product-gallery-main {
    grid-row: span 2;
}

.ytk-product-gallery-main-wrap {
    display: contents;
}

.ytk-product-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: none;
}

.ytk-product-gallery-item:hover img {
    transform: none;
    filter: none;
}

.ytk-product-gallery-more {
    position: absolute;
    right: 14px;
    bottom: 14px;
    min-height: 40px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ytk-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ytk-button-font-size);
    line-height: 1;
    font-weight: var(--ytk-button-font-weight);
    box-shadow: 0 12px 32px rgba(var(--ytk-ink-rgb),0.20);
}

/* LIGHTBOX */

html.ytk-lightbox-open,
body.ytk-lightbox-open {
    overflow: hidden !important;
}

.ytk-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 42px 96px;
    background: rgba(7,16,24,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.ytk-product-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ytk-product-lightbox-stage {
    min-width: 0;
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 16px;
}

.ytk-product-lightbox-stage img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    display: block;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.45);
    background: rgba(255,255,255,0.06);
}

.ytk-product-lightbox-stage figcaption {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.88);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.ytk-product-lightbox-close,
.ytk-product-lightbox-arrow {
    border: 0;
    cursor: pointer;
}

.ytk-product-lightbox-close {
    position: absolute;
    right: 32px;
    top: 28px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
    font-weight: 400;
}

.ytk-product-lightbox-arrow {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    line-height: 1;
    font-weight: 400;
}

.ytk-product-lightbox-prev {
    justify-self: start;
}

.ytk-product-lightbox-next {
    justify-self: end;
}

@media (max-width: 760px) {
    .ytk-product-gallery {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: none;
            scroll-behavior: auto;
            overscroll-behavior-x: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: auto;
            padding-bottom: 10px;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

    .ytk-product-gallery::-webkit-scrollbar {
            display: none;
        }

    .ytk-product-gallery-item {
            flex: 0 0 84%;
            height: 300px;
            scroll-snap-align: none;
            scroll-snap-stop: normal;
            border-radius: 8px;
        }

    .ytk-product-gallery-main-wrap {
            position: relative;
            display: block;
            flex: 0 0 84%;
            min-width: 0;
            height: 300px;
        }

    .ytk-product-gallery-main-wrap > .ytk-product-gallery-main {
            width: 100%;
            height: 100%;
        }

    .ytk-product-gallery-item:hover img {
            transform: none;
            filter: none;
        }

    .ytk-product-lightbox {
            padding: 72px 18px 28px;
            grid-template-columns: 1fr 1fr;
            grid-template-areas:
                "stage stage"
                "prev next";
            gap: 16px;
            align-content: center;
        }

    .ytk-product-lightbox-stage {
            grid-area: stage;
        }

    .ytk-product-lightbox-stage img {
            max-height: calc(100vh - 190px);
            border-radius: 14px;
        }

    .ytk-product-lightbox-prev {
            grid-area: prev;
            justify-self: end;
        }

    .ytk-product-lightbox-next {
            grid-area: next;
            justify-self: start;
        }

    .ytk-product-lightbox-arrow {
            width: 54px;
            height: 54px;
            font-size: 44px;
        }

    .ytk-product-lightbox-close {
            right: 18px;
            top: 18px;
            width: 44px;
            height: 44px;
            font-size: 30px;
        }
}

/* Booking form typography polish */

/* BOOKING EXPERIENCE — SHARE, PILL FIELDS & CLEAR DISCLOSURES */

.ytk-product-share {
    appearance: none;
    border: 0;
    padding: 2px 0;
    background: transparent;
    color: var(--ytk-ink);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--ytk-font-family);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.ytk-product-share .ytk-product-share-icon {
    color: currentColor;
    font-size: 22px;
    line-height: 1;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

.ytk-product-share [data-ytk-share-label] {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.ytk-product-share:hover,
.ytk-product-share:focus-visible {
    background: transparent;
    color: #0071eb;
    box-shadow: none;
    transform: none;
}

.ytk-product-share:focus-visible {
    outline: 2px solid rgba(0,113,235,0.28);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 520px) {
    .ytk-product-share {
            font-size: 14px;
        }
}

.ytk-product-meta-row .ytk-product-share--heading {
    margin: 0;
}

.ytk-product-meta-row .ytk-product-share--heading {
    position: static;
    right: auto;
    bottom: auto;
    flex: 0 0 auto;
    margin-left: auto;
}

@media (max-width: 760px) {
    .ytk-product-meta-row .ytk-product-share--heading {
        flex: 0 0 auto;
    }
}

.ytk-product-gallery-more {
    min-width: 0;
    padding: 0 17px;
    gap: 7px;
    white-space: nowrap;
}

.ytk-product-gallery-more .ytk-gallery-action-icon {
    flex: 0 0 auto;
    color: currentColor;
    font-size: 19px;
    line-height: 1;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

@media (max-width: 760px) {
    .ytk-product-gallery-main-wrap > .ytk-product-share {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 1;
            width: 38px;
            height: 38px;
            padding: 0;
            border-radius: 50%;
            background: #fff;
            justify-content: center;
        }

    .ytk-product-gallery-main-wrap > .ytk-product-share [data-ytk-share-label] {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip-path: inset(50%);
            white-space: nowrap;
        }
}
