﻿.carousel {
    height: 560px;
    width: calc(100% + 160px);
    position: relative;
    right: 80px;
}

.carousel-mask {
    overflow: hidden;
    height: 100%;
}

.carousel-viewport {
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    scroll-behavior: smooth;
    height: 100%;
}

.carousel-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.carousel-item {
    flex-shrink: 0;
    position: relative;
}

.carousel-item-back-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.carousel-item-gradient {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #00362F 100%);
    z-index: 2;
    transition: height 0.2s ease;
}


.carousel-item-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 3;
}

    .carousel-item-text p {
        font-size: 16px;
        letter-spacing: 0px;
        line-height: 130%;
        height: 0px;
        overflow: hidden;
        transition: height 0.2s ease;
    }

@media(max-width:1027px) {
    .carousel-item-text p {
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

.carousel-item-text .activable-link {
    border-bottom: 2px solid white;
    text-decoration:none;
    --fill-color-override: white;
}

.carousel-track a:hover .carousel-item-text p {
    height: 50px;
    padding-top: 8px;
    padding-bottom: 8px;
}

@media(max-width:1027px) {
    .carousel-track a:hover .carousel-item-text p {
        height: auto;
    }
}

.carousel-track a:hover .carousel-item-gradient {
    height: 100%;
    opacity: 0.5;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #00362F 0%);
}

.carousel-track a:hover .carousel-item-back-img {
    filter: grayscale(100%);
}

.carousel-track a:hover .activable-link {
    border-bottom: 2px solid #F7A488;
    color: #F7A488;
    --fill-color-override: #F7A488;
}

.carousel-nav-btn {
    display: flex;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 1024px;
    border: 2px solid #28724F;
    background: rgba(255, 255, 255, 0.00);
}
