* {
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1224px;
    width: 90%;
    margin: auto;
    padding: 40px 0;
    padding-top:60px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.row {
    display: flex;
    flex-basis: 100%;
    flex-wrap: nowrap;
    gap: 20px;
}

.photo {
    flex: 1;
    margin-bottom: 20px;
}

.photo img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
}

@media (max-width: 769px) {
    .photo:nth-child(2) {
        margin-right: auto;
        margin-left: auto;
    }
    .gallery{
        flex-direction: column;
    }
    .row {
        flex-direction: column;
    }
}
.photo {
    position: relative;
}


.photo p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(249, 247, 247, 0.1);
    color: #F6CBDF;
    padding: 10px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo:hover p {
    opacity: 1;
}
.untitled3 img{
    transform:rotate(180deg);
}