.main_gallery {
    padding: 10%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    gap: 14vw;
    background-color: #6abe9e;
}

.main_gallery .fondo {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(-1%, -65%) scaleX(-1);
    opacity: 62%;
}

.main_gallery h1 {
    font-size: 6vw;
    color: var(--white);
    z-index: 1;
    position: relative;
}

.main_gallery .light_sheet {
    position: absolute;
    width: 32%;
    right: 0;
    top: 0;
}

.main_gallery .light_sheet .right_sheet {
    transform: translate(-108%, 94%) rotate(-73deg);
    position: absolute;
    animation: moverHoja 15s ease infinite;
}

@keyframes moverHoja {
    0% {
        transform: translate(-108%, 94%) rotate(-73deg);
    }
    25% {
        transform: translate(-108%, 94%) rotate(-69deg);
    }
    50% {
        transform: translate(-108%, 94%) rotate(-73deg);
    }
    75% {
        transform: translate(-108%, 94%) rotate(-79deg);
    }
    100% {
        transform: translate(-108%, 94%) rotate(-73deg);
    }
}

.main_gallery .light_sheet .left_sheet {
    position: absolute;
    transform: translate(16%, 34%) rotate(132deg);
    animation: moverHoja2 15s ease infinite;
}

@keyframes moverHoja2 {
    0% {
        transform: translate(16%, 34%) rotate(132deg);
    }
    25% {
        transform: translate(16%, 34%) rotate(128deg);
    }
    50% {
        transform: translate(16%, 34%) rotate(132deg);
    }
    75% {
        transform: translate(16%, 34%) rotate(137deg);
    }
    100% {
        transform: translate(16%, 34%) rotate(132deg);
    }
}

.cont_sheet .left_sheet {
    position: absolute;
    left: 52%;
    width: 18%;
    transform: translate(-90%, 57%) rotate(-167deg);
    animation: leaf_move 10s ease-in-out infinite alternate;
}

.cont_octopus {
    z-index: 1;
    position: relative;
}

.cont_octopus .octopus_plate {
    width: 40vw;
}

.cont_sheet .right_sheet {
    position: absolute;
    right: 16%;
    top: 0;
    width: 20%;
    animation: leaf_move_right 10s ease-in-out infinite alternate;
}

.main_gallery .vector01 {
    position: absolute;
    width: 30%;
    opacity: 60%;
    transform: rotate(90deg) translate(48%, 105%);
    left: 0;
    top: 0;
}

.bottomwave3 {
    transform: translateY(-3%);
}

.main_gallery .vector02 {
    position: absolute;
    right: 0;
    width: 49%;
    top: 50%;
    transform: translateY(-48%) translateX(34%);
    opacity: 60%;
}

.bottomwave {
    transform: translateY(-1%);
}

.bottomwave path {
    fill: var(--orange);
}

@media (max-width: 996px) {
    .main_gallery {
        flex-direction: column;
        padding: 20% 10%;
        gap: 19vw;
    }
    .cont_octopus .octopus_plate {
        width: 92%;
    }
    .cont_octopus {
        z-index: 1;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main_gallery h1 {
        font-size: 15vw;
    }
    .main_gallery .vector01 {
        position: absolute;
        width: 60%;
        opacity: 60%;
        transform: rotate(90deg) translate(25%, 105%);
        left: 0;
        top: 0;
    }
    .main_gallery .vector02 {
        position: absolute;
        right: 0;
        width: 100%;
        top: 50%;
        transform: translateY(-27%) translateX(34%);
        opacity: 60%;
    }
    .main_gallery .light_sheet {
        position: absolute;
        width: 50%;
        right: 1%;
        top: 29%;
    }
    .main_gallery .light_sheet .right_sheet {
        transform: translate(-107%, 116%) rotate(-73deg);
        position: absolute;
    }
    .main_gallery .fondo {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        object-fit: cover;
        object-position: center;
        transform: translate(-1%, -85%) scaleX(-1);
        opacity: 62%;
    }
}


/*gallery*/

.cont_gallery {
    display: flex;
    gap: 25px;
    padding: 10%;
    justify-content: space-between;
    flex-wrap: wrap;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.cont_gallery div {
    position: relative;
    min-width: 25vw;
    max-width: 25vw;
    height: 31vh;
    overflow: hidden;
}

.cont_gallery .grid-item {
    height: 71vh;
}

.cont_gallery div img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: .25s;
}

.cont_gallery div:hover img {
    transform: scale(1.2);
    opacity: 0.8;
}

.cont_gallery1 img {
    transition: transform 0.5s ease;
    height: 100%;
}

.grid-container {
    display: grid;
    gap: 10px;
}

.grid-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: .25s;
}

@media (max-width: 996px) {
    body {
        padding-top: 0;
    }
    body::before {
        display: none;
    }
    .cont_gallery div {
        max-width: 100%;
        min-width: 100%;
    }
}

.gallery_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    z-index: 99;
    transition: .25s;
}

.gallery_modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: var(--red);
    border: none;
    padding: 5px;
    background-color: transparent;
}

.gallery_modal.active {
    transform: translate(0);
}

.gallery_modal .image {
    position: relative;
    width: 70%;
    height: 60%;
}

.gallery_modal .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery_modal .prev {
    font-size: 30px;
    padding: 5px;
    color: var(--red);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(calc(-100% - 30px), -50%);
    background-color: transparent;
    border: none;
}

.gallery_modal .next {
    font-size: 30px;
    padding: 5px;
    color: var(--red);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(calc(100% + 30px), -50%);
    background-color: transparent;
    border: none;
}