﻿@font-face {
    font-family: "BebasNeue";
    src: url(../fonts/BebasNeue.otf);
    font-weight: normal;
    font-style: normal;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: rgb(236, 235, 235);
}

img {
    width: 80px;
}

.title {
    text-align: center;
    padding: 0 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 2.4rem;
    font-family: "BebasNeue";
}

.gallery {
    width: 85%;
    /*max-width: 1200px;*/
    max-width: 1020px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, 133px);
    grid-auto-rows: 200px;
    justify-content: center;
    gap: 1rem;
}

.gallery_item {
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    grid-column: span 2; /*266px + 17px = 283px */
    height: 283px; /*83px*/
    transition: 0.5s filter;
    background: gray;
    cursor: pointer;
    transition: 0.5s;
}

.gallery_item_inside {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: white;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gallery_item h3 {
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 10px;
    font-size: 17px;
    Letter-spacing: 1px;
    font-family: "BebasNeue";
}

.gallery_item:hover {
    /*background: deepskyblue;*/
    filter: brightness(0.5);
    transform: scale(1.1);
}

.gallery_item:first-of-type {
    grid-column: 2/ span 2;
}
.fa-big{
    font-size:100px;
}

/* MEDIA QUERIES */
@media screen and (min-width: 270px) and (max-width: 504px) {
    .gallery_item:first-of-type {
        grid-column: 1 / span 2;
    }

    .gallery {
        grid-auto-rows: 283px;
    }
}

@media screen and (min-width: 505px) and (max-width: 685px) {
    .gallery_item:nth-of-type(odd) {
        grid-column: 2/ span 2;
    }
    .gallery {
        grid-auto-rows: 200px 200px 200px 200px 200px 200px 283px;
    }
}

@media screen and (min-width: 686px) and (max-width: 862px) {
    .gallery_item:nth-of-type(3n + 1) {
        grid-column: 2/ span 2;
    }
    .gallery {
        grid-auto-rows: 200px 200px 200px 200px 283px;
    }

}

@media screen and (min-width: 863px) and (max-width: 1038px) {
    .gallery_item:nth-of-type(4n + 1) {
        grid-column: 2/ span 2;
    }
    .gallery {
        grid-auto-rows: 200px 200px 200px 283px;
    }
}
@media screen and (min-width: 1039px) {
    .gallery_item:nth-of-type(5n + 1) {
        grid-column: 2/ span 2;
    }

    .gallery {
        grid-auto-rows: 200px 200px 283px;
    }
}


/*@media screen and (min-width: 1039px) and (max-width: 1215px) {
    .gallery_item:nth-of-type(5n + 1) {
        grid-column: 2/ span 2;
    }
    .gallery {
        grid-auto-rows: 200px 200px 200px 283px;
    }
}

@media screen and (min-width: 1216px) and (max-width: 1391px) {
    .gallery_item:nth-of-type(6n + 1) {
        grid-column: 2/ span 2;
    }
    .gallery {
        grid-auto-rows: 200px 200px 200px 283px;
    }
}

@media screen and (min-width: 1392px) {
    .gallery_item:nth-of-type(7n + 1) {
        grid-column: 2/ span 2;
    }
    .gallery {
        grid-auto-rows: 200px 200px 283px;
    }
}*/
