/* Gallery Section */
.hero {
    height: 100vh;
}

.gallery-ashram {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    gap: 1rem;
}

.gallery-ashram-logo {
    width: 8rem;
    height: 8rem;
}

.gallery-ashram-logo img {
    width: 100%;
    height: 100%;
}

.gallery-card {
    width: 90%;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Plus Jakarta Sans", sans-serif;
}
.gallery-para{
    font-size: 1.1rem;
    line-height: 1.7;
}

.gallery-head {
    font-size: 40px;
    font-weight: 700;
    font-family: 'Basics Serif Free';
    margin: 0;
}

@media (min-width: 200px) and (max-width: 320px) {
    .gallery-ashram-logo {
        width: 5rem;
        height: 5rem;
    }

    .gallery-head {
        font-size: 20px;
    }

    .gallery-card {
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }
}



@media (min-width: 321px) and (max-width: 767px) {
    .gallery-ashram-logo {
        width: 5rem;
        height: 5rem;
    }

    .gallery-head {
        font-size: 20px;
    }

    .gallery-card {
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .gallery-ashram-logo {
        width: 5rem;
        height: 5rem;
    }

    .gallery-head {
        font-size: 20px;
    }

    .gallery-card {
        width: 60%;
        margin: 0 auto;
        padding: 0;
    }
}

@media (max-width: 767px) {
    .gallery-ashram {
        transform: translateY(30%);
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .gallery-ashram {
        transform: translateY(30%);
    }
}

@media (min-width: 1201px) and (max-width: 1440px) {
    .gallery-ashram {
        transform: translateY(25%);
    }
}

@media (min-width: 1441px) and (max-width: 1640px) {
    .gallery-ashram {
        transform: translateY(40%);
    }
}

@media (min-width: 1641px) and (max-width: 1920px) {
    .gallery-ashram {
        transform: translateY(60%);
    }

    .gallery-card {
        width: 60%;
    }
}

@media (min-width: 1921px) and (max-width: 2560px) {
    .gallery-ashram {
        transform: translateY(60%);
    }

    .gallery-card {
        width: 70%;
    }
}

@media (min-width: 2561px) {
    .gallery-ashram {
        transform: translateY(50%);
    }
}


.banner-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
}

.banner-breadcrumb a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.gallery-section {
    padding: 60px 0 80px 0;
    background-image: url('./assets/images/printed-bg.png');
    background-size: cover;
    background-position: center;
    /* background-color: #f6f7f8; */
}

.gallery-heading {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #000;
    font-family: 'Basics Serif Free';
}

/* Updated Grid Layout with 10 tiles */
/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 200px);
    gap: 10px;
}

.tile {
    background: #d9d9d9;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .tile:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
} */

.tile img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Tile positions */
.tile-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.tile-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.tile-3 {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.tile-4 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.tile-5 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

.tile-6 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.tile-7 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.tile-8 {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
}

.tile-9 {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
}

.tile-10 {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Lightbox Container */
.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    background-color: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Lightbox Header */
.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title {
    font-size: 18px;
    font-weight: 500;
}

.lightbox-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Lightbox Body */
.lightbox-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox-image.active {
    opacity: 1;
    transform: scale(1);
}

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-nav-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.lightbox-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Image Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 12px 12px;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .gallery-grid {
        grid-template-rows: repeat(4, 180px);
    }
}

@media (max-width: 991px) {
    .gallery-heading {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 10px;
    }

    .tile-1 {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        min-height: 400px;
    }

    .tile-2 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        min-height: 195px;
    }

    .tile-3 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        min-height: 195px;
    }

    .tile-4 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        min-height: 200px;
    }

    .tile-5 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        min-height: 200px;
    }

    .tile-6 {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
        min-height: 200px;
    }

    .tile-7 {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
        min-height: 200px;
    }

    .tile-8 {
        grid-column: 1 / 3;
        grid-row: 5 / 6;
        min-height: 300px;
    }

    .tile-9 {
        grid-column: 1 / 2;
        grid-row: 6 / 7;
        min-height: 200px;
    }

    .tile-10 {
        grid-column: 2 / 3;
        grid-row: 6 / 7;
        min-height: 200px;
    }

    .lightbox-container {
        width: 95%;
        height: 75vh;
    }

    .lightbox-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .gallery-heading {
        font-size: 24px;
    }

    .lightbox-container {
        height: 60vh;
    }
}

@media (max-width: 575px) {
    .gallery-section {
        padding: 40px 0 60px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }

    .tile-1,
    .tile-2,
    .tile-3,
    .tile-4,
    .tile-5,
    .tile-6,
    .tile-7,
    .tile-8,
    .tile-9,
    .tile-10 {
        grid-column: 1;
        grid-row: auto;
        min-height: 250px;
    }

    .lightbox-container {
        width: 98%;
        height: 55vh;
    }

    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        padding: 0;
    }

    .lightbox-title {
        font-size: 16px;
    }

    .lightbox-close {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
}

/* Animation for image transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .tile:hover {
        transform: none;
    }

    .lightbox-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}


/* ===== MVX VIDEO PLAYER ===== */

.mvx-video-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.mvx-video-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    /* indicate clickable */
}

/* Controls container */
.mvx-video-controls {
    position: absolute;
    right: 24px;
    top: 24px;
    display: flex;
    gap: 12px;
    z-index: 20;
}

/* Buttons */
.mvx-play-btn,
.mvx-sound-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 787px) {

    .mvx-play-btn,
    .mvx-sound-btn {
        width: 38px;
        height: 38px;
    }
}

.mvx-play-btn:hover,
.mvx-sound-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.footer {
    position: relative;
    margin-top: -180px;
    /* overlap amount */
    z-index: 10;
}




/* ACHIEVEMENTS SECTION */
.achievement-section {
    position: relative;
    padding: 90px 0;
    background: url(./assets/images/printed-bg.png), linear-gradient(to bottom,
            #DA947F 0%,
            #ffffff 50%,
            #ffffff 100%);
    background-size: contain;

}

.achievement-title {
    width: 70%;
    font-family: "Basics Serif Free", serif;
    margin-bottom: 6%;
    font-size: 40px;
    line-height: 1.3;
    color: white;
}

/* Card base styling */
.achieve-card {
    /* padding: 40px 40px; */
    border-radius: 20px;
    text-align: left;
    color: #fff;
    font-family: "Inter", sans-serif;
    height: 100%;
    background: #7b3450;
    transition: background 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
}

.achieve-card:hover {
    background: #c27390;
}

.achieve-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.achieve-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.achieve-heading {
    font-family: "Basics Serif Free", serif;
    font-size: 20px;
    margin-bottom: 6%;
    margin-top: 5%;
    font-weight: 400;
    color: #FCF8F5;
    text-align: left;
}

.achieve-paragraph {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.2px;
    color: #FCF8F5;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 200;
    margin-bottom: 0 !important;
    text-align: left;
}

@media (min-width: 200px) and (max-width: 320px) {
    .achievement-section {
        padding: 40px 0;
    }

    .achievement-title {
        width: 100%;
        font-size: 22px;
        margin-bottom: 30px;
        text-align: center;
    }

    .achieve-card {
        height: 24rem;
        border-radius: 15px;
    }


}

@media (min-width: 321px) and (max-width: 767px) {
    .achievement-section {
        padding: 50px 0;
    }

    .achievement-title {
        width: 100%;
        font-size: 28px;
        margin-bottom: 40px;
        text-align: center;
    }

    .achieve-card {
        height: 25rem;
        border-radius: 15px;
    }

    .achieve-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 2rem;
    }

    .meditation-icon {
        height: 100% !important;
        height: 100% !important;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .achievement-section {
        padding: 70px 0;
    }

    .achievement-title {
        width: 80%;
        font-size: 36px;
        margin-bottom: 50px;
    }

    .achieve-card {
        height: 30rem;
        border-radius: 15px;
    }

    .achieve-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 2rem;
    }

    .meditation-icon {
        height: 100% !important;
        height: 100% !important;
    }
}

@media (min-width: 1201px) and (max-width: 1440px) {
    .achievement-section {
        padding: 80px 0;
    }

    .achievement-title {
        width: 70%;
        font-size: 38px;
        margin-bottom: 55px;
    }

    .achieve-icon {
        height: 4rem;
        width: 4rem;
        margin-bottom: 28px;
    }

    .meditation-icon {
        height: 100% !important;
        height: 100% !important;
    }

    .achieve-card {
        height: 25rem;
        padding: 2rem 1rem;
    }

    .achieve-paragraph {
        width: 90%;
    }
}

@media (min-width: 1441px) and (max-width: 1640px) {
    .achievement-section {
        padding: 90px 0;
    }

    .achievement-title {
        width: 70%;
        font-size: 40px;
        margin-bottom: 60px;
    }

    .achieve-icon {
        width: 20%;
        margin-bottom: 30px;
    }

    .meditation-icon {
        height: 100% !important;
        height: 100% !important;
    }

    .achieve-card {
        height: 25rem;
    }

    .achieve-paragraph {
        width: 90%;
    }
}

@media (min-width: 1641px) and (max-width: 1920px) {
    .achievement-section {
        padding: 100px 0;
    }

    .achievement-title {
        width: 65%;
        font-size: 44px;
        margin-bottom: 65px;
    }

    .achieve-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 30px;
    }

    .meditation-icon {
        height: 100% !important;
        height: 100% !important;
    }

    .achieve-card {
        height: 25rem;
    }

    .achieve-paragraph {
        width: 90%;
    }
}

@media (min-width: 1921px) and (max-width: 2560px) {
    .achievement-section {
        padding: 120px 0;
    }

    .achievement-title {
        width: 60%;
        font-size: 48px;
        margin-bottom: 75px;
    }

    .achieve-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 40px;
    }

    .meditation-icon {
        height: 100% !important;
        height: 100% !important;
    }

    .achieve-card {
        height: 30rem;
    }

    .achieve-paragraph {
        width: 90%;
    }
}

@media (min-width: 2561px) {
    .achievement-section {
        padding: 140px 0;
    }

    .achievement-title {
        width: 55%;
        font-size: 52px;
        margin-bottom: 85px;
    }

    .achieve-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 45px;
    }

    .meditation-icon {
        height: 100% !important;
        height: 100% !important;
    }

    .achieve-card {
        height: 30rem;
    }

    .achieve-paragraph {
        width: 90%;
    }
}