/* Each band uses a different cut of a photographed stone surface. */
.stone-slider {
    --edge-height: clamp(52px, 6vw, 94px);
    --edge-stone: url("/assets/mermer-plaka.webp");
    --edge-position: 50% 58%;
    --edge-filter: brightness(1.5) saturate(.85);
}

.stone-slider:has(#uygulama-slayt-2:not([hidden])) {
    --edge-position: 52% 22%;
    --edge-filter: grayscale(1) invert(.93) sepia(.22);
}

.stone-slider:has(#uygulama-slayt-3:not([hidden])) {
    --edge-stone: url("/assets/granit.webp");
    --edge-position: 50% 9%;
    --edge-filter: grayscale(.75) brightness(1.25);
}

.stone-slider .granite-cut {
    height: var(--edge-height);
}

@supports (mask-image: linear-gradient(black, black)) {
    .stone-slider .granite-cut > path:not(:first-of-type) {
        display: none;
    }

    .stone-slider::after {
        content: "";
        position: absolute;
        inset: auto 0 -1px;
        z-index: 2;
        height: var(--edge-height);
        pointer-events: none;
        background: #29473a var(--edge-stone) var(--edge-position) / cover;
        filter: var(--edge-filter);
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 32C265 43 367 79 660 56S1150 -5 1440 13V34C1150 16 941 57 660 74S265 63 0 54Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    }
}

/* A honey-coloured cut separates the light catalogue from the workshop. */
.workshop-story::before,
.workshop-story::after {
    height: clamp(26px, 2.9vw, 44px);
}

.workshop-story::after {
    height: clamp(37px, 4.06vw, 62px);
    background:
        linear-gradient(105deg, #c58d5082, #af753750),
        url("/assets/tezgah.webp") center 94% / cover no-repeat,
        #98724e;
    background-blend-mode: normal, luminosity, normal;
    pointer-events: none;
}

@media (min-width: 801px) {
    .workshop-story > div + div {
        padding-top: clamp(64px, 5vw, 81px);
    }
}

/* The ivory top follows the rose stone lip above the green footer slab. */
@supports (mask-image: linear-gradient(black, black)) {
    .workshop-story::after {
        clip-path: none;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 140' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1000V83C770 45 630 50 400 101S160 135 0 117Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    }

    .slab-footer::after {
        height: clamp(43px, 5.3vw, 78px);
        clip-path: none;
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fffdf8' d='M0 0H1200V17C970 10 874 54 608 43S206 0 0 19Z'/%3E%3C/svg%3E") center / 100% 100%,
            linear-gradient(110deg, #ac62637a, #973f4350),
            url("/assets/mermer-plaka.webp") center 36% / cover,
            #925752;
        background-blend-mode: normal, normal, luminosity, normal;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V40C958 30 861 78 608 63S194 20 0 43Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    }
}

@media (max-width: 600px) {
    .stone-slider {
        --edge-height: 43px;
    }

    .stone-slider .slide-nav {
        bottom: 47px;
    }
}
