﻿/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/

/*body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
*/
.container {
    padding: 40px 5%;
}

.heading-text {
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

    .heading-text span {
        font-weight: 100;
    }

ul {
    list-style: none;
}

/* Responsive image gallery rules begin*/

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
}

    .image-gallery > li {
        flex-basis: 350px; /*width: 350px;*/
        position: relative;
        cursor: pointer;
    }

    .image-gallery::after {
        content: "";
        flex-basis: 350px;
    }

    .image-gallery li img {
        object-fit: cover;
        max-width: 100%;
        height: auto;
        vertical-align: middle;
        border-radius: 5px;
    }

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(57, 57, 57, 0.502);
    top: 0;
    left: 0;
    transform: scale(0);
    transition: all 0.2s 0.1s ease-in-out;
    color: #fff;
    border-radius: 5px;
    /* center overlay text */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* hover */
.image-gallery li:hover .overlay {
    transform: scale(1);
}

.modal {
    opacity: 0;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

    .modal.opaque {
        opacity: 1;
        transition: opacity 0.5s;
    }

    .modal.unstaged {
        top: -100px;
        height: 0;
    }

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #e5e5e5
}

.modal-contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 50px 100px;
    width: auto;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
    background-color: #ffffff00;
    border-radius: 6px;
    margin-left: 13%;
    margin-top: 9%;
}

.modal-text {
    text-align: left;
}

#modal-open {
    color: #6c6c6c;
    position: absolute;
    z-index: 2;
    right: 20px;
    top: 20px;
    height: 65px;
    width: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 43px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#modal-close {
    position: absolute;
    z-index: 2;
    right: 20px;
    top: 20px;
    height: 50px;
    width: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.modal-close {
    margin-top: 20px;
    padding: 5px 20px;
    color: #FFFFFF;
    font-weight: bolder;
    font-size: 30px;
    background-color: #ffaa00;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.5s;
}

    .modal-close:hover {
        background-color: #ffd500;
    }
