/* ---------- mobile ---------- */

.hero-module-wrap {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-xxxl);
}

.hero-module-wrap .hero-module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: var(--space-md);
    max-width: 80rem;
    margin: 0 auto;
}

.hero-module-wrap .hero-module-grid img {
    grid-column: span 4;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
}

.hero-module-wrap .hero-module-grid .hero-box {
    grid-column: span 4;
    background-color: #ffcd97;
    text-align: center;
    padding: var(--space-xxl) var(--space-xxl);
    border-radius: var(--radius-md);
}

.hero-module-wrap .hero-module-grid .hero-box h3 {
    margin-bottom: var(--space-md);
}

.hero-module-wrap .hero-module-grid .hero-box p {
    margin-top: var(--space-md)
}

/* ---------- tablet ---------- */

@media screen and (min-width: 48rem) {
    .hero-module-wrap .hero-module-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .hero-module-wrap .hero-module-grid .hero-box {
        border-radius: var(--radius-lg);
    }

    .hero-module-wrap .hero-module-grid img {
        grid-column: span 6
    }

    .hero-module-wrap .hero-module-grid .hero-box {
        grid-column: span 6;
    }
}

/* ---------- laptop ---------- */

@media screen and (min-width: 80rem) {
    .hero-module-wrap {
        overflow: hidden;
        margin-bottom: var(--space-xxxxl);
    }

    .hero-module-wrap.reveal .hero-module-grid {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 1s ease-out 0.2s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
    }

    .hero-module-wrap.reveal.active .hero-module-grid {
        opacity: 1;
        transform: translateY(0);
    }
    
    .hero-module-wrap .hero-module-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .hero-module-wrap .hero-module-grid img {
        grid-column: span 12;
        margin-bottom: 0;
    }

    .hero-module-wrap .hero-module-grid .hero-box {
        grid-column: 2 / span 10;
    }
}