/* =========================================================
   HOME RESORTS
   ========================================================= */

.vds-resorts {
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin-top: -1px;
    background: #fff;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.vds-resorts__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


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

.vds-resorts__grid {
    position: relative;

    width: 100%;
    height: clamp(360px, 40vw, 760px);

    overflow: hidden;

    background: #fff;
}


/* =========================================================
   CARD - BASE
   ========================================================= */

.vds-resorts__card {
    position: absolute;
    top: 0;

    display: block;

    height: 100%;

    overflow: hidden;

    background: #14243b;

    color: #fff;
    text-decoration: none;

    isolation: isolate;
}


/* =========================================================
   CARD 1
   ========================================================= */

.vds-resorts__card--1 {
    z-index: 3;

    left: 0;
    width: 36%;

    clip-path: polygon(
        0 0,
        96% 14%,
        68.3% 99%,
        0 92%
    );
}


/* =========================================================
   CARD 2
   ========================================================= */

.vds-resorts__card--2 {
    z-index: 2;

    left: 25.5%;
    width: 49.8%;

    clip-path: polygon(
        20% 14%,
        96.3% 8%,
        77% 92%,
        0 99%
    );
}


/* =========================================================
   CARD 3
   ========================================================= */

.vds-resorts__card--3 {
    z-index: 1;

    left: 64.35%;
    width: 35.65%;

    clip-path: polygon(
        28.1% 8%,
        100% 4%,
        100% 91.5%,
        45% 99%,
        1.1% 92%
    );
}


/* =========================================================
   DARK GRADIENT
   ========================================================= */

.vds-resorts__card::after {
    position: absolute;
    z-index: 1;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(5, 18, 38, 0) 32%,
            rgba(5, 18, 38, 0.08) 45%,
            rgba(5, 18, 38, 0.30) 68%,
            rgba(5, 18, 38, 0.86) 100%
        );

    content: '';

    pointer-events: none;
}


/* =========================================================
   IMAGE
   ========================================================= */

.vds-resorts__visual {
    position: absolute;

    inset: 0;
}


.vds-resorts__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.55s cubic-bezier(.22, .61, .36, 1);
}


/* ---------------------------------------------------------
   Kadrowanie zdjęć
   --------------------------------------------------------- */

.vds-resorts__card--1 .vds-resorts__image {
    object-position: 48% center;
}


.vds-resorts__card--2 .vds-resorts__image {
    object-position: 50% center;
}


.vds-resorts__card--3 .vds-resorts__image {
    object-position: 42% center;
}


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

a.vds-resorts__card:hover .vds-resorts__image,
a.vds-resorts__card:focus-visible .vds-resorts__image {
    transform: scale(1.04);
}


/* =========================================================
   CONTENT
   ========================================================= */

.vds-resorts__content {
    position: absolute;
    z-index: 2;

    bottom: 13.5%;

    color: #fff;

    font-family: var(--vds-font-family);
}


/* ---------------------------------------------------------
   CARD 1 CONTENT
   --------------------------------------------------------- */

.vds-resorts__card--1 .vds-resorts__content {
    right: 24%;
    left: 15.5%;
}


/* ---------------------------------------------------------
   CARD 2 CONTENT
   --------------------------------------------------------- */

.vds-resorts__card--2 .vds-resorts__content {
    right: 15%;
    left: 15%;
}


/* ---------------------------------------------------------
   CARD 3 CONTENT
   --------------------------------------------------------- */

.vds-resorts__card--3 .vds-resorts__content {
    right: 6%;
    left: 22.5%;
}


/* =========================================================
   TITLE
   ========================================================= */

.vds-resorts__title {
    max-width: 340px;

    margin: 0;

    color: inherit;

    font-family: inherit;

    font-size: clamp(22px, 2.25vw, 44px);
    font-weight: var(--vds-semibold-weight, 600);

    line-height: 1.02;

    letter-spacing: -0.025em;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Mała kreska pod tytułem
   --------------------------------------------------------- */

.vds-resorts__title::after {
    display: block;

    width: 25px;
    height: 2px;

    margin-top: 13px;

    background: currentColor;

    content: '';
}


/* =========================================================
   SUBTITLE
   ========================================================= */

.vds-resorts__subtitle {
    max-width: 310px;

    margin: 13px 0 0;

    color: inherit;

    font-family: inherit;

    font-size: clamp(13px, 1.08vw, 20px);
    font-weight: 400;

    line-height: 1.3;
}


/* =========================================================
   FOCUS
   ========================================================= */

a.vds-resorts__card:focus-visible {
    outline: 4px solid #ed1c2e;
    outline-offset: -8px;
}


/* =========================================================
   DESKTOP / LARGE SCREENS
   ========================================================= */

@media (min-width: 1600px) {

    .vds-resorts__grid {
        height: min(40vw, 760px);
    }


    .vds-resorts__title {
        font-size: clamp(34px, 2.25vw, 44px);
    }


    .vds-resorts__subtitle {
        font-size: clamp(17px, 1.08vw, 20px);
    }
}


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

@media (max-width: 1200px) {

    .vds-resorts__grid {
        height: clamp(360px, 44vw, 560px);
    }


    .vds-resorts__title {
        font-size: clamp(21px, 2.3vw, 30px);
    }


    .vds-resorts__subtitle {
        font-size: clamp(12px, 1.25vw, 16px);
    }


    .vds-resorts__card--1 .vds-resorts__content {
        left: 14%;
    }


    .vds-resorts__card--2 .vds-resorts__content {
        left: 16%;
    }


    .vds-resorts__card--3 .vds-resorts__content {
        left: 23%;
    }
}


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

@media (max-width: 1000px) {

    .vds-resorts__grid {
        height: clamp(340px, 47vw, 480px);
    }


    .vds-resorts__title {
        font-size: clamp(18px, 2.5vw, 25px);
    }


    .vds-resorts__subtitle {
        font-size: clamp(12px, 1.4vw, 15px);
    }


    .vds-resorts__content {
        bottom: 14%;
    }


    .vds-resorts__title::after {
        width: 22px;

        margin-top: 10px;
    }


    .vds-resorts__subtitle {
        margin-top: 10px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .vds-resorts {
        padding: 0 16px;
    }


    .vds-resorts__grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 8px;

        height: auto;

        overflow: visible;
    }


    .vds-resorts__card,
    .vds-resorts__card--1,
    .vds-resorts__card--2,
    .vds-resorts__card--3 {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;
        height: 380px;
    }


    /* -----------------------------------------------------
       MOBILE CARD 1
       ----------------------------------------------------- */

    .vds-resorts__card--1 {
        clip-path: polygon(
            0 5%,
            100% 0,
            100% 95%,
            0 100%
        );
    }


    /* -----------------------------------------------------
       MOBILE CARD 2
       ----------------------------------------------------- */

    .vds-resorts__card--2 {
        clip-path: polygon(
            0 0,
            100% 5%,
            100% 100%,
            0 95%
        );
    }


    /* -----------------------------------------------------
       MOBILE CARD 3
       ----------------------------------------------------- */

    .vds-resorts__card--3 {
        clip-path: polygon(
            0 5%,
            100% 0,
            100% 95%,
            0 100%
        );
    }


    /* -----------------------------------------------------
       MOBILE IMAGES
       ----------------------------------------------------- */

    .vds-resorts__card--1 .vds-resorts__image {
        object-position: center center;
    }


    .vds-resorts__card--2 .vds-resorts__image {
        object-position: center center;
    }


    .vds-resorts__card--3 .vds-resorts__image {
        object-position: center center;
    }


    /* -----------------------------------------------------
       MOBILE CONTENT
       ----------------------------------------------------- */

    .vds-resorts__card--1 .vds-resorts__content,
    .vds-resorts__card--2 .vds-resorts__content,
    .vds-resorts__card--3 .vds-resorts__content {
        right: 32px;
        bottom: 48px;
        left: 32px;
    }


    .vds-resorts__title {
        max-width: 310px;

        font-size: clamp(28px, 8vw, 38px);
    }


    .vds-resorts__subtitle {
        max-width: 300px;

        font-size: 16px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .vds-resorts {
        padding: 0 10px;
    }


    .vds-resorts__card,
    .vds-resorts__card--1,
    .vds-resorts__card--2,
    .vds-resorts__card--3 {
        height: 330px;
    }


    .vds-resorts__card--1 .vds-resorts__content,
    .vds-resorts__card--2 .vds-resorts__content,
    .vds-resorts__card--3 .vds-resorts__content {
        right: 24px;
        bottom: 42px;
        left: 24px;
    }


    .vds-resorts__title {
        font-size: clamp(25px, 8vw, 34px);
    }


    .vds-resorts__subtitle {
        font-size: 15px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .vds-resorts__image {
        transition: none;
    }


    a.vds-resorts__card:hover .vds-resorts__image,
    a.vds-resorts__card:focus-visible .vds-resorts__image {
        transform: none;
    }
}