#states {
    position: relative;
    padding-block: 100px;
}
#states h2 {
    text-align: center !important;
}
#states p {
    text-align: center;
}
#states .states-row {
    margin-block: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
}
@media (min-width: 767.8px) {
    #states .states-row {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    #states .states-row {
        grid-template-columns: repeat(4, 1fr);
    }
}
#states .states-row .state-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
#states .states-row .state-link {
    text-decoration: none;
}
#states .states-row .state-link .state-inner {
    position: relative;
    width: 220px;
    height: 200px;
    overflow: hidden;
}
#states .states-row .state-link .state-inner .state-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: auto;
    height: 100%;
    transition: 0.4s all;
}
#states .states-row .state-link .state-inner h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    z-index: 2;
    margin-block: 0;
    text-align: center;
    font-size: 24px;
    padding-inline: 10px;
    transition: 0.4s all;
}
#states .states-row .state-link:hover h3 {
    color: var(--purple-10);
}
#states .states-row .state-link:hover .state-image {
    transform: translate(-50%, -50%) scale(1.1);
}
 