/*
   =========================================================
   ZOOM PHOTO STUDIO - HOME-SERVICES.CSS vFONT-1.2
   Gold framed service images with subtle shadow
   Larger mobile swipe arrows / swipe indicator
   =========================================================
*/

.home_services {
    padding: 24px 0 72px;
    background: var(--zoom-warm-white);
}


/*
   =========================================================
   SERVICE GRID
   =========================================================
*/

.home_services_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}


/*
   =========================================================
   IMAGE
   =========================================================
*/

.service_image_link {
    display: block;
    aspect-ratio: 0.76;
    overflow: hidden;
    background: var(--zoom-cream);
    border: 1px solid var(--zoom-gold);
    box-shadow: 0 8px 22px rgba(34, 29, 25, 0.10);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

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

.service_card:hover .service_image_link {
    box-shadow: 0 12px 28px rgba(34, 29, 25, 0.16);
    transform: translateY(-2px);
}

.service_card:hover .service_image_link img {
    transform: scale(1.025);
}


/*
   =========================================================
   SERVICE TITLE
   =========================================================
*/

.service_card h2 {
    margin-top: 18px;
    color: var(--zoom-charcoal);
    font-family: var(--zoom-serif);
    font-size: 1.5938rem;
    font-weight: 500;
    text-align: center;
}


/*
   =========================================================
   SERVICE TEXT
   =========================================================
*/

.service_card p {
    max-width: 260px;
    min-height: 52px;
    margin: 5px auto 10px;
    color: var(--zoom-muted);
    font-size: var(--zoom-body-size);
    line-height: 1.65;
    text-align: center;
}


/*
   =========================================================
   EXPLORE LINK
   =========================================================
*/

.service_card .text_link {
    width: 100%;
    justify-content: center;
}


/*
   =========================================================
   SWIPE INDICATOR

   Hidden by default.
   Only displayed on mobile.
   =========================================================
*/

.home_services_swipe {
    display: none;
}


/*
   =========================================================
   TABLET
   =========================================================
*/

@media (max-width: 900px) {

    .home_services_grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/*
   =========================================================
   MOBILE
   =========================================================
*/

@media (max-width: 520px) {

    .home_services {
        padding-bottom: 52px;
    }


    /*
       -----------------------------------------------------
       SWIPE INDICATOR
       -----------------------------------------------------
    */

    .home_services_swipe {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin: 0 0 18px;
        color: var(--zoom-bronze);
    }

    .home_services_swipe_arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        color: var(--zoom-bronze);
        font-family: Arial, sans-serif;
        font-size: 1.875rem;
        font-weight: 300;
        line-height: 1;
    }

    .home_services_swipe_text {
        color: var(--zoom-muted);
        font-size: var(--zoom-body-size);
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }


    /*
       -----------------------------------------------------
       HORIZONTAL CARD SCROLLER
       -----------------------------------------------------
    */

    .home_services_grid {
        display: flex;
        gap: 16px;
        padding-bottom: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .home_services_grid::-webkit-scrollbar {
        display: none;
    }


    /*
       -----------------------------------------------------
       CARDS
       -----------------------------------------------------
    */

    .service_card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }


    /*
       -----------------------------------------------------
       MAKE EXPLORE ARROW MORE OBVIOUS
       -----------------------------------------------------
    */

    .service_card .text_link {
        gap: 12px;
        font-size: 0.6875rem;
    }

    .service_card .text_link span {
        display: inline-block;
        color: var(--zoom-bronze);
        font-size: 1.5rem;
        font-weight: 400;
        line-height: 0.8;
        transform: translateY(-1px);
    }

    .service_card .text_link:hover span {
        transform: translate(4px, -1px);
    }

}