body {
    margin: 0;
    font-family: "Sora", sans-serif;
    background-color: #f0f0f0;
    color: #333;
    overflow-y: scroll;
}

h1 {
    text-align: center;
    color: #9d5525;
    margin-top: 20px;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}

.gallery-item {
    width: 30%;
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.description {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    width: 100%;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    border-radius: 0 0 12px 12px;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    border-top: 2px solid #9d5525;
    font-family: Sora, sans-serif;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    z-index: 1000;
}

.modal-content {
    max-width: 50%; /* Adjusted for larger screens */
    max-height: 80%;
    border-radius: 12px;
    overflow: hidden;
    background-color: transparent; /* Removed container color */
    position: relative;
    animation: zoomIn 0.5s ease;
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.modal-content .full-description {
    color: #333;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border-top: 2px solid #9d5525; /* Updated border color */
    position: absolute;
    bottom: 0;
    width: 100%;
    border-radius: 0 0 12px 12px;
    font-size: 16px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal.show .full-description {
    opacity: 1;
    transform: translateY(0);
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

/* Responsive Layout */
@media (max-width: 1200px) {
    .gallery-item {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: 100%;
    }
    .modal-content {
        max-width: 90%;
        max-height: 90%;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
    }
    to {
        transform: scale(1);
    }
}
