section.happyMoments {
    padding: 0;
    margin: 0;
    margin: 100px 20px 0;
    padding: 50px 5px 0;

    box-sizing: border-box;
    overflow-x: hidden;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    border-radius: 20px;
}

section.happyMoments img,
section.happyMoments h1,
section.happyMoments .slider-item {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

section.happyMoments .happyMoments-slider-container {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

section.happyMoments .slider-item {
    padding: 1rem;
    margin: 10px;
    box-sizing: border-box;
    text-align: center;
}


/* Styling for the main heading */
.happyMoments-title {
    color: #000;
    font-weight: bold;
    padding-left: 40px !important;
    padding-bottom: 20px !important;
    font-family: Great Vibes;
    font-size: 5rem;
    word-spacing: 15px;
}

/* Slider container styling */
.happyMoments-slider-container {
    padding: 1rem;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Styling for each slider item */
.slider-item {
    margin: 10px;
    box-sizing: border-box;
    text-align: center;
    width: calc(100% / 2);/
}

.slider-item figure {
    width: 100%;
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* Slider images styling */
.slider-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.bg-image:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    cursor: pointer;
}

/* Caption styling */
figcaption {
    color: #000;
    text-align: center;
    margin-top: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
}

/* Slick slider arrow customizations */
.slick-next:before,
.slick-prev:before {
    padding-top: 5px;
    font-family: slick;
    font-size: 40px;
    opacity: 0.75;
    color: #FF0000;
}

.slick-prev,
.slick-next {
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slick-next {
    right: 10px;
}

.slick-prev {
    left: 10px;
}

.slick-next:hover:before,
.slick-prev:hover:before {
    color: #b80000;
}

/* Media query for smaller screens */
@media (min-width: 320px) and (max-width: 480px) {
    .happyMoments h1 {
        font-size: 2rem;
    }

    .happyMoments-slider-container {
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .slider-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 300px;
        position: relative;
    }

    .slider-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }

    figcaption {
        text-align: center;
        margin-top: 0.5rem;
        color: #000;
    }

    /* Reduce the size of the slick arrows on small screens */
    .slick-prev,
    .slick-next {
        width: 30px;
        height: 30px;
    }

    .slick-prev:before,
    .slick-next:before {
        font-size: 20px;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .happyMoments h1 {
        font-size: 2.5rem;
    }

    .happyMoments-slider-container {
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .slider-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 300px;
        position: relative;
    }

    .slider-item img {
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }


    .slick-next:before,
    .slick-prev:before {
        font-size: 25px;
    }

    .slick-prev,
    .slick-next {
        width: 40px;
        height: 40px;
    }
}