/* =========================================================
   ARIVATION HEALTHCARE
   GALLERY PAGE
   Load AFTER assets/css/style.css
========================================================= */


/* =========================================================
   RESET
========================================================= */

.ari-gallery-page,
.ari-gallery-page *,
.ari-gallery-page *::before,
.ari-gallery-page *::after {
    box-sizing: border-box;
}


.ari-gallery-page {
    position: relative;

    overflow: hidden;

    color: #586f84;

    background: #f5fafc;

    font-family:
        "DM Sans",
        sans-serif;
}


/* =========================================================
   BANNER
========================================================= */

.ari-gallery-banner {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #eaf5f8;
}


.ari-gallery-banner img {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    max-width: 100%;

    opacity: 1 !important;

    visibility: visible !important;
}


/* =========================================================
   CONTAINER
========================================================= */

.ari-gallery-container {
    position: relative;

    z-index: 2;

    width:
        min(1320px, calc(100% - 48px));

    margin: 0 auto;
}


/* =========================================================
   GALLERY SECTION
========================================================= */

.ari-gallery-section {
    position: relative;

    padding:
        95px 0 110px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(7, 152, 196, .07),
            transparent 25%
        ),
        radial-gradient(
            circle at 94% 84%,
            rgba(19, 164, 134, .06),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #f8fcfd 0%,
            #f3f9fb 100%
        );
}


.ari-gallery-section::before {
    position: absolute;

    top: -160px;
    right: -150px;

    width: 420px;
    height: 420px;

    border:
        70px solid
        rgba(7, 152, 196, .035);

    border-radius: 50%;

    content: "";

    pointer-events: none;
}


.ari-gallery-section::after {
    position: absolute;

    bottom: -150px;
    left: -120px;

    width: 330px;
    height: 330px;

    border:
        55px solid
        rgba(19, 164, 134, .035);

    border-radius: 50%;

    content: "";

    pointer-events: none;
}


/* =========================================================
   HEADING
========================================================= */

.ari-gallery-section-heading {
    position: relative;

    z-index: 2;

    max-width: 840px;

    margin:
        0 auto 48px;

    text-align: center;
}


.ari-gallery-subtitle,
.ari-gallery-section-heading > span {
    display: inline-flex;

    min-height: 38px;

    padding:
        0 15px;

    align-items: center;

    justify-content: center;

    border:
        1px solid #cae7ef;

    border-radius: 50px;

    color: #067b9e;

    background: #eaf7fb;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .7px;

    text-transform: uppercase;
}


.ari-gallery-section-heading h1 {
    margin:
        18px 0 14px;

    color: #102e59;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(39px, 4.5vw, 58px);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -1.8px;
}


.ari-gallery-section-heading h1 strong {
    color: #0798c4;

    font-weight: 800;
}


.ari-gallery-section-heading p {
    max-width: 720px;

    margin: 0 auto;

    color: #61798c;

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   GRID
========================================================= */

.ari-gallery-grid {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================================
   CARD
========================================================= */

.ari-gallery-card {
    position: relative;

    display: flex;

    min-width: 0;

    height: 78%;

    overflow: hidden;

    flex-direction: column;

    border:
        1px solid #d9e8ed;

    border-radius: 24px;

    background: #fff;

    box-shadow:
        0 13px 35px
        rgba(16, 46, 73, .08);

    opacity: 1 !important;

    visibility: visible !important;

    transform: none;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.ari-gallery-card:hover {
    border-color:
        rgba(7, 152, 196, .35);

    box-shadow:
        0 25px 52px
        rgba(16, 46, 73, .14);

    transform:
        translateY(-7px);
}


/* =========================================================
   IMAGE CONTAINER
========================================================= */

.ari-gallery-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    color: inherit;

    background: #e7f1f5;

    text-decoration: none;
}


/*
   IMPORTANT:
   These rules deliberately override any old/global styles
   that might be hiding gallery images.
*/

.ari-gallery-image img {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;

    object-fit: cover !important;
    object-position: center !important;

    opacity: 1 !important;

    visibility: visible !important;

    transform:
        scale(1) !important;

    filter: none !important;

    transition:
        transform .4s ease !important;
}


.ari-gallery-card:hover
.ari-gallery-image img {
    transform:
        scale(1.055) !important;
}


/* Image overlay */

.ari-gallery-image::after {
    position: absolute;

    inset: 0;

    z-index: 1;

    content: "";

    pointer-events: none;

    opacity: 0;

    background:
        linear-gradient(
            180deg,
            rgba(5, 32, 54, 0) 42%,
            rgba(5, 32, 54, .36) 100%
        );

    transition:
        opacity .3s ease;
}


.ari-gallery-card:hover
.ari-gallery-image::after {
    opacity: 1;
}


/* =========================================================
   VIEW ICON
========================================================= */

.ari-gallery-view-icon {
    position: absolute;

    right: 18px;
    bottom: 18px;

    z-index: 3;

    display: grid;

    width: 47px;
    height: 47px;

    place-items: center;

    border:
        1px solid
        rgba(255, 255, 255, .3);

    border-radius: 14px;

    color: #fff;

    background:
        rgba(9, 57, 84, .82);

    box-shadow:
        0 10px 26px
        rgba(5, 34, 55, .18);

    backdrop-filter:
        blur(8px);

    font-size: 18px;

    transition:
        transform .3s ease,
        background .3s ease;
}


.ari-gallery-card:hover
.ari-gallery-view-icon {
    background: #0798c4;

    transform:
        translateY(-4px);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.ari-gallery-card-content {
    display: flex;

    min-height: 86px;

    padding:
        21px 21px 22px;

    align-items: center;

    justify-content: center;

    flex: 1;

    text-align: center;
}


.ari-gallery-card-content h3 {
    margin: 0;

    color: #123650;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 20px;

    font-weight: 800;

    line-height: 1.4;
}


/* =========================================================
   BROKEN IMAGE INDICATOR
========================================================= */

.ari-gallery-image-error {
    min-height: 260px;

    background:
        repeating-linear-gradient(
            45deg,
            #eef5f7,
            #eef5f7 12px,
            #f6fafb 12px,
            #f6fafb 24px
        );
}


.ari-gallery-image-error::before {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 5;

    width: 90%;

    content:
        "Image file not found — check assets/images/gallery/";

    color: #b13e3e;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.5;

    text-align: center;

    transform:
        translate(-50%, -50%);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .ari-gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px;
    }

}


@media (max-width: 991px) {

    .ari-gallery-container {
        width:
            min(820px, calc(100% - 38px));
    }


    .ari-gallery-section {
        padding:
            78px 0 90px;
    }


    .ari-gallery-section-heading {
        margin-bottom: 40px;
    }


    .ari-gallery-section-heading p {
        font-size: 16px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .ari-gallery-container {
        width:
            calc(100% - 28px);
    }


    .ari-gallery-section {
        padding:
            65px 0 78px;
    }


    .ari-gallery-section-heading {
        margin-bottom: 34px;
    }


    .ari-gallery-subtitle,
    .ari-gallery-section-heading > span {
        min-height: 35px;

        padding:
            0 12px;

        font-size: 11px;
    }


    .ari-gallery-section-heading h1 {
        margin:
            15px 0 12px;

        font-size: 35px;

        letter-spacing: -1px;
    }


    .ari-gallery-section-heading p {
        font-size: 15px;

        line-height: 1.75;
    }


    .ari-gallery-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .ari-gallery-card {
        width: min(100%, 590px);

        margin: 0 auto;

        border-radius: 21px;
    }


    .ari-gallery-card-content {
        min-height: 80px;

        padding:
            18px 17px 19px;
    }


    .ari-gallery-card-content h3 {
        font-size: 19px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {

    .ari-gallery-container {
        width:
            calc(100% - 22px);
    }


    .ari-gallery-section {
        padding:
            55px 0 66px;
    }


    .ari-gallery-section-heading {
        margin-bottom: 29px;
    }


    .ari-gallery-section-heading h1 {
        font-size: 31px;
    }


    .ari-gallery-section-heading p {
        font-size: 15px;
    }


    .ari-gallery-card {
        border-radius: 18px;
    }


    .ari-gallery-image {
        aspect-ratio: 4 / 3;
    }


    .ari-gallery-view-icon {
        right: 13px;
        bottom: 13px;

        width: 42px;
        height: 42px;

        border-radius: 12px;

        font-size: 16px;
    }


    .ari-gallery-card-content {
        min-height: 72px;

        padding:
            16px 14px;
    }


    .ari-gallery-card-content h3 {
        font-size: 17px;

        line-height: 1.4;
    }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    .ari-gallery-section-heading h1 {
        font-size: 28px;
    }


    .ari-gallery-card-content h3 {
        font-size: 16px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ari-gallery-page *,
    .ari-gallery-page *::before,
    .ari-gallery-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}