body {
    font-family: oswald;
    line-height: 1.6;
    color: #333;
    background-color: var(--beige);
    padding: 20px;
    padding-top: 90px;
}

.section {
    margin: 32px 0;
}

.section h3 {

    font-size: 1.75rem;
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #eee;
    text-align: center;
}



#yogic {

    text-align: center;
}

.Tools {

    display: block;
    margin: 50px 0px;
    margin-top: 20px;

}

.Tools h1 {
    font-family: 'Gallery', sans-serif;
}

.mantra {
    padding: 12px;
    margin: 40px 8px;
    border: 2px solid transparent;
    line-height: 2em;
}

.mantra h2 {
    font-family: 'Gallery', sans-serif;
    text-align: center;
    color: #1d1c1c;

}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 8px 4px;
}

.gallery img,
.gallery video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

#logo img {
    cursor: default !important;
}

#logo img:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #bbb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery img,
    .gallery video {
        height: 140px;
    }

    .mantra {
        margin: 24px 4px;
        padding: 8px;
    }
}

@media (max-width: 400px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    .gallery img,
    .gallery video {
        height: 220px;
    }
}

/* =========================================================
   MOBILE PAGE WIDTH FIX
   Gallery/Contact pages had 20px body padding, which was
   also shrinking the shared navbar and footer.
========================================================= */

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        padding-left: 0;
        padding-right: 0;
    }

    /* Keep the shared navbar and footer edge-to-edge */
    nav,
    .footer {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Footer itself should never inherit a narrow content width */
    .footer__container,
    .footer__bar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}
