/* =====================================================
   LAKSHVI EVENTS - PORTFOLIO
   ===================================================== */

.portfolio-section {
    background: #F7F3EA;
    padding: 100px 30px 120px;
}

.portfolio-container {
    max-width: 1450px;
    margin: 0 auto;
}


/* ================= HEADING ================= */

.portfolio-heading {
    max-width: 760px;
    margin: 0 auto 70px;
    text-align: center;
}

.portfolio-small-title {
    display: block;
    margin-bottom: 15px;

    color: #C9A063;

    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;

    letter-spacing: 4px;
}

.portfolio-heading h2 {
    margin: 0;

    color: #0E4B4E;

    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 600;

    line-height: 1.05;
}

.portfolio-heading h2 span {
    color: #C9A063;
    font-style: italic;
}

.portfolio-heading p {
    max-width: 650px;
    margin: 25px auto 0;

    color: #555;

    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.9;
}


/* ================= GRID ================= */

.portfolio-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 38px 28px;
}


/* ================= CARD ================= */

.portfolio-card {

    display: block;

    color: inherit;
    text-decoration: none;

    overflow: hidden;

    background: transparent;

    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
}


/* ================= IMAGE ================= */

.portfolio-image-wrapper {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #ddd;
}

.portfolio-image-wrapper img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.8s cubic-bezier(.2,.65,.3,1),
        opacity 0.8s ease;
}


/* Image animation */

.portfolio-card:hover .portfolio-image-wrapper img {

    transform: scale(1.06);

    opacity: 1;
}


/* ================= CONTENT ================= */

.portfolio-card-content {

    padding: 22px 2px 5px;
}

.portfolio-category {

    display: block;

    margin-bottom: 8px;

    color: #C9A063;

    font-family: 'Poppins', sans-serif;

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 2px;
}

.portfolio-card-content h3 {

    margin: 0;

    color: #0E4B4E;

    font-family: 'calibory', serif;

    font-size: 18px;

    font-weight: bold;

    letter-spacing: 1px;
}

.portfolio-card-content p {

    margin: 9px 0 16px;

    color: #666;

    font-family: 'Poppins', sans-serif;

    font-size: 13px;

    line-height: 1.7;
}


/* ================= VIEW EVENT ================= */

.portfolio-view {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #0E4B4E;

    font-family: 'Poppins', sans-serif;

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 2px;

    transition: gap 0.4s ease;
}

.portfolio-card:hover .portfolio-view {
    gap: 17px;
}


/* =====================================================
   EVENT DETAIL PAGE
   ===================================================== */

.event-page {

    background: #F7F3EA;

    min-height: 100vh;
}


/* ================= EVENT HERO ================= */

.event-hero {

    padding: 150px 25px 80px;

    text-align: center;

    background: #0E4B4E;
}

.event-hero-small {

    display: block;

    margin-bottom: 15px;

    color: #C9A063;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    letter-spacing: 5px;
}

.event-hero h1 {

    margin: 0;

    color: #F7F3EA;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(45px, 6vw, 80px);

    font-weight: 600;

    line-height: 1;
}

.event-hero p {

    max-width: 650px;

    margin: 25px auto 0;

    color: rgba(247, 243, 234, 0.8);

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    line-height: 1.9;
}


/* ================= EVENT INFO ================= */

.event-intro {

    max-width: 850px;

    margin: 0 auto;

    padding: 90px 25px 60px;

    text-align: center;
}

.event-intro h2 {

    margin-bottom: 20px;

    color: #0E4B4E;

    font-family: 'Cormorant Garamond', serif;

    font-size: 42px;

    font-weight: 600;
}

.event-intro p {

    color: #666;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    line-height: 2;
}


/* ================= GALLERY ================= */

.event-gallery-section {

    max-width: 1450px;

    margin: 0 auto;

    padding: 20px 30px 120px;
}

.event-gallery {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.event-gallery-item {

    position: relative;

    overflow: hidden;

    cursor: pointer;

    aspect-ratio: 1 / 1;

    background: #ddd;
}

.event-gallery-item img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.7s ease,
        opacity 0.7s ease;
}

.event-gallery-item:hover img {

    transform: scale(1.06);

    opacity: 1;
}





/* ================= RESPONSIVE ================= */


/* Large laptop */

@media (max-width: 1200px) {

    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* Tablet */

@media (max-width: 900px) {

    .portfolio-section {
        padding: 80px 22px 90px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 20px;
    }

    .event-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 600px) {

    .portfolio-section {
        padding: 65px 16px 80px;
    }

    .portfolio-heading {
        margin-bottom: 45px;
    }

    .portfolio-heading h2 {
        font-size: 43px;
    }

    .portfolio-heading p {
        font-size: 13px;
        line-height: 1.8;
    }


    /* ONE CARD PER ROW */

    .portfolio-grid {

        grid-template-columns: 1fr;

        gap: 45px;
    }


    .portfolio-image-wrapper {

        aspect-ratio: 1 / 1;
    }


    .portfolio-card-content h3 {

        font-size: 20px;
        font-weight: bold;
    }


    .portfolio-card-content p {

        font-size: 13px;
    }


    /* Event page */

    .event-hero {

        padding: 120px 20px 65px;
    }

    .event-hero h1 {

        font-size: 48px;
    }

    .event-intro {

        padding: 65px 20px 40px;
    }

    .event-intro h2 {

        font-size: 36px;
    }


    /* ONE PHOTO PER ROW ON MOBILE */

    .event-gallery-section {

        padding: 10px 16px 80px;
    }

    .event-gallery {

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .event-gallery-item {

        aspect-ratio: 1 / 1;
    }


    .portfolio-lightbox {

        padding: 15px;
    }

    .lightbox-image {

        max-width: 94vw;

        max-height: 80vh;
    }

    .lightbox-prev,
    .lightbox-next {

        width: 42px;
        height: 42px;

        font-size: 15px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-close {

        top: 15px;
        right: 15px;

        width: 42px;
        height: 42px;
    }

}
.gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.03);
    opacity: 0.9;
}

/* =====================================================
   LAKSHVI EVENTS - UNIFIED GALLERY LIGHTBOX CSS
   ===================================================== */

.event-gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Lightbox Modal */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(247, 243, 234, 0.75);
    
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 30px;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: #F7F3EA;
    border: none;
    color: #0E4B4E;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: #C9A063;
    color: #F7F3EA;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #F7F3EA;
    border: none;
    color: #0E4B4E;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: #C9A063;
    color: #F7F3EA;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .image-lightbox {
        padding: 15px;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
    .lightbox-prev {
        left: 12px;
    }
    .lightbox-next {
        right: 12px;
    }
}
