:root{
  --g-dark:#0b1b12;
  --g-emerald:#1a472a;
  --g-emerald-2:#2e7d32;
  --g-mint:#e8f5e9;
  --g-gold:#ffc107;
  --g-text:#20302a;
  --g-white:#fff;
  --shadow: 0 18px 40px rgba(0,0,0,.14);
}

/* ===== Gallery Wrapper ===== */
.ug-gallery{
  padding: clamp(56px, 6vw, 90px) 16px;
  /* background:
    radial-gradient(1200px 600px at 20% 0%, rgba(46,125,50,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,193,7,.10), transparent 55%),
    linear-gradient(180deg, #f4fbf6, #eef6f2); */
}

.ug-wrap{
  max-width: 1200px;
  margin: auto;
}

.ug-head{
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.ug-title{
  font-size: clamp(26px, 3vw, 44px);
  color: #0f2d1c;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  position: relative;
}

.ug-title::after{
  content:"";
  display:block;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--g-gold), rgba(46,125,50,.85));
  margin-top: 14px;
}

/* ===== Asymmetric Grid ===== */
.ug-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

/* Base card */
.ug-card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 260px;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
  transform: translateY(18px);
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease, box-shadow .25s ease;
  outline: none;
  isolation: isolate;
}

/* Asymmetric sizes (desktop) */
.ug-card:nth-child(1){ grid-column: span 5; min-height: 330px; }
.ug-card:nth-child(2){ grid-column: span 7; min-height: 280px; }
.ug-card:nth-child(3){ grid-column: span 4; min-height: 310px; }
.ug-card:nth-child(4){ grid-column: span 4; min-height: 280px; }
.ug-card:nth-child(5){ grid-column: span 4; min-height: 310px; }
.ug-card:nth-child(6){ grid-column: span 8; min-height: 300px; }

/* Reveal */
.ug-card.is-visible{
  transform: translateY(0);
  opacity: 1;
}

/* Image */
.ug-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .7s ease;
}

/* Gradient overlay */
.ug-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.70),
    rgba(0,0,0,0.20),
    transparent
  );
  z-index: 1;
}

/* Glow border */
.ug-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,193,7,.35), rgba(46,125,50,.35), rgba(255,255,255,.12));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 2;
  pointer-events: none;
}

/* Text */
.ug-meta{
  position:absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  color: #fff;
  z-index: 3;
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.ug-meta h3{
  margin:0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* gold title (as your code had) */
.ug-meta h3{
  color: var(--g-gold) !important;
}

/* Hover / Focus */
.ug-card:hover{
  box-shadow: 0 22px 48px rgba(0,0,0,0.18);
}
.ug-card:hover img{
  transform: scale(1.12);
}
.ug-card:hover::before{
  opacity: 1;
}
.ug-card:focus-visible{
  box-shadow: 0 24px 55px rgba(0,0,0,0.22);
}
.ug-card:focus-visible::before{
  opacity: 1;
}

/* ===== No Data UI (when gallery empty) ===== */
.no-data-wrapper{
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}
.no-data-box{
  width: min(560px, 100%);
  /* background: rgba(255,255,255,0.7); */
  /* border: 1px solid rgba(15,45,28,0.08); */
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  /* box-shadow: 0 16px 40px rgba(0,0,0,0.08); */
  backdrop-filter: blur(8px);
}
.no-data-box i{
  font-size: 34px;
  color: rgba(46,125,50,.85);
  margin-bottom: 10px;
}
.no-data-box h3{
  margin: 0 0 6px;
  color: #0f2d1c;
  font-weight: 800;
}
.no-data-box p{
  margin: 0;
  color: rgba(32,48,42,.8);
}

/* ===== Lightbox ===== */
.ug-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  z-index: 9999;
}

.ug-lightbox.is-open{
  opacity: 1;
  visibility: visible;
}

.ug-preview{
  width: min(980px, 100%);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transform: scale(.98);
  opacity: 0;
  transition: .25s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  position: relative;
}

.ug-lightbox.is-open .ug-preview{
  transform: scale(1);
  opacity: 1;
}

.ug-preview img{
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #0b0f0d;
}

/* caption */
.ug-preview figcaption{
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.ug-preview figcaption h3{
  margin: 0;
  color: #0f2d1c;
  font-weight: 800;
  font-size: 16px;
}

/* Close btn */
.ug-close{
  position: fixed;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.92);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Nav arrows */
.ug-nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
}
.ug-prev{ left: 18px; }
.ug-next{ right: 18px; }

/* Hide arrows on small devices (swipe works if you add later) */
@media (max-width: 600px){
  .ug-nav{ display:none; }
}

/* ===== Responsive Grid ===== */
@media (max-width: 980px){
  .ug-card{ grid-column: span 6 !important; min-height: 280px; }
  .ug-head{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px){
  .ug-card{ grid-column: span 12 !important; min-height: 240px; border-radius: 16px; }
  .ug-card::before{ border-radius: 16px; }
}
