/* ============================================
   JHANKAR HAVELI - Homepage Gallery Slider
   Full-width single image slider with smooth transitions
   ============================================ */

/* ---------- SLIDER CONTAINER ---------- */
.gallery-slider {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--dark);
    box-shadow: 0 12px 40px rgba(26, 15, 10, 0.18);
}

/* ---------- VIEWPORT (clips slides) ---------- */
.gallery-slider-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* ---------- TRACK (holds all slides horizontally) ---------- */
.gallery-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0.05, 0.36, 1);
    will-change: transform;
}

/* ---------- SLIDE (each image) ---------- */
.gallery-slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
    transform: scale(1);
}

/* Ken Burns slow zoom on active slide */
.gallery-slider-slide.active img {
    transform: scale(1.08);
}

/* ---------- CAPTION OVERLAY ---------- */
.gallery-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 50px 40px;
    background: linear-gradient(to top, rgba(26, 15, 10, 0.95) 0%, rgba(26, 15, 10, 0.7) 50%, transparent 100%);
    color: var(--white);
    z-index: 3;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slider-slide.active .gallery-slider-caption {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.gallery-slider-caption .caption-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 14px;
    border: 1px solid var(--gold);
    border-radius: 20px;
    background: rgba(185, 148, 112, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-weight: 400;
}

.gallery-slider-caption p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ---------- ARROWS ---------- */
.gallery-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(26, 15, 10, 0.55);
    border: 1px solid rgba(185, 148, 112, 0.5);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 5;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.gallery-slider:hover .gallery-slider-arrow {
    opacity: 1;
}

.gallery-slider-arrow.prev {
    left: 22px;
}

.gallery-slider-arrow.next {
    right: 22px;
}

.gallery-slider-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(185, 148, 112, 0.5);
}

.gallery-slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* ---------- DOTS ---------- */
.gallery-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
    padding: 10px 18px;
    background: rgba(26, 15, 10, 0.5);
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    display: block;
}

.gallery-slider-dot:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.25);
}

.gallery-slider-dot.active {
    background: var(--gold);
    width: 30px;
    border-radius: 5px;
}

/* ---------- COUNTER ---------- */
.gallery-slider-counter {
    position: absolute;
    top: 22px;
    right: 22px;
    padding: 8px 18px;
    background: rgba(26, 15, 10, 0.7);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
    border-radius: 25px;
    z-index: 5;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(185, 148, 112, 0.3);
}

.gallery-slider-counter .current {
    color: var(--gold);
    font-weight: 600;
    font-size: 1rem;
}

.gallery-slider-counter .total {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- PROGRESS BAR (autoplay indicator) ---------- */
.gallery-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    width: 0;
    z-index: 6;
    box-shadow: 0 0 8px rgba(185, 148, 112, 0.6);
}

.gallery-slider-progress.running {
    animation: galleryProgressFill 6s linear forwards;
}

@keyframes galleryProgressFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* ---------- EDGE GRADIENTS ---------- */
.gallery-slider::before,
.gallery-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(26, 15, 10, 0.5), transparent);
}

.gallery-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(26, 15, 10, 0.5), transparent);
}

.gallery-slider:hover::before,
.gallery-slider:hover::after {
    opacity: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .gallery-slider {
        height: 500px;
    }
    .gallery-slider-caption {
        padding: 50px 35px 30px;
    }
    .gallery-slider-caption p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
    letter-spacing: 0.02em;
}
}

@media (max-width: 768px) {
    .gallery-slider {
        height: 400px;
    }
    .gallery-slider-arrow {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
        opacity: 1; /* Always visible on mobile */
    }
    .gallery-slider-arrow.prev {
        left: 12px;
    }
    .gallery-slider-arrow.next {
        right: 12px;
    }
    .gallery-slider-caption {
        padding: 40px 20px 20px;
    }
    .gallery-slider-caption .caption-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 14px;
    border: 1px solid var(--gold);
    border-radius: 20px;
    background: rgba(185, 148, 112, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-weight: 400;
}
    .gallery-slider-caption p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
    letter-spacing: 0.02em;
}
    .gallery-slider-dots {
        bottom: 14px;
        padding: 6px 12px;
        gap: 6px;
    }
    .gallery-slider-dot {
        width: 7px;
        height: 7px;
    }
    .gallery-slider-dot.active {
        width: 22px;
    }
    .gallery-slider-counter {
        top: 14px;
        right: 14px;
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    .gallery-slider::before,
    .gallery-slider::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery-slider {
        height: 320px;
    }
    .gallery-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    .gallery-slider-caption p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
    letter-spacing: 0.02em;
}
}
