.highlights-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Cardo', serif;
    font-size: 36px;
}

.section-header .divider {
    display: block;
    width: 40px;
    height: 2px;
    background: #2c3e7a;
    margin: 12px auto 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.highlight-card {
    position: relative;
    overflow: hidden;
    cursor: default;
}

.highlight-card__image {
    overflow: hidden;
}

.highlight-card__image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform .6s ease, filter .6s ease;
}

.highlight-card:hover .highlight-card__image img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.highlight-card__content {
    transform: translateY(8px);
    transition: transform .4s ease;
}

.highlight-card:hover .highlight-card__content {
    transform: translateY(0);
}

/* zoom image slightly */

.highlight-card:hover .highlight-card__image img {
    transform: scale(1.05);
}

/* overlay */

.highlight-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(29,25,26,0.6);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #fff;
    text-align: center;
    padding: 30px;

    transition: background .45s ease;
}

/* hover overlay lightens */

.highlight-card:hover .highlight-card__overlay {
    background: rgba(29,25,26,0.15);
}

.highlight-card__title {
    font-family: 'Cardo', serif;
    font-size: 24px;
    margin-bottom: 18px;
    position: relative;
}

/* small decorative divider */

.highlight-card__title::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 12px auto 0;
    transition: width .35s ease;
}

/* expand divider on hover */

.highlight-card:hover .highlight-card__title::after {
    width: 45px;
}

.highlight-card__text {
    font-size: 15px;
    max-width: 280px;
    margin-top: 10px;
    transform: translateY(0);
    transition: margin-top .35s ease, transform .35s ease;
}

.highlight-card:hover .highlight-card__text {
    margin-top: 20px;
    transform: translateY(8px);
}

.highlights-slider {
    position: relative;
}

.highlights-viewport {
    overflow: hidden;
}

.highlights-slider.is-active .highlights-grid {
    display: flex;
    gap: 30px;
    transition: transform .45s ease;
    will-change: transform;
}

.highlights-slider.is-active .highlight-card {
    flex: 0 0 calc((100% - 60px) / 3);
}

.highlights-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(29, 25, 26, 0.75);
    color: #fff;
    cursor: pointer;
    z-index: 3;
    transition: background .25s ease, opacity .25s ease;
}

/* hover only if enabled */
.highlights-nav:not(:disabled):hover {
    background: rgba(29, 25, 26, 0.95);
}

/* disabled state */
.highlights-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.highlights-nav:hover {
    background: rgba(29, 25, 26, 0.95);
}

.highlights-nav:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.highlights-prev {
    left: -22px;
}

.highlights-next {
    right: -22px;
}

@media (max-width: 768px) {
    .highlights-nav {
        display: none;
    }

    .highlights-slider.is-active .highlights-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        transform: none !important;
    }

    .highlights-slider.is-active .highlight-card {
        flex: unset;
    }
}

/* mobile */

@media (max-width: 768px) {

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-card__image img {
        height: 260px;
    }

}