/* Hero */
.hero-carousel {
    width: 100%;
    height: 75vh;
}

.hero-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel {
    position: relative;
}

.hero-carousel-slide::after {
    content: " ";
    position: absolute;
    inset: 0;
    z-index: 1;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-carousel-content {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-carousel .swiper-pagination-bullet-active {
    background-color: white;
}

.bg-wavy {
    position: relative;
}

.bg-wavy::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../../assets/img/photos/wavy.jpg) no-repeat center center;
    mix-blend-mode: multiply;
    background-size: cover;
    pointer-events: none;
    opacity: 0.5;
}

/* offcanvas */
.offcanvas {
    --bs-offcanvas-bg: #173819
}

/* custom swiper */
.cs-swiper-navigation {
    background-color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    height: 40px;
    width: 40px;
    position: absolute;
    z-index: 10;
    transform: translateY(-50%);
    top: 50%;
}

.cs-swiper-navigation.navigation-next {
    right: 1vw;
}

.cs-swiper-navigation.navigation-prev {
    left: 1vw;
}

/* utility */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.bg-dark-green {
    background-color: #173819;
}

.aspect-square {
    aspect-ratio: 1;
}

.object-cover {
    object-fit: cover;
}

/* berita */
.berita__figure {
    width: 100%;
    aspect-ratio: 3/2;
}

.berita__figure__img {
    object-fit: cover;
    object-position: center;
    height: 100% !important;

}

/* utility */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* .show-more {}

.show-more-open {}

.show-more-close {} */

.show-more-open .show-more-expand {
    display: none;
}

.show-more-open .show-more-minimize {
    display: block;
}

.show-more-close .show-more-minimize {
    display: none;
}

.show-more-close .show-more-expand {
    display: block;
}

.show-more-content {
    interpolate-size: allow-keywords;
    position: relative;
    transition: all 600ms ease-in-out;
}

.show-more-open .show-more-content {
    height: fit-content;
    overflow: hidden;
}

.show-more-close .show-more-content {
    height: 300px;
    overflow: hidden;
}

.show-more-content::after {
    transition: all 600ms ease-in-out;
}

.show-more-open .show-more-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0) 75%, rgba(255, 255, 255, 1));
    opacity: 0;
}

.show-more-close .show-more-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0) 75%, rgba(255, 255, 255, 1));
    opacity: 1;
}

/* media query */
@media screen and (max-width: 768px) {
    .cs-swiper-navigation {
        display: none;
    }
}
