/*==================================
Main Gallery Section
==================================*/

.main-gallery-section{

    padding:100px 0;

    background:#f8fafc;

}

.main-gallery-heading{

    text-align:center;

    max-width:700px;

    margin:auto auto 70px;

}

.main-gallery-heading span{

    display:inline-block;

    padding:8px 18px;

    background:#eef5ff;

    color:#0d6efd;

    border-radius:50px;

    font-size:.85rem;

    font-weight:600;

    letter-spacing:1px;

    margin-bottom:18px;

}

.main-gallery-heading h2{

    font-size:clamp(2rem,5vw,3.2rem);

    font-weight:700;

    margin-bottom:18px;

    color:#111827;

}

.main-gallery-heading p{

    color:#6b7280;

    font-size:1rem;

    line-height:1.8;

}

/*========================*/

.main-gallery-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

/*========================*/

.main-gallery-card{

    position:relative;

    overflow:hidden;

    border-radius:20px;

    background:#fff;

    box-shadow:0 8px 25px rgba(0,0,0,.06);

    transition:.45s;

    cursor:pointer;

}

.main-gallery-card:hover{

    transform:translateY(-10px);

    box-shadow:

    0 25px 60px rgba(0,0,0,.15);

}

.main-gallery-card img{

    width:100%;

    height:200px;

    object-fit:cover;

    transition:1s;

    display:block;

}

.main-gallery-card:hover img{

    transform:scale(1.08);

}

/*========================*/

.main-gallery-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(

    to top,

    rgba(0,0,0,.82),

    rgba(0,0,0,.15)

    );

    display:flex;

    align-items:center;

    justify-content:center;

    opacity:0;

    transition:.45s;

}

.main-gallery-card:hover .main-gallery-overlay{

    opacity:1;

}

/*========================*/

.main-gallery-btn{

    text-decoration:none;

    padding:14px 34px;

    background:#fff;

    color:#111;

    border-radius:60px;

    font-weight:700;

    transition:.35s;

    transform:translateY(35px);

}

.main-gallery-card:hover .main-gallery-btn{

    transform:translateY(0);

}

.main-gallery-btn:hover{

    background:#0d6efd;

    color:#fff;

}

/*========================*/

.main-gallery-content{

    padding:25px;

    background:#fff;

}

.main-gallery-content h4{

    font-size:1.2rem;

    margin-bottom:8px;

    color:#111827;

}

.main-gallery-content span{

    color:#6b7280;

    font-size:.95rem;

}

/*========================*/

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

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

@media(max-width:576px){
.main-gallery-section{
padding:70px 20px;
}
.main-gallery-grid{
grid-template-columns:1fr;
gap:20px;
}
.main-gallery-card img{
height:230px;
}
.main-gallery-content{
padding:20px;
}
.year-card{
min-height: 180px;
}
.year-text{
font-size: 3.5rem;
}
}

/*==================================
Custom Gallery Lightbox
==================================*/

.main-gallery-overlay-box {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.main-gallery-overlay-box.active {
    opacity: 1;
    visibility: visible;
}

.main-gallery-overlay-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.main-gallery-close,
.main-gallery-nav {
    position: absolute;
    border: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
    transition: background 0.25s ease;
}

.main-gallery-close:hover,
.main-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.main-gallery-close {
    top: 24px;
    right: 24px;
}

.main-gallery-nav-prev {
    left: 24px;
}

.main-gallery-nav-next {
    right: 24px;
}

body.main-gallery-open {
    overflow: hidden;
}

/*==================================
Folder Gallery Section
==================================*/

.main-gallery-folder-section{

    padding:100px 0;

    background:#ffffff;

}

/*=============================*/

.main-gallery-title{

    text-align:center;

    max-width:700px;

    margin:auto auto 70px;

}

.main-gallery-title span{

    display:inline-block;

    padding:8px 18px;

    border-radius:50px;

    background:#eef4ff;

    color:#0d6efd;

    font-weight:600;

    margin-bottom:18px;

}

.main-gallery-title h2{

    font-size:clamp(2rem,5vw,3rem);

    color:#111827;

    margin-bottom:18px;

}

.main-gallery-title p{

    color:#6b7280;

    line-height:1.8;

}

/*=============================*/

.main-gallery-folder-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

/*=============================*/

.main-gallery-folder-card{

    display:block;

    overflow:hidden;

    border-radius:24px;

    background:#fff;

    text-decoration:none;

    box-shadow:

    0 15px 35px rgba(0,0,0,.08);

    transition:.45s;

}

.main-gallery-folder-card:hover{

    transform:translateY(-10px);

    box-shadow:

    0 25px 55px rgba(0,0,0,.15);

}

/*=============================*/

.main-gallery-folder-image{

    position:relative;

    height:240px;

    overflow:hidden;

}

.main-gallery-folder-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:1s;

}

.main-gallery-folder-card:hover img{

    transform:scale(1.08);

}

/*=============================*/

.main-gallery-folder-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(

        to top,

        rgba(0,0,0,.65),

        transparent

    );

}

/*=============================*/

.main-gallery-folder-content{

    padding:25px;

    text-align:center;

}

/*=============================*/

.main-gallery-folder-icon{

    width:70px;

    height:70px;

    margin:auto;

    margin-top:-58px;

    position:relative;

    z-index:5;

    border-radius:50%;

    background:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:30px;

    color:#f59e0b;

    box-shadow:

    0 12px 30px rgba(0,0,0,.15);

    transition:.4s;

}

.main-gallery-folder-card:hover
.main-gallery-folder-icon{

    transform:rotate(-10deg)
    scale(1.08);

}

/*=============================*/

.main-gallery-folder-content h4{

    margin-top:18px;

    margin-bottom:8px;

    color:#111827;

    font-size:1.25rem;

}

.main-gallery-folder-content span{

    color:#6b7280;

}

/*=============================*/

@media(max-width:768px){

.main-gallery-folder-section{

padding:70px 10px;

}

.main-gallery-folder-grid{

gap:20px;

}

.main-gallery-folder-image{

height:220px;

}

}



/*========================*/

.main-gallery-images-section{

padding:100px 0;

background:#f7f9fc;

}

/*========================*/

.main-gallery-image-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:24px;

}

/*========================*/

.main-gallery-image-grid a{

text-decoration:none;

}

/*========================*/

.main-gallery-image-card{

position:relative;

overflow:hidden;

border-radius:20px;

cursor:pointer;

box-shadow:

0 10px 25px rgba(0,0,0,.08);

transition:.4s;

}

/*========================*/

.main-gallery-image-card img{

width:100%;

height:260px;

display:block;

object-fit:cover;

transition:1s;

}

/*========================*/

.main-gallery-image-card:hover img{

transform:scale(1.08);

}

/*========================*/

.main-gallery-image-overlay{

position:absolute;

inset:0;

display:flex;

justify-content:center;

align-items:center;

background:rgba(0,0,0,.45);

opacity:0;

transition:.4s;

}

/*========================*/

.main-gallery-image-card:hover
.main-gallery-image-overlay{

opacity:1;

}

/*========================*/

.main-gallery-image-overlay span{

width:65px;

height:65px;

border-radius:50%;

display:flex;

align-items:center;

justify-content:center;

background:#fff;

font-size:24px;

color:#0d6efd;

transform:scale(.5);

transition:.4s;

}

/*========================*/

.main-gallery-image-card:hover
.main-gallery-image-overlay span{

transform:scale(1);

}

/*========================*/

.main-gallery-image-card:hover{

transform:translateY(-8px);

box-shadow:

0 20px 40px rgba(0,0,0,.15);

}

/*========================*/

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

@media(max-width:992px){
.main-gallery-folder-grid,
.main-gallery-image-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:768px){

.main-gallery-images-section{

padding:70px 0;

}

.main-gallery-image-card img{

height:220px;

}

.main-gallery-folder-grid,
.main-gallery-image-grid{
grid-template-columns:1fr;
}
}

/*=========================
    VIDEO GALLERY
==========================*/

.video-gallery-section{
    padding:100px 0;
    background:#f8fafc;
}

.video-gallery-section .container{
    width:min(1320px,92%);
    margin:auto;
}

/*=========================
    SECTION TITLE
==========================*/

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title span{
    display:inline-block;
    color:#0d9488;
    font-size:15px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:10px;
}

.section-title h2{
    font-size:42px;
    font-weight:700;
    color:#111827;
    margin-bottom:15px;
}

.section-title p{
    max-width:650px;
    margin:auto;
    color:#6b7280;
    line-height:1.8;
}

/*=========================
    GRID
==========================*/

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

/*=========================
    CARD
==========================*/

.video-card{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    cursor:pointer;
    background:#fff;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    transition:.35s ease;
}

.video-card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 45px rgba(0,0,0,.15);
}

/*=========================
    THUMBNAIL
==========================*/

.video-thumbnail{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    background:#ddd center center/cover no-repeat;
}

.video-thumbnail::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.55),
        rgba(0,0,0,.08)
    );
}

/*=========================
    PLAY BUTTON
==========================*/

.play-button{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-60%);
    width:72px;
    height:72px;
    border-radius:50%;
    background:#ffffff;
    color:#0285AE;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:22px;
    z-index:2;
    transition:.35s;
    box-shadow:0 12px 30px rgba(0,0,0,.25);
}

.video-card:hover .play-button{
    transform:translate(-50%,-60%) scale(1.12);
    background:#0285AE;
    color:#fff;
}

/* Pulse */

.play-button::after{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    border-radius:50%;
    border:2px solid rgba(13,148,136,.5);
    animation:playPulse 2s infinite;
}

@keyframes playPulse{

    0%{
        transform:scale(1);
        opacity:1;
    }

    100%{
        transform:scale(1.7);
        opacity:0;
    }

}

/*=========================
    INFO
==========================*/

.video-info{
    padding:18px;
}

.video-info h4{
    margin:0;
    color:#111827;
    font-size:18px;
    line-height:1.5;
    font-weight:600;
}

/*=========================
    MODAL
==========================*/

.video-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.82);

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

    opacity:0;
    visibility:hidden;

    transition:.35s;

    z-index:9999;
}

.video-modal.active{
    opacity:1;
    visibility:visible;
}

.video-modal-content{
    position:relative;
    width:min(1000px,92%);
    border-radius:18px;
    overflow:hidden;
    background:#000;
    transform:scale(.9);
    transition:.35s;
}

.video-modal.active .video-modal-content{
    transform:scale(1);
}

/*=========================
    CLOSE
==========================*/

.video-close{
    position:absolute;
    right:15px;
    top:15px;

    width:42px;
    height:42px;

    border:none;
    border-radius:50%;

    background:#fff;
    color:#111;

    cursor:pointer;

    font-size:28px;

    z-index:10;

    transition:.3s;
}

.video-close:hover{
    background:#0d9488;
    color:#fff;
}

/*=========================
    IFRAME
==========================*/

.video-wrapper{
    position:relative;
    width:100%;
    padding-top:56.25%;
}

.video-wrapper iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}

/*=========================
    RESPONSIVE
==========================*/

@media(max-width:1100px){

.video-gallery{
    grid-template-columns:repeat(3,1fr);
}

}

@media(max-width:768px){

.video-gallery{
    grid-template-columns:repeat(2,1fr);
}

.section-title h2{
    font-size:34px;
}

.play-button{
    width:60px;
    height:60px;
    font-size:18px;
}

}

@media(max-width:576px){

.video-gallery{
    grid-template-columns:1fr;
}

.section-title h2{
    font-size:28px;
}

.video-gallery-section{
    padding:70px 0;
}

}

/*=========================
    PAGINATION DESIGN
==========================*/

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination-wrapper nav {
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pagination-wrapper .page-link {
    color: #0d6efd;
    border: none;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-link:hover {
    background: #0d6efd;
    color: #fff;
}

.pagination-wrapper .page-item.active .page-link {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

.pagination-wrapper .page-item.disabled .page-link {
    color: #6c757d;
    background: transparent;
}
