@charset "utf-8";
/* CSS Document */
.container {
    display: grid;
    grid-auto-rows: 400px 400px;
    grid-gap: 2px;
    grid-template-columns: repeat(3,1fr);
    grid-auto-flow: dense;
}
.gallery-item {
    width: 100%;
    height: 100%;
    position: relative;
}
.gallery-item .image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.gallery-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    cursor: pointer;
    /*transition: .5s ease-in-out;*/
}
.gallery-item .image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    cursor: pointer;
    /*transition: .5s ease-in-out;*/
}
/*.gallery-item:hover .image img {
    transform: scale(1.5);
}
.gallery-item:hover .image video {
    transform: scale(1.5);
}*/
.gallery-item .text {
    /*opacity: 0;*/
    opacity: .7;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    background-color: #FFF;
    padding: 10px;
    font-size: 20px;
    pointer-events: none;
    z-index: 4;
    /*transition: .3s ease-in-out;*/
}
/*.gallery-item:hover .text {
    opacity: .7;
}*/
.w-1 {
    grid-column: span 1;
}
.w-2 {
    grid-column: span 2;
}
.w-3 {
    grid-column: span 3;
}
.w-4 {
    grid-column: span 4;
}
.h-1 {
    grid-row: span 1;
}
.h-2 {
    grid-row: span 2;
}
.h-3 {
    grid-row: span 3;
}
.h-4 {
    grid-row: span 4;
}

@media only screen and (max-width: 500px) {
.container {
    grid-auto-rows: 200px 300px;
    grid-template-columns: repeat(1, 1fr);
}
    .gallery-item .text {
    padding: 5px;
    font-size: 18px;
    pointer-events: none;
}
.w-1, .w-2, .w-3, .w-4 {
    grid-column: span 1;
}
}
