/**
 * +oo Image Switcher — Updated UI
 * Modern, responsive, smooth.
 */

/* MAIN WRAPPER */
.image-switcher-container {
    display: block;
    max-width: 1194px;
    margin: 35px auto;
    position: relative;
}

/* ICON INSIDE BUTTON */
.image-switcher-button img {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
/* Normal state = black icons */
.image-switcher-button img {
    filter: brightness(0) invert(0); /* white → black */
    transition: filter 0.02s ease-in-out;
}

/* Active state = white icons */
.image-switcher-button.is-active:hover img,
.image-switcher-button.is-active img {
    filter: brightness(0) invert(1); /* black → white */
}

/* Optional hover effect (still black unless active) */
.image-switcher-button:hover img {
    filter: brightness(0) invert(0);
}
/* HOVER STATE (overwritten via dynamic CSS) */
.image-switcher-button:hover {
    transform: translateX(2px);
}


/* MAIN IMAGE */
.image-switcher-main-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

/* Fade handled by JS */
.image-switcher-main-image.fade-out {
    opacity: 0;
}
/* Horizontal top menu */
.image-switcher-top-buttons {
    display: flex;
    gap: 10px;
    padding: 5px 7px;
    margin: 2.5rem auto;
    border: 1px solid #000;
    border-radius: 3rem;
    width: 70%;
    width: fit-content;    /* make pill wrap around content */
}

/* BUTTONS */
.image-switcher-button {
    background-color: var(--color-content-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;   /* CENTER CONTENT */
    gap: 10px;
    padding: 10px 15px;
    border-radius: 3rem;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.22s ease-out;
    text-align: center;        /* ensures text stays centered */
    /* width: 100%; */
    box-sizing: border-box;
}
/* Active tab */
.image-switcher-button.is-active {
    border-color: transparent !important;
    background-color: #000;
    color: #fff;
}

/* Images */
.image-switcher-display-wrap {
    width: 100%;
    display: block;
}

.image-switcher-main-image {
    width: 100%;
    display: block;
    transition: opacity 0.25s ease-in-out;
}

.image-switcher-main-image.fade-out {
    opacity: 0;
}

/* RESPONSIVE — vertical buttons on mobile */
@media (max-width: 900px) {
    .image-switcher-container {
        padding: 15px;
    }

    .image-switcher-top-buttons {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
        gap: 8px;
    }

    .image-switcher-button {
        width: 100%;
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .image-switcher-top-buttons {
        max-width: 100%;
    }

    .image-switcher-button {
        width: 100%;
    }
}
