/*C:\Users\irina\Documents\001Schwanden2027\schwanden2027\public\css\pages\hms126.css*/

/*HERO*/
.hms-hero {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: 1.5rem;
}

/*TEXT*/
.hms-text-section {
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hms-text-content {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.hms-text-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/*CAROUSEL*/
.hms-carousel-section {
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hms-carousel-wrapper {
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-card);
    padding: clamp(1rem, 2vw, 1.5rem);
}

.hms-carousel {
    position: relative;
}

.hms-carousel-viewport {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hms-carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease;
}

.hms-carousel-slide {
    flex: 0 0 100%;
}

.hms-carousel-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-surface-soft);
}

.hms-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

/*BUTTONS*/
.hms-carousel-button {
    position: absolute;
    top: 50%;
    z-index: 20;
    transform: translateY(-50%);

    width: 3rem;
    height: 3rem;
    border-radius: 50%;

    background-color: var(--color-white);
    color: var(--color-darkblue);
    border: 1px solid var(--color-border);

    font-size: 1.4rem;
    font-weight: 700;

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

    box-shadow: var(--shadow-hover);
}

.hms-carousel-button:hover,
.hms-carousel-button:focus-visible {
    background-color: var(--color-schwandenyellow);
}

.hms-carousel-button--prev {
    left: 1rem;
}

.hms-carousel-button--next {
    right: 1rem;
}

/*DOTS*/
.hms-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.hms-carousel-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    border: 1px solid var(--color-darkblue);
    background-color: rgba(28,84,255, 0.2);
}

.hms-carousel-dot.is-active {
    background-color: var(--color-darkblue);
}

/*LIGHTBOX*/
.hms-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 2rem;
    background-color: rgba(0,0,0, 0.9);
}

.hms-lightbox.is-open {
    display: flex;
}

.hms-lightbox-image {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}

.hms-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;

    z-index: 3010;

    width: 3rem;
    height: 3rem;
    border-radius: 999px;

    background-color: var(--color-white);
    color: var(--color-darkblue);

    font-size: 1.8rem;
    line-height: 1;
}

.hms-lightbox-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

/*RESPONSIVE*/
@media (max-width: 700px) {
    .hms-carousel-button {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1.2rem;
    }

    .hms-carousel-button--prev {
        left: 0.5rem;
    }

    .hms-carousel-button--next {
        right: 0.5rem;
    }
}
