/* Overlay */
#gwt_popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gwt_hidden {
    display: none !important;
}

/* Main container */
.gwt_popup_inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 80vh;
}

/* Main image */
#gwt_popup_img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

/* Close button */
.gwt_close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    z-index: 100000;
}

/* Arrows */
.gwt_prev,
.gwt_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 36px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
}

.gwt_prev { left: -60px; }
.gwt_next { right: -60px; }

/* Thumbnails container */
.gwt_thumbnails {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 90%;
    overflow-x: auto;
    padding: 8px 12px;
    background: rgba(0,0,0,0.6);
    border-radius: 6px;
}

/* Thumbnail image */
.gwt_thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s ease;
}

.gwt_thumb:hover {
    opacity: 0.8;
}

.gwt_thumb_active {
    opacity: 1;
    border-color: #fff;
}
