.cheese-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.cheese-modal.active {
    opacity: 1;
    visibility: visible;
    overflow: hidden;
}

.cheese-modal-content {
    position: relative;
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cheese-modal-close {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 101;
}

.cheese-modal-title {
    max-width: 70%;
    color: #fff;
    font-size: 3.6vh;
    font-weight: 700;
    text-align: center;
    position: relative;
    top: 50px;
    font-family: 'Circe Rounded', Arial, sans-serif;
    line-height: 1.2;
}

.cheese-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.cheese-slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 30px;
    height: 40px;
    cursor: pointer;
    z-index: 101;
    transition: opacity 0.3s ease;
}

.cheese-slider-arrow:hover {
    opacity: 0.7;
}

.cheese-slider-arrow.prev {
    left: 4%;
}

.cheese-slider-arrow.next {
    right: 4%;
}

.cheese-grid {
    display: flex;
    padding: 5% 0;
    max-width: 100%;
    justify-content: center;
    gap: 20px;
}

.cheese-card {
    padding: 10px;
    display: flex;
    justify-content: end;
    flex-direction: column;
    align-items: center;
    width: calc((100% - 80px) / 5);
    max-width: 350px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.great-cheese-image {
    width: 100%;
    min-height: 200px;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 27px;
}

.cheese-name {
    min-height: 12%;
    margin-bottom: 12px;
    color: #FFE26B;
    font-size: 2.5vh;
    font-weight: 700;
    text-align: center;
    font-family: 'Circe Rounded', Arial, sans-serif;
}

.cheese-description {
    min-height: 330px;
    color: #fff;
    font-size: 1.2em;
    text-align: center;
    line-height: 1.4;
    font-family: 'Circe Rounded', Arial, sans-serif;
}

@media screen and (max-width: 2050px) {
    .cheese-description {
        min-height: 220px;
        color: #fff;
        font-size: 1.7vh;
        text-align: center;
        line-height: 1.4;
        font-family: 'Circe Rounded', Arial, sans-serif;
    }
}

@media screen and (max-width: 1920px) {
    .cheese-card {
        width: calc((100% - 60px) / 4);
    }
}

@media screen and (max-width: 1500px) {
    .cheese-card {
        width: calc((100% - 40px) / 3);
    }

    .cheese-description {
        min-height: 280px;

    }

    .great-cheese-image {
        min-height: 300px;
    }

    .cheese-name {
        min-height: 90px;
    }
}

@media screen and (max-width: 1200px) {
    .cheese-modal.active {
        overflow: auto;
    }

    .cheese-slider-arrow {
        display: none;
    }

    .cheese-slider-container {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .cheese-slider-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .cheese-card {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        padding: 20px;
        margin: 0;
    }

    .cheese-name {
        min-height: 60px;
    }
}

@media screen and (max-width: 900px) {
    .cheese-grid {
        padding: 4% 0 0 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 15px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .cheese-modal-close {
        top: 10%;
        right: 5%;
        width: 40px;
        height: 40px;
    }

    .cheese-modal-title {
        top: 40px;
        max-width: 90%;
        margin-top: 25%;
        font-size: 3vh;
    }

    .cheese-slider-arrow {
        width: 30px;
        height: 30px;
    }

    .cheese-card {
        width: 100%;
        min-width: 280px;
        max-width: 450px;
        padding: 20px;
    }

    .cheese-image {
        height: 300px;
    }

    .cheese-name {
        margin: 0%;
        min-height: 20px;
        font-size: 20px;
    }

    .cheese-description {
        min-height: 0px;
        max-width: 80%;
        font-size: 2vh;
        min-height: 150px;
    }

    .cheese-grid {
        padding: 3% 0 0 0;
        margin-left: 0;
    }

    @media screen and (max-width: 500px) {
        .cheese-grid {
            padding: 3% 0 0 0;
            margin-left: 0;
        }
    }

    @media screen and (max-width: 415px) {
        .cheese-modal-title {
            max-width: 80%;
            margin-top: 8%;
            font-size: 18px;
            top: 0;
        }

        .cheese-modal-close {
            top: 2%;
            right: 3%;
        }

        .cheese-card {
            min-width: 280px;
            padding: 0;
        }

        .cheese-image {
            height: 200px;
        }
    }
} 