/* Grids --------------------------------------------*/

.masonry-container {
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: repeat(12, 150px); */
    margin: 0 auto;
    max-width: 100%;
    padding: 3rem 0;
}

/* Grid images --------------------------------------------*/

.masonry-img {
    border-radius: 1rem;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Grid items --------------------------------------------*/

.item-4 {
    grid-row: 2/5;
}

.item-5 {
    grid-row: 2/6;
}

.item-6 {
    grid-row: 2/4;
}

.item-7 {
    grid-row: 5/6;
}

.item-8 {
    grid-row: 4/6;
}

.item-9 {
    grid-row: 6/11;
}

.item-10 {
    grid-row: 6/7;
}

.item-11 {
    grid-row: 6/9;
}

.item-12 {
    grid-row: 7/12;
}

.item-13 {
    grid-row: 9/13;
}

.item-14 {
    grid-row: 11/13;
}


/* Animation 1 --------------------------------------------*/
.image05 {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 1rem;
    -webkit-box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.3);
}

.image05 .imgB {
    width: 100%;
    top: 0;
    left: 0;
    position: relative;
    opacity: 1;
}

.image05 .imgT {
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    opacity: 0.5;
}

.image05 .ovrly {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    width: 100%;
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.image05 .buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.image05 .buttons .masonry-text {
    background: rgb(237 203 154 / 48%);
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    color: rgb(255, 255, 255);
    display: inline-block;
    margin: 0 1px;
    line-height: 40px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    width: 250px;
    height: auto;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    opacity: 0;
    padding: 2px 5px;
}

.image05:hover .imgT {
    opacity: 0;
    -webkit-transform: scale(5);
    -moz-transform: scale(5);
    -ms-transform: scale(5);
    -o-transform: scale(5);
    transform: scale(5);
    transition: all 0.5s ease-in-out;
}

.image05:hover .ovrly {
    opacity: 1;
}

.image05:hover .buttons .masonry-text {
    opacity: 1;
}
