* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: #000;
    color: #fff;
    font-family: sans-serif;

}

.hover-eff{
    text-decoration: none; color: inherit;
    transition: color ease-in 0.03s;
}

.hover-eff:hover{
    color: #F37021;
}

  .left2 {
        font-family: 'Arial', sans-serif;
        background-color: #000;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 40px;
        direction: ltr;
        text-align: right;
    }

    .gallery-img{
        border: 2px solid #525252;
    }

    .container {
        display: flex;
        justify-content: start;

        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        direction: ltr;
        text-align: right;
    }


    .right {
        width: 40%;
    }

    .left {

        width: 50%;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
        font-weight: normal;
    }

    
    .vision,
    .closing {
        margin-bottom: 20px;
        font-size: 13px;
        color: grey;
    }

    .intro{
        margin-bottom: 20px;
        font-size: 18px;
        color: grey;
    }

    .vision {
        font-size: 13px;
        color: grey;
    }

    h2 {
        font-size: 13px;
        margin-top: 10px;
    }

    .photo-container {
        width: 100%;
        max-width: 540px;
        height: 400px;
        margin-bottom: 15px;
    }

    .photo-container img {
        width: 100%;
        display: block;
    }

    .founders {
        margin-top: 0px;
        max-width: 600px;
    }

    .founder {
        margin-bottom: 30px;
    }

    .founder p {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.6;
    }

    .founder-row {
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-start;
        gap: 20px;
        direction: rtl;
    }

    .founder-image {
        width: 100%;
        max-width: 150px;
        height: 150px;
    }

    .founder-image img {
        width: 100%;
        height: auto;
        border-radius: 5px;
    }

    .founder-text {
        width: 100%;
        color: grey;
        text-align: justify;
    }

    .gallery-contact-section {
        background-color: #000;
        max-width: 1900px;
        padding-right: 40px;
        /* padding: 30px 0; */
        color: #fff;
        font-family: Arial, sans-serif;
    }

    .gallery-contact-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .masonry-gallery {
        column-count: 3;
        column-gap: 10px;
        padding: 20px 0;
    }

    .contact-bar {
        width: 100%;
        display: flex;
        flex-direction: row;
        /* justify-content: space-between; */
        /* align-items: center; */
        background-color: #333;
        padding: 10px 20px;
        color: #ccc;
        font-size: 14px;
        gap: 30px;
        /* flex-wrap: wrap; */
        box-sizing: border-box;
    }


    .masonry-gallery img {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 0px;
        display: block;
        break-inside: avoid;
    }

    .contact-box {
        color: #ccc;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-right: 100px;
    }

    .rtl-bar {
        direction: rtl;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #333;
        padding: 10px 20px;
        color: #ccc;
        font-size: 14px;
        gap: 30px;
        flex-wrap: wrap;
        box-sizing: border-box;
    }

    .rtl-bar .contact-box {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .pt-desktop {
        padding-top: 100px;
    }

    .mt-desktop {
        margin-top: 80px;
    }

    @media screen and (max-width: 768px) {
        .pt-desktop {
            padding-top: 20px !important;
        }

        .mt-desktop {
            margin-top: 0 !important;
        }
    }

    @media screen and (max-width: 768px) {
        .container {
            flex-direction: column;
            align-items: center;
            padding: 0 15px;
            text-align: center;
        }

        .left,
        .right {
            width: 100% !important;
            padding: 20px 0;
        }

        .left2 {
            flex-direction: column;
            align-items: center;
        }

        .masonry-gallery {
            column-count: 2;
            padding: 10px 0;
        }

        .contact-bar {
            flex-direction: column;
            gap: 10px;
            align-items: flex-start;
            min-width: auto !important;
            width: 100%;
            padding: 10px;
        }

        .contact-box {
            margin-right: 0 !important;
        }

        h1 {
            font-size: 1.5rem;
        }

        .photo-container,
        .group-photo img {
            height: auto !important;
            max-width: 100%;
        }

        .founders {
            max-width: 100% !important;
        }
    }

    /* Modal Styling */
    .modal {
        display: none;
        position: fixed;
        z-index: 9999;
        padding-top: 60px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.9);
    }

    .modal-content {
        margin: auto;
        display: block;
        width: 90vw;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 5px;
    }


    .close {
        position: absolute;
        top: 20px;
        right: 35px;
        color: #fff;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10000;
    }

    .prev,
    .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        color: white;
        font-size: 40px;
        padding: 20px;
        margin-top: -22px;
        user-select: none;
        z-index: 1001;
    }

    .prev {
        left: 0;
    }

    .next {
        right: 0;
    }

    /* Make modal fullscreen on mobile */
@media only screen and (max-width: 768px) {
    .modal {
        padding: 0;
        margin: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        width: 50vw;
        height: auto;
        max-width: none !important;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 0;
        padding-top: 350px; 
    }

    .close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 30px;
        color: white;
        z-index: 10;
    }

    .prev, .next {
        top: 50%;
        transform: translateY(-50%);
        font-size: 30px;
        background: rgba(0, 0, 0, 0.5);
        padding: 5px 10px;
        border-radius: 4px;
    }
}
