/* =====================================================
   NHFF Gallery Slider — Frontend Styles
   ===================================================== */

:root {
    --nhff-accent:        #1a1a1a;
    --nhff-accent-hover:  #333;
    --nhff-white:         #ffffff;
    --nhff-radius:        0;
    --nhff-thumb-size:    80px;
    --nhff-transition:    0.3s ease;
    --nhff-shadow:        0 4px 20px rgba(0,0,0,.12);
}

/* ---- Wrapper ---- */
.nhff-gallery-wrapper {
    width: 100%;
    max-width: 432px;
    position: relative;
    user-select: none;
}

/* ---- Main Slider ---- */
.nhff-slider-main {
    width: 100%;
    border-radius: var(--nhff-radius);
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: var(--nhff-shadow);
}

.nhff-slider-main .swiper-wrapper {
    align-items: center;
}

.nhff-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    overflow: hidden;
}

/* ---- Image slide ---- */
.nhff-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.nhff-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.nhff-slide a:hover img {
    transform: scale(1.03);
}

/* Zoom icon */
.nhff-zoom-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.8);
    transition: opacity var(--nhff-transition), transform var(--nhff-transition);
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.nhff-zoom-icon svg {
    width: 16px;
    height: 16px;
    color: var(--nhff-accent);
}

.nhff-slide a:hover .nhff-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* ---- Video slide ---- */
.nhff-video-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nhff-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

/* Play button */
.nhff-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--nhff-transition), transform var(--nhff-transition);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    z-index: 2;
}

.nhff-video-play-btn:hover {
    background: var(--nhff-white);
    transform: translate(-50%, -50%) scale(1.1);
}

.nhff-video-play-btn svg {
    width: 24px;
    height: 24px;
    color: var(--nhff-accent);
    margin-left: 3px;
}

.nhff-video-play-btn.is-playing {
    display: none;
}

/* Fullscreen button */
.nhff-video-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--nhff-transition);
    z-index: 2;
    backdrop-filter: blur(4px);
}

.nhff-video-fullscreen-btn:hover {
    background: var(--nhff-white);
}

.nhff-video-fullscreen-btn svg {
    width: 16px;
    height: 16px;
    color: var(--nhff-accent);
}

/* ---- Navigation arrows ---- */
.nhff-slider-main .swiper-button-prev,
.nhff-slider-main .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    transition: background var(--nhff-transition), transform var(--nhff-transition);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.nhff-slider-main .swiper-button-prev:after,
.nhff-slider-main .swiper-button-next:after {
    display: none; /* hide default swiper arrows */
}

.nhff-slider-main .swiper-button-prev:hover,
.nhff-slider-main .swiper-button-next:hover {
    background: var(--nhff-white);
    transform: scale(1.08);
}

.nhff-btn-prev svg,
.nhff-btn-next svg {
    width: 18px;
    height: 18px;
    color: var(--nhff-accent);
}

.nhff-slider-main .swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ---- Thumbnail slider ---- */
.nhff-slider-thumbs {
    margin-top: 12px;
    padding: 4px 0;
}

.nhff-thumb-slide {
    width: var(--nhff-thumb-size) !important;
    height: var(--nhff-thumb-size);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity var(--nhff-transition), box-shadow var(--nhff-transition);
    border: 2px solid transparent;
    background: #e8e8e8;
    flex-shrink: 0;
}

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

.nhff-thumb-slide.swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--nhff-accent);
    box-shadow: 0 0 0 1px var(--nhff-accent);
}

.nhff-thumb-slide:hover {
    opacity: 0.85;
}

/* Video thumbnail placeholder */
.nhff-thumb-video-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nhff-thumb-video-placeholder svg {
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,.8);
    margin-left: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 310px) {
    :root {
        --nhff-thumb-size: 60px;
    }

.nhff-gallery-wrapper {
    max-width: 310px;
}

    .nhff-video-play-btn {
        width: 50px;
        height: 50px;
    }

    .nhff-video-play-btn svg {
        width: 18px;
        height: 18px;
    }
}