button {
    margin-bottom: 10vh;
}

.hero-container {
    position: relative;
}

.hero-img {
    object-fit: cover;
    margin: 0;
    padding: 0;
    width: 100%;
    border-block: min(1px, 0.1vh) solid #00000050;
}

.gallery {
    margin-top: -4rem;
}

.gallery-banner {
    color: #579abe; 
    background-color: #F8C8DC; 
    padding-block: 2rem; 
    font-size: var(--font-size); 
    border-radius: 6rem; 
    top: 2.5rem; 
    margin-bottom: 4rem;
    margin-inline: min(4rem, 4vw);
    padding-inline: 2rem;
    position: relative;
    text-align: center;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card {
    width: 30%;
    height: 32rem;
}

.gallery-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    box-shadow: 0px 1px 4px 2px rgba(0,0,0,.1);
}

.loader {
    display: flex;
    justify-content: center;
}

.skeleton-card {
    width: 30%;
    height: 32rem;
    margin: 8px;
    border-radius: 3px;
    transition: all 200ms ease-in-out;
    position: relative;
    background-color: #eaeaea;
    
    overflow-x: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
    animation: load 1s infinite;
    
    overflow-x: hidden;
}

@keyframes load {
    100% {
        transform: translateX(100%);
    }
}

@media screen and (prefers-reduced-motion: reduce) {
    .skeleton-card::after {
        animation: none;
    }
}
  
  
/* ---- Different Screen Sizes ---- */
@media screen and (max-width: 599px) {
    .gallery-banner {
        font-size: var(--font-size-mobile);
        top: 3.5rem;
        margin-bottom: 5rem;
    }

    .card-container,
    .loader {
        flex-direction: column;
    }

    .card,
    .skeleton-card {
        width: 80%;
        margin: auto;
    }
}

@media screen and (max-width: 800px) {
    .card {
        min-width: 45%;
    }
}

@media screen and (min-width: 801px) {
    .gallery-img.active {
        position: relative;
        z-index: 1;
        transform: scale(1.2);
        transition: transform 0.4s;
        transition-delay: 0.4s;
    }
}

@media screen and (min-width: 1481px) {
    .gallery-img.active {
        position: relative;
        z-index: 1;
        transform: scale(1.4);
        transition: transform 0.4s;
        transition-delay: 0.4s;
    }
}