body {
    background: url('../themes/fmstikls/images/bg.jpg')
        center top / cover fixed no-repeat;
}

.fm-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.fm-column {
    box-sizing: border-box;
    flex: 0 0 var(--fm-width, 100%);
    max-width: var(--fm-width, 100%);
    min-width: 0;
    padding: 10px;
}

.fm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.fm-photo {
    display: block;
    overflow: hidden;
    background: #fff;
}

.fm-photo img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.fm-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fm-card {
    display: block;
    width: 180px;
    max-width: 100%;
    text-align: center;
    background: #50d3c6;
    color: white;
}

.fm-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.fm-card span {
    display: block;
    padding: 8px;
}

.fm-carousel {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.fm-slide {
    display: none;
    text-align: center;
}

.fm-slide:first-child,
.fm-slide.fm-active {
    display: block;
}

.fm-slide.fm-hidden {
    display: none;
}

.fm-slide img {
    width: 100%;
    height: clamp(240px, 48vw, 500px);
    object-fit: contain;
}

.fm-prev,
.fm-next {
    position: absolute;
    top: 45%;
    padding: 12px;
    border: 0;
    background: rgba(0,0,0,.5);
    color: white;
}

.fm-prev { left: 15px; }
.fm-next { right: 15px; }

.fm-map {
    width: 100%;
    min-height: 450px;
    border: 0;
}

.fm-menu-logo {
    width: 220px;
    height: auto;
}

#header .fm-language a {
    display: inline-block !important;
    padding: 5px !important;
}

.fm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.94);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.fm-lightbox img {
    max-width: 94vw;
    max-height: 92vh;
    object-fit: contain;
}

@media (max-width: 745px) {
    .fm-column {
        flex-basis: 100%;
        max-width: 100%;
    }

    .fm-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fm-photo img {
        height: 145px;
    }

    .fm-map {
        min-height: 300px;
    }
}
