html, body{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

:root{
  --topbar-h: 45px;
  --header-h: 80px;
  --header-offset: calc(var(--topbar-h) + var(--header-h));
}

body{
  padding-top: var(--header-offset);
}
/* ============ GALLERY HERO ============ */
.gallery-hero{
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background-image: url("images/image-gallery-banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.gallery-hero__overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.gallery-hero__content{
    position: relative;
    z-index: 2;
    padding: 24px 16px;
    max-width: 1100px;
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gallery-hero__title{
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 64px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    text-align: left;
    padding-left: 70px;
}

.gallery-hero__breadcrumb{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    font-weight: 500;
    padding-left: 90px;
}

.gallery-hero__link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: 0.2s ease;
    display: inline-block;
}

.gallery-hero__link:hover{
    opacity: 0.85;
}

.gallery-hero__sep{
    color: rgba(255,255,255,0.8);
}

.gallery-hero__current{
    color: #ff7a18;
    font-weight: 700;
}

/* ===== Laptop / Small Desktop (<=1024px) ===== */
@media (max-width: 1024px){
    .gallery-hero{
        min-height:280px;
    }
    
    .gallery-hero__title{
        font-size: 52px;
    }
    
    .gallery-hero__breadcrumb{
        font-size: 16px;
    }
}

/* ===== Tablet (<=768px) - CENTER CONTENT ===== */
@media (max-width: 768px){
    :root{
        --topbar-h: 0px;
        --header-h: 60px;
        --header-offset: calc(var(--topbar-h) + var(--header-h));
    }
    
    body{
        padding-top: var(--header-offset);
    }
    
    .gallery-hero{
        min-height: 280px;
        margin-top: 0;
        justify-content: center; /* ✅ Center alignment */
    }
    
    .gallery-hero__content{
        margin-left: auto; /* ✅ Center horizontally */
        margin-right: auto; /* ✅ Center horizontally */
        align-items: center; /* ✅ Center items */
    }
    
    .gallery-hero__title{
        font-size: 44px;
        text-align: center; /* ✅ Center text */
        padding-left: 0; /* ✅ Remove left padding */
    }
    
    .gallery-hero__breadcrumb{
        font-size: 15px;
        gap: 8px;
        padding-left: 0; /* ✅ Remove left padding */
        justify-content: center; /* ✅ Center breadcrumbs */
    }
}

/* ===== Mobile (<=520px) ===== */
@media (max-width: 520px){
    .gallery-hero{
        min-height: 230px;
        justify-content: center;
    }
    
    .gallery-hero__content{
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }
    
    .gallery-hero__title{
        font-size: 34px;
        text-align: center;
        padding-left: 0;
    }
    
    .gallery-hero__breadcrumb{
        font-size: 14px;
        gap: 6px;
        padding-left: 0;
        justify-content: center;
    }
}

/* Section 1 */
  /* SECTION */
     .gallery-section-1{
    padding: 22px 0 40px;
    background: var(--bg);
  }

  .gallery-section-1__container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .gallery-section-1__head{
    text-align: center;
    padding: 10px 0 6px;
  }

  .gallery-section-1__heading{
    margin: 6px 0 6px;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .gallery-section-1__desc{
    margin: 0;
    font-size: clamp(14px, 1.6vw, 18px);
    color: var(--muted);
    max-width: 860px;
    margin-inline: auto;
  }

  .gallery-section-1__filterbar{
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 18px 0 18px;
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, rgba(250,250,250,.95), rgba(250,250,250,.75));
    backdrop-filter: blur(8px);
    padding: 14px 0;
    z-index: 5;
  }

  .gallery-section-1__chip{
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: .2s ease;
    box-shadow: 0 8px 20px rgba(212,161,30,.12);
    user-select: none;
    outline: none;
  }

  .gallery-section-1__chip:hover{
    transform: translateY(-1px);
    background: var(--primary-soft);
  }

  .gallery-section-1__chip.is-active{
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
  }

  /* Desktop/Laptop: 4 per row */
  .gallery-section-1__grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .gallery-section-1__card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
    transition: transform .2s ease;
    transform: translateZ(0);
  }

  .gallery-section-1__thumbwrap{
    position: relative;
    width: 100%;
    height: 230px;
    background: #f0f0f0;
    overflow: hidden;
  }

  .gallery-section-1__thumb{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .25s ease, transform .25s ease;
    will-change: opacity, transform;
  }

  .gallery-section-1__thumb.is-hover{
    opacity: 0;
    transform: scale(1.03);
  }

  .gallery-section-1__card:hover .gallery-section-1__thumb.is-hover{
    opacity: 1;
    transform: scale(1);
  }

  .gallery-section-1__card:hover .gallery-section-1__thumb.is-main{
    opacity: 0;
    transform: scale(1.02);
  }

  .gallery-section-1__card:hover{
    transform: translateY(-2px);
  }

  .gallery-section-1__overlay{
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
    color: #fff;
    z-index: 2;
  }

  .gallery-section-1__title{
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
  }

  .gallery-section-1__sub{
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.88);
  }

  .gallery-section-1__hide{ display: none !important; }

  /* <=1024px: 2 per row */
  @media (max-width: 1024px){
    .gallery-section-1__grid{ grid-template-columns: repeat(2, 1fr); }
    .gallery-section-1__thumbwrap{ height: 220px; }
  }

  /* <=768px: 2 per row */
  @media (max-width: 768px){
    .gallery-section-1__grid{ grid-template-columns: repeat(2, 1fr); }
    .gallery-section-1__thumbwrap{ height: 210px; }
    .gallery-section-1__chip{ padding: 9px 14px; font-weight: 800; }
    .gallery-section-1__filterbar{
    position: static;   /* sticky removed */
    top: auto;
    background: transparent;
    backdrop-filter: none;
    z-index: auto;
  }
  }

  /* <=480px: 1 per row */
  @media (max-width: 480px){
    .gallery-section-1__grid{ grid-template-columns: 1fr; }
    .gallery-section-1__thumbwrap{ height: 210px; }
    .gallery-section-1__filterbar{ gap: 10px; }
    .gallery-section-1__chip{ width: 100%; text-align: center; }
  }


  /* cta section */
  /* ===== Gallery Page CTA (New Design) ===== */
.gallery-page-cta{
  width: 100%;
  padding: 38px 16px;
}

@media (min-width: 1024px){
  .gallery-page-cta{
    padding-left: 40px;
    padding-right: 40px;
  }
}

.gallery-page-cta__wrap{
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(17,24,39,.10);
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,.16), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(17,24,39,.10), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(245,247,255,.92));
  overflow: hidden;

  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: stretch;
}

/* Left */
.gallery-page-cta__left{
  min-width: 0;
  padding: 10px;
}

.gallery-page-cta__tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(17,24,39,.85);
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(17,24,39,.08);
}

.gallery-page-cta__title{
  margin: 12px 0 10px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: #111827;
}

.gallery-page-cta__text{
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(17,24,39,.78);
  max-width: 70ch;
}

.gallery-page-cta__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.gallery-page-cta__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 18px;
  min-height: 50px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  outline: none;
  white-space: nowrap;
}

.gallery-page-cta__btn--primary{
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 26px rgba(17,24,39,.20);
}
.gallery-page-cta__btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(17,24,39,.26);
}
.gallery-page-cta__btn--ghost{
  background: rgba(255,255,255,.75);
  color: #111827;
  border-color: rgba(17,24,39,.14);
}
.gallery-page-cta__btn--ghost:hover{
  background: rgba(255,255,255,.95);
  transform: translateY(-1px);
}

.gallery-page-cta__btn:focus-visible{
  box-shadow: 0 0 0 3px rgba(59,130,246,.35);
}

.gallery-page-cta__note{
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(17,24,39,.65);
}

/* Right mini cards */
.gallery-page-cta__right{
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 10px;
}

.gallery-page-cta__mini{
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(17,24,39,.08);
}

.gallery-page-cta__icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(17,24,39,.06);
  border: 1px solid rgba(17,24,39,.08);
  font-size: 18px;
  flex: 0 0 auto;
}

.gallery-page-cta__miniTitle{
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: rgba(17,24,39,.90);
}

.gallery-page-cta__miniText{
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(17,24,39,.70);
}

/* Responsive */
@media (max-width: 1023px){
  .gallery-page-cta__wrap{
    grid-template-columns: 1fr;
  }
  .gallery-page-cta__title{
    font-size: 26px;
  }
}

@media (max-width: 520px){
  .gallery-page-cta{
    padding: 24px 16px;
  }

  .gallery-page-cta__wrap{
    padding: 18px;
    border-radius: 18px;
  }

  .gallery-page-cta__btn{
    width: 100%;
    white-space: normal;
  }

  .gallery-page-cta__title{
    font-size: 22px;
  }
}
