.phs-heritage-slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #1a1a1a;
    color: rgba(255,255,255,0.87);
    isolation: isolate;
    --phs-accent: #f97316;
    --phs-overlay-opacity: 0.38;
    --phs-card-width: 220px;
    --phs-card-height: 320px;
    --phs-card-gap: 20px;
}

.phs-heritage-slider * {
    box-sizing: border-box;
}

.phs-stage {
    position: relative;
    width: 100%;
    min-height: inherit;
}

.phs-main-heading {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 50;
    pointer-events: none;
    max-width: 38%;
}

.phs-main-title {
    margin: 0;
    color: #fff;
    line-height: 1.08;
    font-size: clamp(58px, 9vw, 100px);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.phs-card {
    position: absolute;
    left: 0;
    top: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 10;
    overflow: hidden;
    transition:
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        opacity 0.3s ease;
    will-change: transform, width, height;
}

.phs-card-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 35%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
    color: white;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.phs-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2; color:#fff;
}

.phs-card-caption {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255,255,255,0.92);
}

.phs-card.is-active .phs-card-content {
    opacity: 0;
}

.phs-card-link-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.phs-pagination {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    z-index: 80;
}

.phs-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--phs-accent);
    display: grid;
    place-items: center;
    cursor: pointer;
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-size: 24px;
    line-height: 1;
}

.phs-arrow:hover,
.phs-arrow:focus-visible {
    transform: scale(1.1);
    background-color: color-mix(in srgb, var(--phs-accent) 88%, black);
    outline: none;
}

.phs-arrow:active {
    transform: scale(0.95);
}

.phs-counter {
    font-size: 20px;
    color: white;
    min-width: 88px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.phs-cover {
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 150;
    transform: translateX(0);
    transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1);
}

.phs-cover.is-hidden {
    transform: translateX(calc(100% + 420px));
}

.phs-empty {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #222;
}

@media (max-width: 1024px) {
    .phs-heritage-slider {
        min-height: 760px;
    }

    .phs-main-heading {
        left: 24px;
        top: 80px;
        transform: none;
        max-width: calc(100% - 48px);
    }

    .phs-main-title {
        font-size: clamp(38px, 10vw, 72px);
    }
}

@media (max-width: 767px) {
    .phs-heritage-slider {
        min-height: 680px;
        --phs-card-width: 160px;
        --phs-card-height: 220px;
        --phs-card-gap: 14px;
    }

    .phs-main-heading {
        left: 18px;
        top: 76px;
        max-width: calc(100% - 36px);
    }

    .phs-main-title {
        font-size: clamp(30px, 11vw, 54px);
    }

    .phs-arrow {
        width: 44px;
        height: 44px;
    }

    .phs-pagination {
        gap: 12px;
    }

    .phs-counter {
        font-size: 17px;
        min-width: 72px;
    }
}
