.sm-slider-wrapper {
    position: relative;
    overflow: hidden;
    user-select: none;
}

.sm-slider-track-outer {
    overflow: hidden;
    width: 100%;
}

.sm-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.sm-slide {
    flex: 0 0 16.666%;
    min-width: 0;
    padding: 0 4px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .sm-slide { flex: 0 0 25%; }
}
@media (max-width: 768px) {
    .sm-slide { flex: 0 0 33.333%; }
}
@media (max-width: 480px) {
    .sm-slide { flex: 0 0 50%; }
}

.sm-slide-inner {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.sm-slide-img {
    width: 100%;
    padding-top: 133%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
}

.sm-slide-img--placeholder {
    background-color: #ddd;
}

.sm-slide-title {
    padding: 8px 4px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    text-align: center;
    line-height: 1.3;
}

/* Arrows */
.sm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 64px;
    background: rgba(0, 0, 0, 0.22);
    border: none;
    border-radius: 20px !important;
    overflow: hidden;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.25s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sm-arrow-prev { left: 8px; }
.sm-arrow-next { right: 8px; }

.sm-slider-wrapper:hover .sm-arrow {
    opacity: 1;
}

.sm-arrow:hover {
    background: rgba(0, 0, 0, 0.42);
}

.sm-arrow:disabled {
    opacity: 0.15 !important;
    cursor: default;
}

.sm-slide-title {
    text-decoration: none !important;
}

.sm-slide-inner .sm-slide-title,
.sm-slide-inner:hover .sm-slide-title,
.sm-slide-inner:visited .sm-slide-title {
    text-decoration: none !important;
}

/* Grid layout */
.sm-grid-wrapper {
    width: 100%;
}

.sm-grid-featured {
    display: block;
    text-decoration: none !important;
    color: inherit;
    margin-bottom: 12px;
}

.sm-grid-featured-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

.sm-grid-featured-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: 20px !important;
}

.sm-grid-featured-img--placeholder {
    width: 100%;
    aspect-ratio: 16 / 7;
    background-color: #ddd;
}

.sm-grid-featured-title {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    line-height: 1.3;
    text-decoration: none !important;
}

.sm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.sm-grid-item {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.sm-grid-item-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

.sm-grid-item-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.sm-grid-item-img--placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ddd;
    border-radius: 16px;
}

.sm-grid-item-title {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
}

.sm-grid-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.sm-page-btn {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #ccc;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 13px;
    color: #333;
    transition: background 0.2s;
}

.sm-page-btn:hover {
    background: #f0f0f0;
}

.sm-page-info {
    font-size: 13px;
    color: #999;
}

@media (max-width: 640px) {
    .sm-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Recept měsíce */
.sm-rm-wrapper {
    display: block;
}

.sm-rm-link {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
}

.sm-rm-img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 20px !important;
}
