/* ==========================================================================
   Grab Smart Vending - photography layer
   Card photos, section photo bands, and hero media treatments.
   Loaded after gsv-design so it inherits the shared design tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Card photo (one photo per card container)
   -------------------------------------------------------------------------- */

.gsv-cardshot {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 6px;
    background: rgba(0, 167, 157, 0.07);
    line-height: 0;
}

.gsv-cardshot img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 14px;
    transform: scale(1.001);
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.gsv-cardshot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(4, 29, 27, 0.08);
}

.gsv-indcard:hover .gsv-cardshot img,
.gsv-card:hover .gsv-cardshot img {
    transform: scale(1.055);
}

/* --------------------------------------------------------------------------
   2. Section photo band (one photo per band container)
   -------------------------------------------------------------------------- */

.gsv-bandshot {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(0, 167, 157, 0.07);
    box-shadow: 0 26px 60px -34px rgba(4, 29, 27, 0.55);
    line-height: 0;
}

.gsv-bandshot img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 22px;
}

.gsv-bandshot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   3. Band container spacing
   -------------------------------------------------------------------------- */

.gsv-band-inner {
    width: 100%;
}

/* --------------------------------------------------------------------------
   4. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .gsv-bandshot img {
        max-height: 420px;
    }
}

@media (max-width: 767px) {
    .gsv-bandshot,
    .gsv-bandshot img,
    .gsv-bandshot::after {
        border-radius: 16px;
    }

    .gsv-bandshot img {
        max-height: 300px;
    }

    .gsv-cardshot img {
        aspect-ratio: 16 / 9;
    }
}

/* --------------------------------------------------------------------------
   5. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .gsv-cardshot img {
        transition: none;
    }

    .gsv-indcard:hover .gsv-cardshot img,
    .gsv-card:hover .gsv-cardshot img {
        transform: none;
    }
}
