@font-face {
    font-family: "Inter";
    src: url("/fonts/inter-tight-500.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

:root {
    --edge-gap: 20px;
    --grid-gap: 20px;
}

.stories-wrapper {
    padding: 0 var(--edge-gap);
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.month-group {
    margin-bottom: 60px;
    width: 100%;
}

.month-title {
    font-family: "Inter", sans-serif;
    color: #ffffff;
    font-size: 3.5rem;
    margin: 30px 0 5px 0;
}

.month-divider {
    border: 0;
    border-top: 1px solid #ffffff;
    margin: 0 0 25px 0;
    width: 100%;
}

.stories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--grid-gap);
    margin: 0;
    width: 100%;
}

.stories-item {
    position: relative;
    display: block;
    width: calc((100% - (3 * var(--grid-gap))) / 4);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
}

.stories-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.stories-item:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

.stories-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.7rem;
    text-align: center;
    pointer-events: none;
    z-index: 2;
    color: #ffffff;
}

@media (max-width: 768px) {
    .stories-item {
        width: calc((100% - var(--grid-gap)) / 2);
    }
    .stories-caption {
        font-size: 1.7rem;
    }
}
