/* Matches the previous Juicer "modern / slider / hover-images" layout. */
.sif-feed {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sif-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.sif-track::-webkit-scrollbar {
    display: none;
}

.sif-item {
    position: relative;
    flex: 0 0 50%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    background: #aa9773;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sif-item { flex-basis: 33.3333%; }
}

@media (min-width: 1024px) {
    .sif-item { flex-basis: 25%; }
}

.sif-link {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.sif-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sif-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
}

.sif-badge svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sif-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5%;
    background: rgba(58, 58, 58, .85);
    color: #ededed;
    text-align: center;
    opacity: 0;
    transition: opacity .2s ease-in-out;
}

.sif-link:hover .sif-overlay,
.sif-link:focus-visible .sif-overlay {
    opacity: 1;
}

.sif-caption {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.4;
    white-space: pre-line;
}

.sif-meta {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #fff;
}

.sif-meta svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.sif-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 57px;
    height: 90px;
    padding: 0;
    border: 0;
    background: rgba(58, 58, 58, .7);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease-in-out;
}

.sif-arrow:hover {
    background: rgba(58, 58, 58, .9);
}

.sif-arrow svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sif-prev { left: 0; }
.sif-next { right: 0; }

@media (max-width: 767px) {
    .sif-arrow { width: 40px; height: 64px; }
}
