/*
============================================================
Heal & Smile Gallery - External Embed CSS
============================================================
*/

#heal-smile-gallery {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}


#heal-smile-gallery *,
#heal-smile-gallery *::before,
#heal-smile-gallery *::after {
    box-sizing: border-box;
}


/*
============================================================
Filters
============================================================
*/

#heal-smile-gallery .hsg-gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}


#heal-smile-gallery .hsg-filter-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
    transition: all 0.2s ease;
}


#heal-smile-gallery .hsg-filter-btn:hover,
#heal-smile-gallery .hsg-filter-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}


/*
============================================================
Gallery Grid
============================================================
*/

#heal-smile-gallery .hsg-gallery-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 30px;
}


/*
============================================================
Gallery Card
============================================================
*/

#heal-smile-gallery .hsg-gallery-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}


#heal-smile-gallery .hsg-gallery-card-header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#heal-smile-gallery .hsg-gallery-title {
    font-size: 16px;    
}

#heal-smile-gallery .hsg-gallery-category {
    margin-bottom: 10px;
    background: #B2DFDB;
    color: #00695C;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}


/*
============================================================
Before / After
============================================================
*/

#heal-smile-gallery .hsg-before-after {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #eee;
    line-height: 0;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
}


#heal-smile-gallery .hsg-after-image {
    position: relative;
    width: 100%;
}


#heal-smile-gallery .hsg-after-image img {
    display: block;
    width: 100%;
    height: auto;
}


#heal-smile-gallery .hsg-before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}


#heal-smile-gallery .hsg-before-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}


/*
============================================================
Labels
============================================================
*/

#heal-smile-gallery .hsg-image-label {
    position: absolute;
    top: 15px;
    z-index: 5;

    padding: 6px 12px;

    background: rgba(0, 0, 0, 0.7);
    color: #fff;

    font-size: 13px;
    line-height: 1.2;

    pointer-events: none;
}


#heal-smile-gallery .hsg-before-label {
    left: 15px;
}


#heal-smile-gallery .hsg-after-label {
    right: 15px;
}


/*
============================================================
Slider
============================================================
*/

#heal-smile-gallery .hsg-slider-line {
    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 2px;

    background: #fff;

    z-index: 6;

    pointer-events: none;

    transform: translateX(-50%);
}


#heal-smile-gallery .hsg-slider-button {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #fff;

    z-index: 7;

    transform:
        translate(-50%, -50%);

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.25);

    pointer-events: none;
}


#heal-smile-gallery .hsg-slider-button::before {
    content: '↔';

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    color: #333;

    font-size: 20px;
    line-height: 1;
}


/*
============================================================
Range
============================================================
*/

#heal-smile-gallery .hsg-slider-range {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;

    opacity: 0;

    cursor: ew-resize;

    z-index: 10;
}


/*
============================================================
Description
============================================================
*/

#heal-smile-gallery .hsg-gallery-description {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.6;
}

#heal-smile-gallery .hsg-gallery-description p {
    text-align: center;
    color: #607D8B;
    font-size: 13px;
    margin-top: 12px;
    padding: 0 4px;
}


/*
============================================================
Messages
============================================================
*/

#heal-smile-gallery .hsg-loading,
#heal-smile-gallery .hsg-error,
#heal-smile-gallery .hsg-no-results {
    text-align: center;
    padding: 30px 10px;
    margin: 0;
}


/*
============================================================
Responsive
============================================================
*/

@media (max-width: 767px) {

    #heal-smile-gallery {
        padding: 15px;
    }


    #heal-smile-gallery .hsg-gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }


    #heal-smile-gallery .hsg-gallery-title {
        font-size: 20px;
    }


    #heal-smile-gallery .hsg-gallery-filters {
        justify-content: center;
        margin-bottom: 25px;
    }


    #heal-smile-gallery .hsg-filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    #heal-smile-gallery .hsg-gallery-category {
        text-align: center;
    }

}