html {
    scroll-behavior: smooth;
}

.wysiwyg p,
.wysiwyg ul {
    margin-bottom: 1rem;
}

.wysiwyg ul {
    padding-left: 1rem;
    list-style: disc;
}

@keyframes open6-gradient-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.open6-animated-border-btn {
    background:
        linear-gradient(#342E37, #342E37) padding-box,
        linear-gradient(90deg,
            #8bc34a,
            #00bcd4,
            #2196f3,
            #673ab7,
            #9c27b0,
            #e91e63,
            #ff5722,
            #ff9800,
            #ffeb3b,
            #8bc34a) border-box;
    background-size: 100% 100%, 300% 100%;
    border: 2px solid transparent;
    animation: open6-gradient-move 4s linear infinite;
}

.open6-animated-border-btn:hover {
    background:
        linear-gradient(#1A1719, #1A1719) padding-box,
        linear-gradient(90deg,
            #8bc34a,
            #00bcd4,
            #2196f3,
            #673ab7,
            #9c27b0,
            #e91e63,
            #ff5722,
            #ff9800,
            #ffeb3b,
            #8bc34a) border-box;
}

.open6-directory__filter-btn {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.open6-directory__filter-btn:hover,
.open6-directory__filter-btn.is-active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.open6-directory__desktop-track-wrap {
    overflow: hidden;
}

.open6-directory__desktop-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.open6-directory__page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.open6-directory__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.open6-directory__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.open6-directory__arrow--prev {
    left: -60px;
}

.open6-directory__arrow--next {
    right: -60px;
}

.open6-directory__arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.open6-directory__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.open6-directory__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.2s ease;
}

.open6-directory__dot.is-active {
    background: #ffffff;
}

.open6-school-card {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.open6-school-card__image-wrap {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.open6-school-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.open6-school-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(52, 46, 55, 0.65), rgba(52, 46, 55, 0));
}

.open6-school-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* height: 100%; */
}

.open6-school-card__top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.open6-school-card__badge {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #342E37;
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.open6-school-card__content {
    flex: 1;
    min-width: 0;
}

.open6-school-card__title {
    font-size: 20px;
    line-height: 1.15;
    color: #342E37;
    margin: 0 0 8px;
    font-weight: 700;
}

.open6-school-card__meta {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: rgba(52, 46, 55, 0.65);
    font-size: 14px;
    line-height: 1.4;
}

.open6-school-card__meta svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.open6-school-card__external {
    color: rgba(52, 46, 55, 0.35);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.open6-school-card__external:hover {
    color: rgba(52, 46, 55, 0.65);
}

.open6-school-card__subjects-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(52, 46, 55, 0.65);
    margin: 20px 0 10px;
}

.open6-school-card__subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.open6-school-card__subject {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    background: rgba(52, 46, 55, 0.08);
    color: rgba(52, 46, 55, 0.7);
}

.open6-school-card__contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(52, 46, 55, 0.1);
    display: grid;
    gap: 10px;
}

.open6-school-card__contact a,
.open6-school-card__contact div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(52, 46, 55, 0.7);
    word-break: break-word;
}

.open6-school-card__contact a:hover {
    color: #f97316;
}

.open6-school-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 24px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid transparent;
    background: linear-gradient(rgb(52, 46, 55), rgb(52, 46, 55)) padding-box,
        linear-gradient(90deg, rgb(156, 39, 176), rgb(0, 188, 212)) border-box;
    margin-top: 24px;
    width: 100%;
}

.open6-school-card__distance {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
}

.gallery-masonry {
    column-count: 1;
    column-gap: 20px;
}

.gallery-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.gallery-card:hover .gallery-card__overlay {
    opacity: 1;
}

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

.gallery-modal-panel {
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - 160px);
}

.gallery-modal-close {
    font-size: 40px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

@media (max-width: 767px) {
    .gallery-modal-panel {
        max-height: 90vh;
        overflow-y: auto;
    }

    .gallery-modal-media {
        padding: 56px 20px 24px;
    }

    .gallery-modal-content {
        padding: 24px 20px 28px;
    }

    #gallery-modal-title {
        font-size: 30px;
    }

    #gallery-modal-description,
    #gallery-modal-student,
    #gallery-modal-school {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry {
        column-count: 3;
    }
}