
.angry-grid {
    display: grid;
    height: 80vh;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 50px 50px 0 50px;
    gap: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

#item-0, #item-1, #item-2, #item-3, #item-4 {
    position: relative;
    overflow: hidden;
}

#item-0 {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    border-radius: 16px;
}

#item-1 {
    grid-row: 1 / 2;
    grid-column: 2 / 4;
    border-radius: 16px;
}

#item-2 {
    grid-row: 1 / 2;
    grid-column: 4 / 5;
    border-radius: 16px;
}

#item-3 {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    border-radius: 16px;
}

#item-4 {
    grid-row: 2 / 3;
    grid-column: 3 / 5;
    border-radius: 16px;
}

.img1 img,
.img2 img,
.img3 img,
.img4 img,
.img5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.img1 img,
.img2 img,
.img3 img,
.img4 img,
.img5 img {
    transform: scale(1.05);
    transition: transform 0.6s ease, border-radius 0.6s ease;
}

body:not(.body_loaded) img:not([src*=".png"]):not([src*=".svg"]):not([src*=".webp"]),
img:not([src]) {
    background: linear-gradient(180deg, #ffffff 0, #ffffff 100%);
    border: 0;
}

.img1 img:hover,
.img2 img:hover,
.img3 img:hover,
.img4 img:hover,
.img5 img:hover {
    transform: scale(1.1);
}


.item-text,
.item-p1,
.item-p2,
.item-p3,
.item-p4,
.item-p5 {
    position: absolute;
    left: 0;
    color: #ffffff;
    text-align: center;
    padding: 0 0 100px 40px;
    box-sizing: border-box;
}

.item-text {
    bottom: 40px;
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 10px;
}

.item-p1, .item-p2, .item-p3, .item-p4, .item-p5 {
    bottom: 10px;
    font-size: 24px;
}
@media (max-width: 880px) {
    .item-p1, .item-p2, .item-p3, .item-p4, .item-p5 {
        bottom: 10px;
        font-size: 12px;
    }
    .item-text {
        bottom: 40px;
        font-weight: bold;
        font-size: 1rem;
        margin-bottom: 10px;
    }
}


@media (max-width: 770px) {


    .angry-grid {
        display: flex;
        height: auto;
        padding: 0;
        gap: 10px;
        flex-direction: column;
    }

    .photo-gallery {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        padding: 4px;
    }

    .img1 img,
    .img2 img,
    .img3 img,
    .img4 img,
    .img5 img {
        aspect-ratio: 1 / 1;
        object-fit: cover;

    }

    .angry-grid p{
        display: none;
    }
    .item-text {
        bottom: 40px;
        font-weight: bold;
        font-size: 30px;
        margin-bottom: 10px;
        justify-content: center;
        align-items: center;
        display: flex;
        width: 100%;
        height: 100%;

    }
    .item-text, .item-p1, .item-p2, .item-p3, .item-p4, .item-p5 {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        color: #ffffff;
        text-align: center;
        padding: 0 0 10px 10px;
        box-sizing: border-box;
        background-color: rgba(0, 0, 0, 0.3);
    }


}