:root,
.raj-gallery-page{
  --rg-bg:#f6f2ea;
  --rg-surface:#fff;
  --rg-ink:#1f1b16;
  --rg-muted:#746d64;
  --rg-line:#ddd5c8;
  --rg-accent:#7b3327;
  --rg-accent-dark:#5f251d;
  --rg-shadow:0 16px 50px rgba(34,25,17,.12);
}

.raj-gallery-page{
  background:var(--rg-bg);
  color:var(--rg-ink);
}

.raj-gallery-page *,
.raj-gallery-lightbox *{
  box-sizing:border-box;
}

.rg-container{
  width:min(1240px,calc(100% - 40px));
  margin-inline:auto;
}

.rg-hero{
  padding:calc(var(--nav-height) + 56px) 0 56px;
}

.rg-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.85fr);
  gap:70px;
  align-items:end;
}

.rg-eyebrow{
  margin:0;
  text-transform:uppercase;
  letter-spacing:0;
  font-size:12px;
  color:var(--rg-accent);
  font-weight:800;
}

.rg-hero h1{
  margin:14px 0 0;
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(46px,6vw,82px);
  line-height:.98;
  font-weight:600;
  letter-spacing:0;
}

.rg-hero-copy{
  margin:0;
  color:var(--rg-muted);
  font-size:17px;
  line-height:1.75;
}

.rg-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:26px;
}

.rg-section{
  padding:0 0 86px;
  background:var(--rg-bg);
}

.rg-portfolio-layout{
  display:grid;
  grid-template-columns:238px minmax(0,1fr);
  gap:26px;
  align-items:start;
}

.rg-toolbar{
  position:sticky;
  top:calc(var(--nav-height-scrolled) + 20px);
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid var(--rg-line);
  border-radius:8px;
  background:rgba(255,255,255,.76);
  box-shadow:0 12px 32px rgba(34,25,17,.08);
}

.rg-filter-scroll{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.rg-filter{
  border:1px solid var(--rg-line);
  background:transparent;
  color:var(--rg-ink);
  width:100%;
  padding:11px 12px;
  border-radius:8px;
  cursor:pointer;
  font-size:13px;
  font-weight:800;
  text-align:left;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}

.rg-filter:hover,
.rg-filter.is-active{
  background:var(--rg-ink);
  color:#fff;
  border-color:var(--rg-ink);
}

.rg-filter span{
  opacity:.68;
  margin-left:4px;
  float:right;
}

.rg-toolbar-meta{
  font-size:13px;
  color:var(--rg-muted);
  white-space:nowrap;
  font-weight:700;
}

.rg-gallery-panel{
  min-width:0;
}

.rg-gallery{
  column-count:4;
  column-gap:12px;
}

.rg-gallery-item{
  display:block;
  width:100%;
  height:auto;
  margin:0 0 12px;
  position:relative;
  overflow:hidden;
  background:transparent;
  border:0;
  padding:0;
  cursor:zoom-in;
  min-width:0;
  break-inside:avoid;
  border-radius:8px;
  box-shadow:0 10px 28px rgba(34,25,17,.1);
}

.rg-gallery-item.rg-portrait{
  flex-grow:initial;
}

.rg-gallery-item.rg-landscape{
  flex-grow:initial;
}

.rg-gallery-item.rg-square{
  flex-grow:initial;
}

.rg-gallery-item img{
  width:100%;
  height:auto;
  object-fit:initial;
  display:block;
  background:transparent;
  transition:transform .45s ease;
}

.rg-gallery-item:hover img{
  transform:scale(1.018);
}

.rg-gallery-overlay{
  position:absolute;
  inset:auto 0 0;
  padding:36px 18px 16px;
  background:linear-gradient(transparent,rgba(0,0,0,.68));
  color:#fff;
  opacity:0;
  transform:translateY(5px);
  transition:opacity .25s ease,transform .25s ease;
  text-align:left;
}

.rg-gallery-item:hover .rg-gallery-overlay,
.rg-gallery-item:focus-visible .rg-gallery-overlay{
  opacity:1;
  transform:none;
}

.rg-gallery-overlay strong{
  display:block;
  font-family:'Playfair Display',Georgia,serif;
  font-size:17px;
  font-weight:600;
  line-height:1.25;
}

.rg-gallery-overlay span{
  font-size:12px;
  opacity:.86;
}

.rg-load-more-wrap{
  text-align:center;
  padding-top:42px;
}

.rg-load-more{
  border:1px solid var(--rg-ink);
  background:transparent;
  color:var(--rg-ink);
  padding:14px 24px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
}

.rg-load-more:hover{
  background:var(--rg-ink);
  color:#fff;
}

.rg-load-more[hidden]{
  display:none;
}

.rg-cta{
  background:#211c17;
  color:#fff;
  padding:70px 0;
}

.rg-cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}

.rg-cta h2{
  margin:10px 0 0;
  max-width:850px;
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(32px,4vw,54px);
  font-weight:600;
  line-height:1.1;
  letter-spacing:0;
}

.rg-primary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--rg-accent);
  color:#fff;
  text-decoration:none;
  padding:14px 20px;
  border-radius:999px;
  white-space:nowrap;
  font-weight:800;
}

.rg-primary-btn:hover{
  background:var(--rg-accent-dark);
  color:#fff;
}

.raj-gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:10000;
  background:rgba(17,14,12,.97);
  color:#fff;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto auto;
  visibility:hidden;
  opacity:0;
  transition:opacity .25s ease,visibility .25s ease;
}

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

.rg-lightbox-topbar{
  padding:14px 18px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.rg-lightbox-topbar h3{
  margin:4px 0 0;
  max-width:min(54vw,720px);
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}

.rg-lightbox-counter{
  font-size:11px;
  color:#aaa;
}

.rg-lightbox-actions{
  display:flex;
  gap:7px;
  align-items:center;
}

.rg-lightbox-actions button,
.rg-nav-btn{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:999px;
  cursor:pointer;
}

.rg-lightbox-actions button{
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
}

.rg-lightbox-actions button:hover,
.rg-nav-btn:hover{
  background:rgba(255,255,255,.16);
}

.rg-lightbox-actions .rg-zoom-reset{
  width:58px;
  font-size:11px;
  font-weight:800;
}

.rg-lightbox-stage{
  position:relative;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.rg-image-pan-area{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  touch-action:none;
}

.rg-image-pan-area img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  transform-origin:center center;
  will-change:transform;
  user-select:none;
  -webkit-user-drag:none;
}

.rg-nav-btn{
  position:absolute;
  z-index:2;
  width:48px;
  height:48px;
  top:50%;
  transform:translateY(-50%);
  font-size:30px;
  display:grid;
  place-items:center;
}

.rg-nav-btn.rg-prev{
  left:18px;
}

.rg-nav-btn.rg-next{
  right:18px;
}

.rg-lightbox-info{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:14px 20px;
  border-top:1px solid rgba(255,255,255,.12);
}

.rg-lightbox-caption{
  margin:0;
  font-family:'Playfair Display',Georgia,serif;
  font-size:17px;
  line-height:1.35;
}

.rg-lightbox-category{
  margin:5px 0 0;
  font-size:12px;
  color:#aaa;
}

.rg-thumb-strip{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:10px 16px;
  border-top:1px solid rgba(255,255,255,.1);
  transition:.2s;
}

.rg-thumb-strip.is-hidden{
  display:none;
}

.rg-thumb{
  width:74px;
  height:54px;
  flex:0 0 auto;
  border:2px solid transparent;
  background:#29231e;
  border-radius:5px;
  overflow:hidden;
  padding:0;
  cursor:pointer;
}

.rg-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.rg-thumb.is-active{
  border-color:#fff;
}

@media(max-width:1100px){
  .rg-portfolio-layout{
    grid-template-columns:220px minmax(0,1fr);
    gap:20px;
  }

  .rg-gallery{
    column-count:3;
  }
}

@media(max-width:920px){
  .rg-portfolio-layout{
    grid-template-columns:206px minmax(0,1fr);
  }

  .rg-gallery{
    column-count:2;
  }
}

@media(max-width:800px){
  .rg-container{
    width:min(100% - 24px,1240px);
  }

  .rg-hero{
    padding:calc(var(--nav-height-scrolled) + 38px) 0 42px;
  }

  .rg-hero-grid{
    grid-template-columns:1fr;
    gap:26px;
  }

  .rg-hero-copy{
    max-width:600px;
  }

  .rg-portfolio-layout{
    display:block;
  }

  .rg-toolbar{
    position:sticky;
    top:calc(var(--nav-height-scrolled) + 8px);
    z-index:15;
    align-items:flex-start;
    gap:12px;
    margin-bottom:18px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(14px);
    box-shadow:0 14px 34px rgba(34,25,17,.14);
  }

  .rg-filter-scroll{
    flex-direction:row;
    flex-wrap:nowrap;
    width:100%;
    overflow-x:auto;
    padding-bottom:2px;
  }

  .rg-filter{
    width:auto;
    flex:0 0 auto;
    white-space:nowrap;
  }

  .rg-filter span{
    float:none;
  }

  .rg-gallery{
    column-count:3;
    column-gap:8px;
  }

  .rg-gallery-item{
    margin-bottom:8px;
  }

  .rg-cta-inner{
    align-items:flex-start;
    flex-direction:column;
  }

  .rg-lightbox-topbar{
    padding:9px 10px;
  }

  .rg-lightbox-topbar>div:first-child{
    max-width:36%;
  }

  .rg-lightbox-actions{
    gap:4px;
  }

  .rg-lightbox-actions button{
    width:34px;
    height:34px;
  }

  .rg-lightbox-actions .rg-zoom-reset{
    display:none;
  }

  .rg-nav-btn{
    width:42px;
    height:42px;
  }

  .rg-nav-btn.rg-prev{
    left:8px;
  }

  .rg-nav-btn.rg-next{
    right:8px;
  }

  .rg-lightbox-info{
    padding:10px 12px;
    align-items:flex-start;
  }

  .rg-lightbox-cta{
    font-size:12px;
    padding:11px 14px;
  }

  .rg-thumb{
    width:62px;
    height:47px;
  }
}

@media(max-width:520px){
  .rg-hero h1{
    font-size:44px;
  }

  .rg-gallery-item{
    margin-bottom:7px;
  }

  .rg-gallery{
    column-count:2;
    column-gap:7px;
  }

  .rg-gallery-overlay{
    display:none;
  }

  .rg-lightbox-info{
    flex-direction:column;
    gap:10px;
  }

  .rg-lightbox-cta{
    width:100%;
  }

  .rg-lightbox-caption{
    font-size:15px;
  }
}
