/* Game Gallery Widget — Card Style */

.gg-wrapper {
    position: relative;
    width: 100%;
    -webkit-user-select: none;
    user-select: none;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    box-sizing: border-box;
}

/* Inner border frame */
.gg-track {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Ratio mode */
.gg-track:not(.gg-track--auto) {
    height: 0;
}
.gg-track:not(.gg-track--auto) .gg-slides {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

/* Auto height */
.gg-track--auto .gg-slides {
    position: relative;
}

/* Slides strip */
.gg-slides {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 100%;
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* Single slide */
.gg-slide {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.gg-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-position: center;
    pointer-events: none;
}

.gg-track--auto .gg-slide { height: auto; }
.gg-track--auto .gg-slide img { height: auto; }

/* Caption */
.gg-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
    background: rgba(0,0,0,0.40);
    color: #fff;
}

/* Bottom controls bar */
.gg-controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 2px;
}

/* Arrows */
.gg-arrow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d0d0d0;
    background: #fff;
    cursor: pointer;
    padding: 0;
    -webkit-transition: border-color 0.2s, background 0.2s;
    transition: border-color 0.2s, background 0.2s;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.gg-arrow:hover {
    border-color: #999;
    background: #f5f5f5;
}

.gg-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.gg-arrow svg {
    display: block;
    pointer-events: none;
}

/* Dots */
.gg-dots {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 6px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.gg-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: #d0d0d0;
    -webkit-transition: background 0.25s, -webkit-transform 0.25s;
    transition: background 0.25s, transform 0.25s;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.gg-dot.is-active {
    background: #333333;
    -webkit-transform: scale(1.35);
    transform: scale(1.35);
}
