:root {
    --color-orange: #F49C6A;
    --color-blue: #363852;
    --color-pink: #CF9A92;
    --color-fond: #f8d9d4;
}

.description2 {
    margin-top: 20px; 
    flex-direction: column;
    width: 70%;
    color: #000;
  }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.image {
    position: relative;
}

.image img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.photodescription {
    position: absolute;
    text-align: center;
    padding-top: 7px;
    padding-bottom: 7px;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    opacity: 0;
    transition: opacity 0.3s;
}

.image:hover .photodescription {
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    z-index: 999;
}

.popup {
    position: relative;
    max-width: 25%;
    max-height: 25%;
}

.popup img {
    margin-top: 15%;
    width: 100%;
    height: auto;
}

.popup-description {
    color: var(--color-pink);
    padding: 5px 5px;
    font-size: 16px;
    line-height: 1.2;
    margin-top: -5px;
    text-align: center;
    width: 100%;
    
}


@media screen and (max-width: 768px) {

    .popup {
        position: relative;
        max-width: 90%;
        max-height: auto;
    }
}
