@import url('https://fonts.googleapis.com/css2?family=Delius+Unicase&family=Roboto:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    font-family: 'Delius Unicase', cursive;
    margin-bottom: 80px;
}

.container {
    max-width: 1170px;
    width: 90%;
    margin: 0 auto;
}

.section__grid-item {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    transition: all 1s;
}

.section__grid-item:hover {
    box-shadow: 0px 0px 15px black;
}

.photo-name ,
.photo-date {
    position: absolute;
    bottom: 20px;
    color: white;
    z-index: 1;
    font-size: 1rem;
}

.photo-name {
    left: 20px;
    font-weight: 600;
}

.photo-date {
    right: 20px;
}

.section__grid-item img {
    width: 100%;
    height: 100%;
}

.blur {
    background: linear-gradient(360deg, #241F24 0%, rgba(91, 91, 91, 0.4) 34.11%, rgba(187, 186, 192, 0.26) 62.5%);
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.filter {
    height: 100%;
    width: 100%;
    background-color: #D9D9D9;
    top: 0;
    opacity: 0.2;
    transition: all 1s;
}

.filter-button {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    transition: all 1s;
}

.filter-button:hover .filter {
    opacity: 0;
}

.filter-button:hover span {
    opacity: 0.5;
}

.filter-button:hover span:hover {
    opacity: 1;
}

.heart,
.dawnload {
    position: absolute;
    background-color: #E0E0E0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    opacity: 0;
    transition: all 1s;
    top: 20px;
}

.dawnload img, .heart img {
    width: 50%;
}

.heart{
    left: 20px;
}

.dawnload {
    right: 20px;
}

.heart:hover, .dawnload:hover {
    opacity: 1;
    cursor: pointer;
}

.--grid {
    display: grid;
    gap: 30px;
}
 
.section1 {
    padding-top: 120px;
}

.section1, .section2, .section3 {
    margin-bottom: 120px;
}

.section1__grid {
    grid-template-columns: repeat(3 , 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.section1__grid .section__grid-item:nth-of-type(2) {
    grid-column: span 2;
}

.section1__grid .section__grid-item:nth-of-type(3) {
    grid-column: span 2;
}

.section1__grid .section__grid-item:nth-of-type(6) {
    grid-column: span 2;
}

.section2__grid {
    grid-template-columns: repeat(3 , 1fr);
    grid-template-rows: repeat(4, 1fr);
}

.section2__grid .section__grid-item:nth-of-type(2) {
    grid-column: span 2;
    
}

.section2__grid .section__grid-item:nth-of-type(3) {
    grid-column: span 2;
    grid-row: span 2;
}

.section2__grid .section__grid-item:nth-of-type(4) {
    grid-row: span 2;
}

.section2__grid .section__grid-item:nth-of-type(5) {
    grid-column: span 2;
}

.section3__grid {
    grid-template-columns: repeat(3 , 1fr);
    grid-template-rows: repeat(5, 1fr);
}

.section3__grid .section__grid-item:nth-of-type(2) {
    grid-row: span 2;
}

.section3__grid .section__grid-item:nth-of-type(5) {
    grid-row: span 2;
}

.section3__grid .section__grid-item:nth-of-type(6) {
    grid-row: span 2;
}

.section3__grid .section__grid-item:nth-of-type(8) {
    grid-column: span 2;
}

.section3__grid .section__grid-item:nth-of-type(9) {
    grid-column: span 2;
}

@media (max-width: 500px) {
    body,html {
        font-size: 8px;
    }
    .section__grid-item {
        border-radius: 8px;
    }
    .--grid {
        gap: 8px
    }
    .photo-name {
        left: 5px;

    }
    .photo-date {
        left: 5px;
        bottom: 10px;
    }

    .heart,
    .dawnload {
        width: 20px;
        height: 20px;
        border-radius: 5px;
        top: 10px;
    }
    
    .heart {
        left: 10px;
    }

    .dawnload {
        right: 10px;
    }

    .section1 {
        padding-top: 30px;
    }
    
    .section1, .section2, .section3 {
        margin-bottom: 40px;
    }

    h2 {
        margin-bottom: 30px;
    }
}