/* Centered content width */
.container-narrow { max-width: 980px; margin: 0 auto; }

/* Title with a modern gradient feel */
.rd-title {
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1.15;
  margin-bottom: .75rem;
  background: linear-gradient(90deg, #6f42c1, #20c997);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* Front image centered with soft shadow */
.rd-front-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.5rem;
}
.rd-front-img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
  object-fit: cover;
}

/* Description: clean card look + nicer typography */
.rd-desc-inner {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  line-height: 1.75;
  color: #2b2f33;
  font-size: 1.02rem;
}
.rd-desc-inner p { margin-bottom: .85rem; }


/* Section title spacing */
.rd-section-title { margin: 1.5rem 0 .75rem; }

/* Gallery thumbs */
.rd-thumb { display: block; border-radius: 12px; overflow: hidden; position: relative; }
.rd-thumb img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  transition: transform .25s ease, filter .25s ease;
  filter: saturate(1.05);
}
.rd-thumb:hover img { transform: scale(1.03); }

/* LIGHTBOX overlay */
.lb-overlay {
  position: fixed; inset: 0; z-index: 1080;
  background: rgba(10, 10, 12, .88);
  display: none;
  opacity: 0;
  transition: opacity .22s ease;
}
.lb-overlay.active { display: flex; opacity: 1; }
.lb-overlay.enter { animation: lbFadeIn .28s ease both; }
.lb-overlay.leave { animation: lbFadeOut .2s ease both; }

@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbFadeOut { from { opacity: 1; } to { opacity: 0; } }

.lb-stage {
  position: relative;
  margin: auto;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}

/* Image frame with loader overlay */
.lb-frame {
  position: relative;
  display: grid;
  place-items: center;
}
.lb-loader {
  position: absolute;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
  opacity: 0; transform: scale(.8);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.lb-overlay.loading .lb-loader,
.lb-loader.on { opacity: 1; transform: scale(1); }

@keyframes spin { to { transform: rotate(360deg); } }

/* Base image styling + animations */
.lb-img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
  opacity: 0; transform: scale(.94);
  transition: opacity .22s ease, transform .22s ease, translate .22s ease;
  will-change: opacity, transform;
}

/* Appear (zoom/fade) */
.lb-img.shown {
  opacity: 1; transform: scale(1);
}

/* Crossfade out */
.lb-img.fade-out {
  opacity: 0; transform: scale(.96);
}

/* Slide transitions (next/prev) */
.lb-img.slide-in-right { 
  opacity: 1; 
  animation: slideInFromRight .22s ease both;
}
.lb-img.slide-in-left  { 
  opacity: 1; 
  animation: slideInFromLeft .22s ease both;
}
.lb-img.slide-out-left  { 
  animation: slideOutToLeft .2s ease both;
}
.lb-img.slide-out-right { 
  animation: slideOutToRight .2s ease both;
}

@keyframes slideInFromRight { 
  from { opacity: 0; transform: translateX(22px) scale(.98); } 
  to   { opacity: 1; transform: translateX(0)    scale(1); } 
}
@keyframes slideInFromLeft { 
  from { opacity: 0; transform: translateX(-22px) scale(.98); } 
  to   { opacity: 1; transform: translateX(0)      scale(1); } 
}
@keyframes slideOutToLeft {
  from { opacity: 1; transform: translateX(0)      scale(1); } 
  to   { opacity: 0; transform: translateX(-18px)  scale(.98); } 
}
@keyframes slideOutToRight {
  from { opacity: 1; transform: translateX(0)     scale(1); } 
  to   { opacity: 0; transform: translateX(18px)  scale(.98); } 
}

/* Controls */
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.92); color: #111; font-weight: 700;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
  transition: transform .12s ease;
}
.lb-btn:active { transform: translateY(-50%) scale(.96); }
.lb-prev { left: -58px; }
.lb-next { right: -58px; }

.lb-close {
  position: absolute; top: -56px; right: -4px;
  width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.95); color: #111; font-weight: 700;
  box-shadow: 0 10px 20px rgba(0,0,0,.2); cursor: pointer;
  transition: transform .12s ease;
}
.lb-close:active { transform: scale(.96); }

/* Small screens: tuck arrows in a bit */
@media (max-width: 576px) {
  .rd-thumb img { height: 160px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 8px; right: 8px; }
}
#gallery
{
    margin-top: 40px;
}

#attachments
{
    margin-top: 20px;
}