/* Partner Section */
:root{
    --photo-animate-speed: 0.5s;
    --partner-card-speed: 0.3s;
}
.partners {
    /* background-color: #f0f0f0; */
    text-align: center;
    padding: 50px;
    font-family: Arial, sans-serif;
}

.partners h2:nth-child(1) {
    /* background-color: blue; */
    /* text-align: center;  */
    color: white;
    text-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8);
}

.partner-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 220px;
    min-width: 220px;
    box-shadow: 0px 4px 8px 1px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: transform var(--partner-card-speed) ease;
}

.partner-card a{
    text-decoration: underline;
    /* transition: background-color 5s ease, padding 5s ease, border-radius 5s ease; */
    transition: background-color var(--photo-animate-speed) ease;
    border-radius: 5px;
    padding: 5px;
}

.partner-card a:hover {
    background-color: rgba(195, 157, 99, 0.7);
}

.partner-card:hover {
    transform: scale(1.05);
}

.partner-card img {
    width: 100%;
    border-radius: 10px;
}

/* Modal Styles */
.display-none-modal{
    display: none !important;
}
.modal {
    /* display: none; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    /*position: relative;*/
    /* display: block; */
    /* margin: auto; */
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

#caption {
    /* position: absolute;
    top: 0; */
    /* flex-direction: column;
    justify-content: center; */
    /* left: 0;
    top: 40px; */

    /* position: absolute;
    display: flex;
    bottom: 60px; */
    /* color: black; */
    text-align: center;
    color: white;
    padding: 10px;
    font-size: 1.2em;
    background-color: rgba(0,0,0,0.5);
    border-radius: 10px 10px 10px 10px;
}

/* .close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
} */

#closeModalButton{
    all: unset;
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.after-element-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.after-element{
    display: block;
    width: 80px;
    padding-top: 3px;
    /* background-color: rgb(195, 157, 99); */
    background: linear-gradient(45deg, rgb(227, 195, 129), rgb(255, 255, 255), rgb(227, 195, 129), rgb(255, 255, 255));
    /* margin-top: 20px; */
    margin-bottom: 40px;
    border-radius: 3px;
}

.photo-animate{
    /* animation: photo_animate 0.5s ease; */
    animation: photo_animate var(--photo-animate-speed) forwards;
}

.photo-animate-back{
    /* animation: photo_animate_back 0.5s ease; */
    animation: photo_animate_back var(--photo-animate-speed) forwards;
}

@media (max-height: 500px) {
    .modal {
        justify-content: flex-start;
    }

    .modal-content {
        max-width: 60%;
        max-height: 60%;
    }
}

@keyframes photo_animate {
    0%{
        transform: scale(0);
    }
    50%{
        transform: scale(1.2);
    }
    100%{
        transform: scale(1);
    }
}

@keyframes photo_animate_back {
    100%{
        transform: scale(0);
    }
    50%{
        transform: scale(1.2);
    }
    0%{
        transform: scale(1);
    }
}