/* Main Gallery Container */
#gallery-container {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    /* background: rgba(255, 255, 255, 0.9); */
    backdrop-filter: blur(10px);
    display: flex;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* padding: 20px; */
    padding-top: 48px;
    z-index: 2000;
}

/* Close Button */
#close-gallery {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

#close-gallery img {
    width: 20px;
    height: auto;
}

/* Pockets Gallery (Scrollable Title & Description) */
#pockets-gallery {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Gallery Title */
#gallery-text {
    display: flex;
        flex-direction: column;
        align-items: center;
        width: 90%;
        max-height: 50%;
        overflow-y: auto;
        margin-bottom: 4%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Gallery Title */
#gallery-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-family: "ABChanelCorpoLight";
    font-weight: bold;
    text-align: center;
    padding: 0 20px;
}

/* Gallery Description */
#gallery-description {
    text-align: center;
    width: 90%;
    font-family: "ABChanelCorpoExtraLight";
    font-size: 13px;
    line-height: 1.7;
}

/* Fixed Image */
#gallery-image {
    width: 95%;
    height: 45%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 3%;
}

#carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}


#carousel-container p {
    position: fixed;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    font-family: 'ABChanelCorpoExtraLight';
    white-space: nowrap;
}

#image-wrapper {
    width: 65%; /* Centered image takes most space */
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#carousel-wrapper {
    display: flex;
    width: 300%;
    height: 100%;
    transform: translateX(-100%); /* Start with the middle image */
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: auto; /* Allows swiping interaction */
    touch-action: pan-y; /* Prevents scrolling conflicts */
}

/* Transparent arrows on sides */
.carousel-arrow {
    width: 10%;
    height: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
    transform: rotate(180deg);
}

.carousel-arrow img {
    width: 20px;
    height: 20px;
}

#color-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
}

#color-gallery .title {
    margin-bottom: 20px;
    font-size: 20px;
    font-family: "ABChanelCorpoLight";
    font-weight: bold;
    text-align: center;
    padding: 0 20px;
}

#color-gallery .selected-container {
    width: 85%;
    height: auto;
    position: relative
}

#selected-bag-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#bag-size-txt {
    position: absolute;
    bottom: -14px;
    left: 0;
    font-size: 10px;
    font-family: "ABChanelCorpoExtraLight";
}

#color-gallery .selected-container .arrow {
    position: absolute;
    bottom: 30%;
    background: transparent;
}

#color-gallery .selected-container .arrow img {
    width: 20px;
    height: 20px;
}

#color-gallery .selected-container .arrow-left {
    left: 5%;
}

#color-gallery .selected-container .arrow-right {
    right: 5%;
    transform: rotate(180deg);
}

#button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 0;
    width: 85%;
    height: auto;
    margin-top: 50px;
    background-color: #F7F7F7;
}

.image-button {
    width: 45px;
    height: 45px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    position: relative;
}

.image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* outline: 3px solid #F7F7F7; */
}

.image-button.selected {
    outline: 1.5px solid black;
    position: relative;
    z-index: 1;
}