.mainWrapper {
    /* max-width: 1920px; */
    margin: 0 auto;
}

.franchiseWrapper{
    /* padding: 0 100px 0 100px; */
    max-width: 1740px;
    margin: 0 auto;
}

/* Carousel Container Style */
.carouselWrapper {
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    background: white;
    overflow: hidden;
}

/* Carousel Button Style */

.swiper-button-controls {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.swiper-button-prev, 
.swiper-button-next {
    position: absolute;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    border-radius: 50%;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.swiper-button-prev {
    left: 0 !important;
}

.swiper-button-next {
    right: 0 !important;
}

.swiper-button-prev:hover, 
.swiper-button-next:hover {
    background-color: rgba(155, 225, 93, 0.9);
}

.swiper-button-prev::after, 
.swiper-button-next::after {
    font-size: 23px !important;
    color: white !important;
}



/* Carousel to List Change Button Style */
.openButton {
    display: flex;
    justify-content: flex-end; /* Align to the right */
}

.openButton span {
    font-size: 40px;
    cursor: pointer; /* Apply interaction only around the icon */
}

/* List Item Styles */
.menuList, .franchiseList {
    display: grid;
    /* grid-template-columns: repeat(4, minmax(310px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 25px;
    padding: 15px 10px;
}

.menuList, .franchiseList {
    display: grid;
    /* grid-template-columns: repeat(4, minmax(310px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 25px;
    padding: 15px 10px;
}

.menuListItem, .franchiseListItem {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.menuListItem:hover, .franchiseListItem:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.menuListItem img{
    width: 100%;
    max-width: 543px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s;
}

/* swiper랑 list랑 공유 */
.franchiseImg {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s;
}

.menuListItem:hover img, .franchiseListItem:hover .franchiseImg {
    transform: scale(1.05);
}

/* List Item Text Style */
.menuTitle, .franchiseTitle {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    padding-top: 8px;
    text-align: center;
}

.menuBody, .franchiseBody {
    font-size: 13px;
    font-weight: 400;
    color: #606060;
    padding-top: 8px;
    text-align: center;
}

.textLast {
    font-size: 14px;
    color: #606060;
    padding-top: 4px;
    padding-bottom: 10px;
}

/* Expandable Text Style */
.expandable {
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expandable.collapsed {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expandable:not(.collapsed) {
    white-space: normal;
}