@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@100&family=Montserrat:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@1,300&display=swap');

.wrapper-title h2{
    display: block;
    text-align: center;
    padding-top: 20px;
    font-size: 1.5em;
    font-weight: 700;
}
.wrapper-title hr{
    width: 20%;
    margin-left: 40%;
}

/* start: Global */
.wrapper-body {
    font-family: 'Josefin Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
/* end: Global */

/* start: Slider */
.wrapper {
    position: relative;
    max-width: 940px;
    width: 100%;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    background-color: rgba(0, 0, 0, .5);
    
    cursor: pointer;
    border: none;
    outline: none;
    z-index: 1; 
}
.ri-arrow-left-s-line, .ri-arrow-right-s-line {
    font-size: 30px;
}
.card-description .fa-solid .fa-arrow-right{
    font-size: 3em;
}
.arrow:hover {
    background-color: rgba(0, 0, 0, .7);
}
.arrow.prev {
    left: 0;
}
.arrow.next {
    right: 0;
}
.card-wrapper {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    overflow-x: auto;
    padding: 24px;
    gap: 24px;
    cursor: grab;
    scroll-snap-type: x;
    scroll-padding-inline: 24px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.card-wrapper::-webkit-scrollbar {
    display: none;
}
.card-wrapper.grab {
    cursor: grabbing;
    user-select: none;
    scroll-snap-type: none;
    scroll-behavior: auto;
}
.card-item {
    scroll-snap-align: start;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 8px 8px 24px rgba(0, 0, 0, .1);
}
.card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-other{
    position: relative;
}
.overlay{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: rgb(29, 29, 29,0.5);
}
.feature-other:hover .overlay{
    opacity: 1;
}
.text{
    color: white;
    font-size: 1.25em;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 5px 0 5px 0;
}
.text p{
    padding-top: 10px;
}
.text a{
    text-decoration: none;
    color: white;
}  

/* end: Slider */

@media (max-width: 575px) {
    .arrow {
        display: none;
    }
    .card-wrapper {
        margin-left: -16px;
        width: 100vw;
    }
    .overlay{
        opacity: 1;
    }
}