/* SWIPER CONTAINER */
.swiper__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
}

.swiper__left {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.swiper__right {
    width: 50%;
}

.swiper__image img {
    width: 100%;
}


/* TILES */
.swiper__tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.swiper__tile {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
    gap: 8px;
    border-radius: 16px;
    padding: 40px 32px 32px;
    cursor: pointer;
    user-select: none;
}

.swiper__tile-title,
.swiper__tile-description {
    margin: 0;
}


/* Tile SVG Icon */
.swiper__tile svg {
    position: absolute;
    left: 16px;
    top: 16px;
}




/* Tile texts */
.swiper__tile-title {
    font-size: 32px;
}

.swiper__tile-description {
    font-size: 16px;
}


/* Swiper tiles colors */
body .swiper__tile,
body .swiper__tile:hover,
body .swiper__tile *,
body .swiper__tile:hover * {
    transition: .25s ease !important;
}

.swiper__tile:first-child {
    background-color: #B07C8B;
}

.swiper__tile:nth-child(2) {
    background-color: #E7F388;
}

.swiper__tile:nth-child(3) {
    background-color: #4F6228;
}

.swiper__tile:nth-child(3) * {
    color: #B6CDC1;
}

.swiper__tile:nth-child(3) svg path {
    fill: #B6CDC1;
}


/* Tiles colors - hover and active */
.swiper__tile:first-child:hover {
    background-color: #4F343C;
}

.swiper__tile:first-child:hover * {
    color: #E0BDC7;
}
.swiper__tile:first-child:hover svg path {
    fill:#E0BDC7;
}

/* Second tile */
.swiper__tile:nth-child(2):hover {
    background-color: #474A2D;
}

.swiper__tile:nth-child(2):hover * {
    color: #E7F388;
}
.swiper__tile:nth-child(2):hover svg path {
    fill:#E7F388;
}

/* Third tile */
.swiper__tile:nth-child(3):hover {
    background-color: #D2D6BC;
}

.swiper__tile:nth-child(3):hover * {
    color: #47525E;
}
.swiper__tile:nth-child(3):hover svg path {
    fill:#47525E;
}


/* CONTENT */
.swiper__content {
    background-color: white;
    padding: 32px;
    border-radius: 16px;
    overflow: hidden;
}


.swiper__content-item {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.swiper__content-item * {
    overflow: hidden;
}

.swiper__content-item--active {
    display: flex;
    flex-direction: column;
}

/* Swiper content (description) styles */
.swiper__content-item h5,
.swiper__content-item h6 {
    font-size: 20px;
    margin-bottom: 24px;
}

.swiper__content-item p {
    font-size: 16px;
    margin-bottom: 32px;
}

.swiper__content pre {
    white-space: normal;
    word-wrap: break-word;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    background: none;
    border: none;
    color: rgba(37, 37, 37, 0.8);
    font-size: 12px;
    padding: 0;
    margin: 0 0 24px 0;
}

.swiper__content .grid__swiper-link {
    display: flex ;
    align-items: center;
    gap: 8px;
    color: var(--theme-palette-color-3);
    font-weight: 600;
}


.swiper__content .grid__swiper-link svg path {
    fill: var(--theme-palette-color-3);
}
.swiper__content .grid__swiper-link:hover {
    color: var(--theme-palette-color-2);
}
.swiper__content .grid__swiper-link:hover svg path {
    fill: var(--theme-palette-color-2);
}

/* IMAGES */
.swiper__image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    height: 100%;
}

.swiper__image img {
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.swiper__image--active {
    display: flex;
}



/* PAGINATION - BULLETS */
.swiper__grid .swiper__pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 4px;
}

.swiper__grid .swiper__pagination-bullet  {
    background: var(--theme-palette-color-6);
    width: 11px;
    height: 11px;
    transition: .3s ease;
    border-radius: 16px;
    opacity: 1;
    cursor: pointer;
}

.swiper__grid .swiper__pagination-bullet--active {
    width: 34px;
    transition: .3s ease;
}



/* Media queries */
@media only screen and (max-width:1199px) {
    .swiper__tiles {
        display: flex;
        flex-direction: column;
    }

    .swiper__left {
        width: 70%;
    }
}

@media only screen and (max-width:992px) {
    .swiper__grid {
        display: flex;
        flex-direction: column;
    }

    .swiper__tiles {
        display: grid;
    }

    .swiper__left,
    .swiper__right {
        width: 100%;
    }

    .swiper__image {
        display: none !important;
    }
}

@media only screen and (max-width:767px) {
    .swiper__tiles {
        display: flex;
        gap: 8px;
    }

    .swiper__tile {
        padding: 16px;
    }

    .swiper__tile-title {
        font-size: 24px;
    }

    .swiper__content {
        padding: 24px;
    }    
}