body {
    font-family: 'Heebo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    text-align: center;
    overflow-x: hidden;
}

header {
    background-color: #5a89c9;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}

.about-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

.gallery-item {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        width: auto;
        height: auto;
    }

 .lightbox-content {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 10px;
    border: 4px solid white;
    animation: fadeIn 0.5s;
}

    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

@media screen and (orientation: landscape) and (max-height: 414px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .gallery-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
        padding: 20px;
        justify-items: center;
    }

    .gallery-item {
        width: 100%;
        max-width: none;
        aspect-ratio: 1/1;
        object-fit: cover;
    }
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

 .lightbox-content {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 10px;
    border: 4px solid white;
    animation: fadeIn 0.5s;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.close:hover {
    color: red;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.social-icons a {
    color: #4a4a4a;
    font-size: 28px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #5a89c9;
    transform: scale(1.2);
}