body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

h1 {
    text-align: center;
    margin-top: 2rem;
}

h2 {
    text-align: center;
    margin-top: 1.5rem;
}

h3 {
    text-align: center;
    margin-top: 1rem;
}
footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
    bottom: 0;
}
.puremi-logo {
    display: block;
    margin: 1rem auto;
    max-width: 150px;
}

.intro {
    text-align: center;
    margin: 2rem;
}

.logo {
    display: block;
    margin: 1rem auto;
    max-width: 180px;
    border-radius: 50%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    list-style: none;
    background-color: crimson;
}

.featured-art {
    text-align: center;
    margin: 2rem 0;
    width: 100%;
}

.featured-image {
    text-align: center;
    margin: 2rem 0;
    height: 50vh;
    justify-self: center;
}

.navbar li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.gallery {
    padding: 2rem;

}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1rem;
}

.gallery-grid img {
    height: 150px;
    margin: 0.5rem;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.about-us {
    padding: 2rem;
}

.contact {
    padding: 2rem;
}

.artistpic {
    display: block;
    margin: 1rem auto;
    max-width: 200px;
    border-radius: 10%;
}

/* Gallery Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 100%;
    padding: 2rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#modal-image {
    max-width: 70%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-info h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.8rem;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
    margin: 1rem 0;
}

.modal-details {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.modal-details p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.modal-close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ddd;
}

.btn-contact {
    width: 100%;
    padding: 0.8rem;
    background-color: #8B7355;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: #6B5345;
}

/* Responsive modal for smaller screens */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        padding: 1rem;
    }

    #modal-image {
        max-width: 100%;
        max-height: 50vh;
    }

    .modal-info {
        max-width: 100%;
        max-height: 40vh;
        width: 100%;
    }

    .modal-close {
        right: 1rem;
        top: 1rem;
    }
}