﻿*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

body{
    background: #ecf4fb;
}

.container {
    width: 90%;   
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.gallery-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item .image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item .image img {
    width: 98%;
    height: auto;
    object-fit: cover;
    object-position: 50% 50%;
    cursor: pointer;
    transition: 0.5s ease-in-out;
}

/*.gallery-item:hover .image img {
    transform: scale(1.5);
}*/

/*.container img:hover {
    transform: scale(0.8) rotate(-15deg);
    border-radius: 20px;
    box-shadow: 0 32px 75px rgba(68,77,136,0.2);
}*/

.gallery-item .text {
    opacity: 1;
    font-size:20px;

/*    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #fff;
    font-size: 25px;
    pointer-events: none;
    z-index: 4;
    transition: 0.3s ease-in-out;
    -webkit-backdrop-filter: blur(5px) saturate(1.8);
    backdrop-filter: blur(5px) saturate(1.8);*/
}

.gallery-item:hover .text {
    opacity: 1;
    animation: move-down 0.3s linear;
    padding: 0px;
    width: 100%;
    outline: 2px solid red;
}

.full-img{
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    position: fixed;
    top: 10px;
    left:10px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index:100;
}

.full-img img{
    /*width:100%;*/
    height:100%;
    width:auto;
    /*max-width: 500px;*/
}

.full-img span{
    position: absolute;
    top: 5%;
    right: 5%;
    font-size: 30px;
    color: #ff0000;
    cursor: pointer;
}

