/* Nivah category carousel: subtle rounded edges and feathered outer transitions */
.nivah-category-stage{
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 5.5%,#000 94.5%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0%,#000 5.5%,#000 94.5%,transparent 100%);
}
.nivah-category-tile{
  border-radius:11px;
  overflow:hidden;
}
.nivah-category-photo{
  border-radius:11px;
}
.nivah-category-photo img{
  transition:transform 1s cubic-bezier(.22,1,.36,1),filter .9s ease;
}
@media(max-width:800px){
  .nivah-category-stage{
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 4%,#000 96%,transparent 100%);
    mask-image:linear-gradient(90deg,transparent 0%,#000 4%,#000 96%,transparent 100%);
  }
  .nivah-category-tile,.nivah-category-photo{border-radius:8px}
}

/* Instagram post and Reel slider */
.nivah-instagram-section{
  padding:67px 0 75px;
  background:linear-gradient(180deg,#fff 0%,#fbf8f5 100%);
  overflow:hidden;
}
.nivah-instagram-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:25px;
  padding-bottom:26px;
}
.nivah-instagram-section .eyebrow{
  margin:0 0 8px;
  letter-spacing:2.5px;
}
.nivah-instagram-section h2{
  margin:0 0 9px;
  font:400 clamp(36px,4vw,57px)/1.05 "Playfair Display",Georgia,serif;
  letter-spacing:-1.4px;
}
.nivah-instagram-section .insta-desc{
  color:#7e756b;
  font-size:13px;
  margin:0;
}
.nivah-insta-follow{
  display:inline-flex;align-items:center;gap:11px;
  color:#4b3b33;
  padding:11px 0;
  border-bottom:1px solid #bc9972;
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
  white-space:nowrap;
}
.nivah-insta-follow svg{width:18px;height:18px}
.nivah-insta-follow:hover{color:#ad895c}
.nivah-insta-window{
  position:relative;overflow:hidden;
}
.nivah-insta-track{
  display:flex;
  gap:15px;
  transition:transform .8s cubic-bezier(.22,1,.36,1);
  will-change:transform;
}
.nivah-insta-card{
  position:relative;
  flex:0 0 calc((100% - 60px)/5);
  min-width:0;
  aspect-ratio:4 / 5.2;
  display:block;
  border-radius:9px;
  overflow:hidden;
  background:#ede7df;
}
.nivah-insta-image{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .85s cubic-bezier(.22,1,.36,1);
}
.nivah-insta-card:hover .nivah-insta-image{transform:scale(1.06)}
.nivah-insta-card::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(14,12,10,.30),transparent 42%,rgba(16,15,13,.66));
  pointer-events:none;
}
.nivah-insta-type{
  position:absolute;top:15px;right:14px;
  z-index:1;color:#fff;
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 9px;
  font-size:10px;font-weight:800;letter-spacing:1px;
  background:rgba(21,20,18,.35);
  border:1px solid rgba(255,255,255,.23);
  border-radius:20px;
  backdrop-filter:blur(6px);
}
.nivah-insta-meta{
  position:absolute;left:18px;right:16px;bottom:18px;z-index:1;
  color:#fff;
  display:flex;flex-direction:column;gap:8px;
}
.nivah-insta-meta strong{
  font:400 24px/1.1 "Playfair Display",Georgia,serif;
}
.nivah-insta-meta small{
  color:#e6d8c5;font-size:10px;letter-spacing:1px;
}
.nivah-insta-footer{
  display:flex;justify-content:space-between;align-items:center;
  gap:16px;margin-top:21px;
}
.nivah-insta-controls{display:flex;gap:8px}
.nivah-insta-arrow{
  display:inline-grid;place-items:center;
  width:41px;height:41px;
  border-radius:50%;border:1px solid #d9d0c4;
  background:#fff;color:#3f3630;
  transition:background .25s ease,transform .25s ease;
}
.nivah-insta-arrow:hover{background:#f2e8d9;transform:translateY(-2px)}
.nivah-insta-counter{
  font-size:10px;letter-spacing:2px;color:#9b8a79;font-weight:700;
}
.nivah-insta-empty{
  min-height:238px;
  background:#f3eee7;
  display:flex;flex-direction:column;
  justify-content:center;align-items:center;
  gap:16px;text-align:center;
  padding:35px 22px;
  border-radius:12px;
}
.nivah-insta-empty .ig-icon{
  width:42px;height:42px;color:#ab8c69;
}
.nivah-insta-empty p{max-width:430px;margin:0;color:#655b50;font-size:13px}
.nivah-insta-empty a{
  font-size:10px;font-weight:800;letter-spacing:1.5px;border-bottom:1px solid #ab8c69;padding-bottom:7px;
}
@media(max-width:1100px){
  .nivah-insta-card{flex-basis:calc((100% - 45px)/4);}
}
@media(max-width:800px){
  .nivah-instagram-section{padding:47px 0 52px}
  .nivah-instagram-top{align-items:flex-start;flex-direction:column;gap:14px;padding-bottom:18px}
  .nivah-instagram-section h2{font-size:36px}
  .nivah-insta-card{flex-basis:calc((100% - 12px)/2.2)}
  .nivah-insta-track{gap:12px}
  .nivah-insta-meta strong{font-size:19px}
}
@media(max-width:440px){
  .nivah-insta-card{flex-basis:calc((100% - 10px)/1.65)}
  .nivah-insta-track{gap:10px}
}
@media(prefers-reduced-motion:reduce){
  .nivah-insta-track,.nivah-insta-image{transition:none}
}

/* Visible only while showing the eight preview items */
.nivah-insta-preview-note{
  display:inline-block;
  margin-top:9px;
  color:#9d8872;
  font-size:10px;
  letter-spacing:.5px;
}
