﻿@import url("https://fonts.googleapis.com/css?family=Arvo");

body,
html {
    /*display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    background: #f5f4f4;*/
    /*font-size: 13px;*/
    /*font-family: 'Arvo', monospace;*/
}

@supports (display: grid) {
    body,
    html {
        display: block;
    }
}

.message {
    border: 1px solid #d2d0d0;
    padding: 2em;
    font-size: 1.7vw;
    box-shadow: -2px 2px 10px 0px rgba(68, 68, 68, 0.4);
}

@supports (display: grid) {
    .message {
        display: none;
    }
}

.section {
    display: none;
    padding: 2rem;
}

@media screen and (min-width: 768px) {
    .section {
        padding: 4rem;
    }
}

@supports (display: grid) {
    .section {
        display: block;
    }
}

/*h1 {
    font-size: 2rem;
    margin: 0 0 1.5em;
}*/

.grid {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 150px;
    grid-auto-flow: row dense;
}

.item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    background: #0c9a9a;
    color: #fff;
    grid-column-start: auto;
    grid-row-start: auto;
    color: #fff;
    background: url('../images/Dimitar-Pandilov-Vrakanje.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: -2px 2px 10px 0px rgba(68, 68, 68, 0.4);
    transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
    cursor: pointer;
    counter-increment: item-counter;
}

    .item:nth-of-type(1n) {
        background-image: url('../images/Dimitar-Pandilov-Vrakanje.jpg');
    }

    .item:nth-of-type(2n) {
        background-image: url('../images/Vangel-Kodzoman-Pazar.jpg');
    }
    .item:nth-of-type(3n) {
        background-image: url('../images/Vangel-Kodzoman-Struga-3.jpg');
    }

    .item:nth-of-type(4n) {
        background-image: url('../images/Tomo-Vladimirski-Meckin-kamen.jpg');
    }

    .item:nth-of-type(5n) {
        background-image: url('../images/Tomo-Sijak-Pejsas.jpg');
    }

    .item:nth-of-type(6n) {
        background-image: url('../images/Gligor-Cemerski-Srt.jpg');
    }

    .item:nth-of-type(7n) {
        background-image: url('../images/Vasko-Taskovski-Vegetacija.jpg');
    }

    .item:nth-of-type(8n) {
        background-image: url('../images/Danco-Ordev.jpg');
    }

    .item:nth-of-type(9n) {
        background-image: url('../images/Vladimir-Georgievski-Marko-Cepenkov.jpg');
    }

    .item:nth-of-type(10n) {
        background-image: url('../images/Dimitar-Stojcevski.jpg');
    }

    .item:nth-of-type(11n) {
        background-image: url('../images/Goce-Bozurski.jpg');
    }

    .item:nth-of-type(12n) {
        background-image: url('../images/Vasko-Taskovski-Vegetacija.jpg');
    }

    .item:nth-of-type(13n) {
        background-image: url('../images/Vasko-Taskovski-Vegetacija.jpg');
    }

    .item:nth-of-type(14n) {
        background-image: url('../images/Vasko-Taskovski-Vegetacija.jpg');
    }

    .item:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: black;
        opacity: 0.3;
        transition: opacity 0.3s ease-in-out;
    }

    .item:hover {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }

        .item:hover:after {
            opacity: 0;
        }

.item--medium {
    grid-row-end: span 2;
}

.item--large {
    grid-row-end: span 3;
}

.item--full {
    grid-column-end: auto;
}

@media screen and (min-width: 768px) {
    .item--full {
        grid-column: 1/-1;
        grid-row-end: span 2;
    }
}

.item__details {
    position: relative;
    z-index: 1;
    padding: 15px;
    color: #444;
    background: #fff;
    
    letter-spacing: 1px;
    color: #828282;
}

    /*.item__details:before {
        content: counter(item-counter);
        font-weight: bold;
        font-size: 1.1rem;
        padding-right: 0.5em;
        color: #444;
    }*/
