/* Smart Gallery for Elementor — Frontend Styles */

.sge-gallery-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* ── Main image ── */
.sge-main-wrap {
    width: 100%;
    line-height: 0; /* removes inline-block gap */
}

.sge-main-image {
    width: 100%;
    height: auto;          /* auto height — adjusts to image ratio */
    display: block;
    object-fit: cover;
    transition: opacity 0.25s ease;
}

.sge-main-image.sge-fade {
    opacity: 0;
}

.sge-caption {
    font-size: 13px;
    color: #666;
    margin: 6px 0 0;
    line-height: 1.4;
    text-align: center;
}

/* ── Thumbnails row ── */
.sge-thumbs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Single thumbnail ── */
.sge-thumb-item {
    width: 80px;
    height: 65px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    box-sizing: border-box;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    line-height: 0;
}

.sge-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.sge-thumb-item:hover {
    opacity: 0.85;
}

.sge-thumb-item.sge-active {
    opacity: 1;
    border-color: #9a8554; /* overridden by Elementor style control */
}
