body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #240556;
}

header {
    background: linear-gradient(135deg, #1f1f1d, #8e2964);
    width: calc(100% - 1.8rem);
    text-align: center;
    padding: 20px;
    color: white;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

header h1 {
    margin: 0;
}

/* Gallery Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
   
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.lightbox:target {
    display: flex;
}

.close-button, .prev-button, .next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    outline: none;
}

.close-button {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

/* Responsive Lightbox for Mobile */
@media (max-width: 600px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .lightbox img {
        max-width: 95%;
        max-height: 70%;
    }

    .prev-button, .next-button {
        font-size: 1.8rem;
    }

    .close-button {
        font-size: 2rem;
    }
}

footer {
    background: linear-gradient(135deg, #1f1f1d, #8e2964);
    width: 100%;
    text-align: center;
    padding: 10px;
    color: white;
    position: fixed;
    bottom: 0;
}
.gallery-item{
    border: 2px solid #8e2964;
}
#space{
    height: 100px;
}