@import url('font.css');


body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.gallery-page {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100vw;
}


.gallery-page a {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    display: block;
}

.gallery-page img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease-out;
}

.gallery-page img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}


.hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
    padding: 8px 10px 8px 25px;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: left;
}

.hover-info::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.gallery-item:hover .hover-info {
    opacity: 1;
}



@media screen and (max-width: 676px) {
    .gallery-page {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 677px) and (max-width: 1024px) {
    .gallery-page {
        grid-template-columns: repeat(4, 1fr);
    }
}