section.my-grid-layout {
    max-width: 90%;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 10px;
    grid-auto-flow: dense;
}
@media screen and (max-width: 767px) {
    section.my-grid-layout {
        grid-template-columns: repeat(2, 1fr);
   }
}
section article.wide-2 {
    grid-column-end: span 2;
    grid-row-end: span 2;
}
section article figure {
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 150%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.93;
}

section article figure:hover {
    opacity: 1;
}

section article figure div {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    transform: scale(1);
    transition: transform 0.5s ease-in;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: grayscale(0.7)
}
section article figure:hover div {
    transform: scale(1.05);
    transition: all 0.5s ease-out;
    filter: grayscale(0)
}

section article figure .grid-img-caption{
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: var(--overlay-50);
    backdrop-filter: blur(15px);
    color: var(--bg-color);
    padding: 20px;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

section article figure:hover .grid-img-caption {
    font-size: 1.1em;
    padding: 28px;
}