/* Body & Fonts */
body {
    background-color: #ffe8d6;
    font-family: "Comic Neue", cursive, sans-serif;
    margin: 0;
    padding: 0;
}

.cursive {
    font-family: 'Dancing Script', cursive;
}

/* Wrapper */
.gallery-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

/* Heading */
.gallery-title {
    text-align: center;
    font-size: 48px;
    color: #5a3e1b;
    margin-bottom: 40px;
}
/*subttl*/
.welcome-subtitle1 {
    font-size: 20px;
    color: #753003;
    margin-top: 8px;
    font-family: "Comic Neue", sans-serif;
    text-align: center;

    
}

/* Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Image Card */
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    background: #fff;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    overflow: hidden;
    display: block;
    transition: transform 0.4s ease;
}



.gallery-item:hover img {
    transform: scale(1.08);
}

/* Mobile Grid */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* Modal Image */
.gallery-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

/* Close Button */
.gallery-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .gallery-modal img {
        max-width: 95%;
        max-height: 90%;
    }
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100%;
}
