.grid-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 100%;
    margin: 0 auto;
}

.section-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
    height: 8em; 
}

.section-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 70%);
    pointer-events: none; 
    z-index: 10; 
    transition: background-color 0.5s ease-in-out;
}

.section-item:hover::before {
    background-color: rgba(60, 60, 60, 0);
}

.section-item img {
    display: block;
width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.section-item:hover img {
    transform: scale(1.1);
}

.title-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    padding: 0 1.5rem;
    transform: translateY(-50%);
    text-align: left;
    z-index: 20;
    filter: drop-shadow(2px 4px 6px black);
}

@media screen and (max-width: 400px) {
.title-container{
    padding: 0 0.5rem;
}
}

.title-container h3 {
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin: 0;
    font-size: 1em;
    line-height: 1.2;
    font-weight: bold;
    transition: transform 0.5s ease-in-out;
}

.section-item:hover h3 {
    transform: scale(1.05);
}

a {
    color: white;
    cursor: pointer;
    text-decoration: none;
}

@media screen and (max-width: 400px) {
a.section-link{
    font-size: .75em;
}
}

@media screen and (max-width: 300px) {
a.section-link{
    font-size: .5em;
}
}

@media screen and (max-width: 1200px) {
    .htmlModuleWrap {
padding-left: 0em;
padding-right: 0em;
    }
}

@media screen and (max-width:600px){
.section-item{
    width: 90%;
}
}

@media screen and (max-width:400px){
.section-item{
    width: 80%;
}
}

@media screen and (max-width:500px){
.grid-container{
    justify-content: center;
    justify-items: center;
}
}