/* Agafay Desert Slideshow — v1.0 */

.ags-wrap {
    max-width: 860px;
    margin: 0 auto;
    outline: none;
    font-family: inherit;
}

/* ── Viewport ── */
.ags-viewport {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1008;
}

/* ── Track ── */
.ags-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── Slides ── */
.ags-slide {
    min-width: 100%;
    position: relative;
    height: 460px;
    flex-shrink: 0;
}

.ags-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ags-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
}

/* ── Caption ── */
.ags-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.75rem;
}

.ags-tag {
    display: inline-block;
    background: rgba(186,117,23,0.85);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    color: #FAC775;
    font-weight: 500;
    margin-bottom: 8px;
}

.ags-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.3;
}

.ags-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    margin: 0;
    line-height: 1.6;
}

/* ── Arrows ── */
.ags-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
    z-index: 10;
}

.ags-btn:hover { background: rgba(255,255,255,0.28); }
.ags-prev { left: 14px; }
.ags-next { right: 14px; }

/* ── Counter ── */
.ags-counter {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0,0,0,0.45);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    z-index: 10;
}

/* ── Thumbnails ── */
.ags-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.ags-thumbs::-webkit-scrollbar { display: none; }

.ags-thumb {
    width: 80px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    padding: 0;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.65;
    background: none;
}

.ags-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ags-thumb.active,
.ags-thumb:hover {
    border-color: #BA7517;
    opacity: 1;
}

/* ── Dots ── */
.ags-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 0;
}

.ags-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ags-dot.active {
    background: #BA7517;
    transform: scale(1.3);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .ags-slide { height: 280px; }
    .ags-title { font-size: 16px; }
    .ags-desc  { font-size: 12px; }
    .ags-thumb { width: 58px; height: 42px; }
}
