/* ─────────────────────────────────────────
   DHDM Gallery — Frontend Slideshow Styles
   ───────────────────────────────────────── */

.dhdm-gallery-wrap {
    max-width: 900px;
    margin: 0 auto 40px;
    font-family: 'Inter', sans-serif;
}

/* ── Slider container ── */
.dhdm-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #111;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

/* ── Slides ── */
.dhdm-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.dhdm-slide {
    min-width: 100%;
    position: relative;
    display: none;
    height: 100%;
}

.dhdm-slide.active {
    display: block;
}

.dhdm-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* ── Caption ── */
.dhdm-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    padding: 30px 20px 14px;
    font-size: 14px;
    border-radius: 0 0 10px 10px;
}

/* ── Prev / Next buttons ── */
.dhdm-prev,
.dhdm-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dhdm-prev:hover,
.dhdm-next:hover {
    background: rgba(184,134,11,0.75);
}

.dhdm-prev { left: 14px; }
.dhdm-next { right: 14px; }

/* ── Dots ── */
.dhdm-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.dhdm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.dhdm-dot.active {
    background: #B8860B;
    transform: scale(1.25);
}

/* ── Counter ── */
.dhdm-counter {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
}

/* ── Thumbnails strip ── */
.dhdm-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 4px;
    scrollbar-width: thin;
    scrollbar-color: #B8860B #eee;
}

.dhdm-thumbs::-webkit-scrollbar { height: 4px; }
.dhdm-thumbs::-webkit-scrollbar-track { background: #eee; }
.dhdm-thumbs::-webkit-scrollbar-thumb { background: #B8860B; border-radius: 4px; }

.dhdm-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 52px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
}

.dhdm-thumb.active,
.dhdm-thumb:hover {
    opacity: 1;
    border-color: #B8860B;
}

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

/* ── Lightbox ── */
.dhdm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.dhdm-lightbox.open {
    display: flex;
}

.dhdm-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.90);
}

.dhdm-lb-inner {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhdm-lb-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.dhdm-lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 44px;
    padding: 0;
    text-align: center;
    transition: background 0.2s;
}

.dhdm-lb-close:hover { background: #c0392b; }

.dhdm-lb-prev,
.dhdm-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dhdm-lb-prev:hover,
.dhdm-lb-next:hover { background: rgba(184,134,11,0.8); }

.dhdm-lb-prev { left: 16px; }
.dhdm-lb-next { right: 16px; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .dhdm-prev, .dhdm-next { width: 34px; height: 34px; font-size: 16px; }
    .dhdm-thumb { width: 56px; height: 42px; }
    .dhdm-lb-prev, .dhdm-lb-next { width: 38px; height: 38px; }
}
