/* ==========================================================
   DHINDORA MUSIC GALLERY
   style.css
========================================================== */

/* ------------------------------
   ROOT VARIABLES
------------------------------ */

:root{

    --primary:#dc3545;
    --primary-dark:#b02a37;

    --white:#ffffff;

    --bg:#f5f7fa;

    --text:#222;

    --muted:#777;

    --border:#e6e6e6;

    --shadow:0 8px 24px rgba(0,0,0,.08);

    --radius:18px;

    --transition:.35s;

}

/* ------------------------------
   BODY
------------------------------ */

body{

    margin:0;

    padding:0;

    background:var(--bg);

    color:var(--text);

    font-family:
    "Segoe UI",
    Arial,
    sans-serif;

    overflow-x:hidden;

}

/* ------------------------------
   LINKS
------------------------------ */

a{

    text-decoration:none;

    transition:all var(--transition);

}

/* ------------------------------
   MAIN CONTAINER
------------------------------ */

.container{

    max-width:1320px;

}

/* ------------------------------
   HEADER
------------------------------ */

.gallery-header{

    padding:40px 0 25px;

}

.gallery-title{

    font-size:42px;

    font-weight:700;

    margin-bottom:10px;

    color:#111;

}

.gallery-subtitle{

    color:#777;

    font-size:18px;

    margin-bottom:0;

}

/* ------------------------------
   FOLDER TITLE
------------------------------ */

.folder-title{

    font-size:30px;

    font-weight:700;

    margin:50px 0 25px;

    padding-bottom:12px;

    border-bottom:3px solid #eee;

    display:flex;

    align-items:center;

    gap:10px;

}

.folder-title i{

    color:var(--primary);

}

/* ------------------------------
   DARK MODE BUTTON
------------------------------ */

#darkMode{

    width:48px;

    height:48px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

    position:fixed;

    top:20px;

    right:20px;

    z-index:9999;

    box-shadow:var(--shadow);

}

/* ------------------------------
   BACK TO TOP
------------------------------ */

#backToTop{

    position:fixed;

    right:25px;

    bottom:25px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:none;

    cursor:pointer;

    z-index:999;

    box-shadow:var(--shadow);

    transition:all .3s;

}

#backToTop:hover{

    background:var(--primary-dark);

    transform:translateY(-4px);

}

/* ------------------------------
   SECTION SPACING
------------------------------ */

.folder-section{

    margin-bottom:60px;

}

/* ==================================================
HEADER
================================================== */

.main-header{

background:#ffffff;

padding:20px 0;

box-shadow:0 2px 15px rgba(0,0,0,.08);

position:sticky;

top:0;

z-index:999;

}

.company-logo{

width:110px;

transition:.3s;

}

.company-logo:hover{

transform:scale(1.05);

}

.main-title{

font-size:36px;

font-weight:700;

margin-bottom:5px;

color:#111;

letter-spacing:1px;

}

.main-subtitle{

font-size:18px;

color:#777;

margin-bottom:0;

}

@media(max-width:768px){

.company-logo{

width:80px;

margin-bottom:15px;

}

.main-title{

font-size:26px;

}

.main-subtitle{

font-size:15px;

}

}

.event-slider{

display:flex;

overflow-x:auto;

gap:20px;

padding-bottom:15px;

scroll-behavior:smooth;

}

.event-slider::-webkit-scrollbar{

height:8px;

}

.event-slider::-webkit-scrollbar-thumb{

background:#dc3545;

border-radius:20px;

}

.event-item{

min-width:260px;

flex-shrink:0;

}











.gallery-card{

overflow:hidden;

border-radius:15px;

transition:.3s;

}

.gallery-card:hover{

transform:translateY(-5px);

box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.gallery-img{

width:100%;

height:220px;

object-fit:cover;

display:block;

}

.folder-title{

margin-bottom:25px;

}

/* ==========================================
EVENT SLIDER
========================================== */

.eventSwiper{
    width:100%;
    padding:10px 45px 50px;
    overflow:hidden;
}

.eventSwiper .swiper-slide{
    width:280px;
    height:auto;
}

.gallery-card{
    border-radius:15px;
    overflow:hidden;
    transition:.3s;
}

.gallery-card:hover{
    transform:translateY(-5px);
}

.gallery-img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.swiper-button-next,
.swiper-button-prev{
    color:#dc3545;
    font-weight:bold;
}

.swiper-pagination-bullet-active{
    background:#dc3545;
}




/* =====================================
FOOTER
===================================== */

.footer-section{

background:#111;

color:#fff;

padding:60px 0 20px;

margin-top:70px;

}

.footer-logo{

width:90px;

margin-bottom:15px;

}

.footer-section h4{

font-size:24px;

font-weight:700;

margin-bottom:15px;

}

.footer-section h5{

margin-bottom:20px;

font-weight:600;

}

.footer-section p{

color:#cccccc;

line-height:28px;

}

.footer-section a{

color:#ffffff;

text-decoration:none;

transition:.3s;

}

.footer-section a:hover{

color:#dc3545;

}

.social-icons{

display:flex;

gap:15px;

margin-top:20px;

}

.social-icons a{

width:48px;

height:48px;

background:#222;

display:flex;

align-items:center;

justify-content:center;

border-radius:50%;

font-size:22px;

transition:.3s;

}

.social-icons a:hover{

background:#dc3545;

transform:translateY(-5px);

}

.footer-section hr{

border-color:#444;

margin:35px 0 20px;

}

.copyright{

color:#999;

font-size:15px;

}



/* ==========================================================
   FINAL GLIGHTBOX IMAGE FIX
========================================================== */

.glightbox-container {
    overflow: hidden !important;
}

.glightbox-container .ginner-container {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.glightbox-container .gslide {
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.glightbox-container .gslide-inner-content {
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.glightbox-container .gslide-media {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.glightbox-container .gslide-image {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.glightbox-container .gslide-image img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 90vw !important;
    max-height: 85vh !important;

    object-fit: contain !important;

    margin: auto !important;
}










/* ==========================================================
   MOBILE GLIGHTBOX - FINAL FIX
========================================================== */

@media (max-width: 768px) {

    .glightbox-container {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    .glightbox-container .ginner-container {
        width: 100% !important;
        height: 100dvh !important;
        max-width: 100% !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    .glightbox-container .gslide {
        width: 100% !important;
        height: 100dvh !important;
        max-width: 100% !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    .glightbox-container .gslide-inner-content {
        width: 100% !important;
        height: 100dvh !important;
        max-width: 100% !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    .glightbox-container .gslide-media {
        width: 100% !important;
        height: 100dvh !important;
        max-width: 100% !important;
        max-height: 100dvh !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;
    }

    .glightbox-container .gslide-image {
        width: 100% !important;
        height: 100dvh !important;

        max-width: 100% !important;
        max-height: 100dvh !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;
    }

    .glightbox-container .gslide-image img {
        width: auto !important;
        height: auto !important;

        max-width: 88vw !important;
        max-height: 78dvh !important;

        object-fit: contain !important;

        margin: auto !important;
    }

    body.glightbox-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }

}


/* ==========================================================
   HOME BUTTON
========================================================== */

.home-btn{

    display:inline-flex;
    align-items:center;
    gap:6px;

    background:#dc3545;
    color:#fff !important;

    padding:9px 15px;

    border-radius:25px;

    font-size:15px;
    font-weight:600;

    margin-right:8px;

    box-shadow:0 4px 12px rgba(220,53,69,.20);

    transition:all .3s ease;
}

.home-btn:hover{

    background:#b02a37;

    color:#fff !important;

    transform:translateY(-2px);
}

.home-btn i{

    font-size:16px;
}




/* ==========================================================
   LIGHT MUSICAL BACKGROUND
========================================================== */

body{

    background:
        radial-gradient(circle at 10% 20%,
            rgba(220,53,69,.035) 0,
            transparent 25%),

        radial-gradient(circle at 90% 70%,
            rgba(0,0,0,.025) 0,
            transparent 25%),

        #f8fafc;

    position:relative;
}

/* Subtle musical atmosphere */

body::before{

    content:"♫  ♪  ♬  ♪  ♫";

    position:fixed;

    top:18%;
    left:-20px;

    font-size:75px;

    letter-spacing:35px;

    color:rgba(220,53,69,.035);

    transform:rotate(-12deg);

    pointer-events:none;

    z-index:-1;

    white-space:nowrap;
}

body::after{

    content:"♪  ♫  ♪  ♬";

    position:fixed;

    bottom:15%;
    right:-30px;

    font-size:70px;

    letter-spacing:30px;

    color:rgba(220,53,69,.035);

    transform:rotate(10deg);

    pointer-events:none;

    z-index:-1;

    white-space:nowrap;
}



@media(max-width:768px){

    .home-btn{

        padding:7px 11px;
        font-size:13px;
        margin-right:4px;

    }

    .home-btn i{

        font-size:14px;

    }

}