/* Stage wrapper inside your right red area */
.projects-stage{
  width: 100%;
  height: 100%;
  padding: 28px 0 48px;
  overflow: auto;
}

.projects-shell{
  width: min(1100px, 94%);
  margin: 0 auto;
}

/* ===== Header ===== */
.projects-header{
  text-align: center;
  margin: 10px auto 26px;
}

.projects-kicker-icon{
  width: 26px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.18));
  margin-bottom: 10px;
}

.projects-title-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.projects-line{
  width: min(220px, 24vw);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.10));
}

.projects-title{
  margin: 0;
  font-family: "Cinzel", serif;
  letter-spacing: 0.26em;
  font-weight: 500;
  color: rgba(230,216,181,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

/* ===== Grid ===== */
.projects-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  justify-content: center;
  margin-top: 18px;
}

/* Responsive */
@media (max-width: 1200px){
  .projects-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px){
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .projects-grid{ grid-template-columns: 1fr; }
}

/* ===== Cards ===== */
.project-card{
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 0; /* keep it sharp like LoL */
  overflow: hidden;

  background: rgba(10,10,14,0.35);
  border: 1px solid rgba(212,175,55,0.18);

  box-shadow:
    0 14px 34px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.03);

  transform: translateY(0);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.project-media{
  aspect-ratio: 3 / 4;
  width: 100%;
  background: rgba(0,0,0,0.25);
}

.project-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(0.98);
}

/* Footer label strip */
.project-footer{
  padding: 12px 12px 14px;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.82)
  );
  border-top: 1px solid rgba(212,175,55,0.14);
}

.project-title{
  font-family: "Cinzel", serif;
  letter-spacing: 0.12em;
  color: rgba(230,216,181,0.92);
  font-size: 0.95rem;
}

.project-sub{
  margin-top: 6px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.16em;
  color: rgba(230,216,181,0.65);
  font-size: 0.72rem;
}

/* Hover overlay (EXPLORE) */
.project-hover{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.project-cta{
  font-family: "Cinzel", serif;
  letter-spacing: 0.18em;
  color: rgba(230,216,181,0.92);
  padding: 10px 16px;

  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(10,10,14,0.45);
  box-shadow:
    0 0 18px rgba(212,175,55,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.04);

  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

/* Hover effects */
.project-card:hover{
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.34);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.62),
    0 0 28px rgba(212,175,55,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.project-card:hover .project-hover{
  opacity: 1;
  transform: translateY(0);
}

/* ===== Modal base ===== */
/* overlay */
.pmodal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.pmodal.is-open {
  display: block;
}

.pmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}

/* panel */
.pmodal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(1100px, 92vw);
  max-height: min(80vh, 820px);
  overflow: auto;

  border-radius: 18px;
  padding: 22px 22px 18px;

  background: rgba(10, 10, 14, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* close button */
.pmodal-close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: rgba(230,216,181,0.95);

  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* top header */
.pmodal-top {
  text-align: center;
  padding: 6px 10px 14px;
}

.pmodal-title {
  margin: 0;
  font-family: "Cinzel", serif;
  letter-spacing: 0.18em;
  color: rgba(230, 216, 181, 0.98);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.pmodal-subtitle {
  margin-top: 8px;
  color: rgba(230,216,181,0.78);
  letter-spacing: 0.06em;
}

.pmodal-divider {
  margin: 12px auto 0;
  width: min(760px, 92%);
  height: auto;
  opacity: 0.9;
  display: block;
}

/* body grid */
.pmodal-body {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 18px;
  padding: 10px 6px 8px;
}

@media (max-width: 900px) {
  .pmodal-body {
    grid-template-columns: 1fr;
  }
}

.pmodal-left {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(0,0,0,0.25);
}

.pmodal-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* right content */
.pmodal-section {
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(0,0,0,0.20);
  margin-bottom: 12px;
}

.pmodal-section-title {
  font-family: "Cinzel", serif;
  letter-spacing: 0.18em;
  color: rgba(230,216,181,0.9);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.pmodal-text {
  margin: 0;
  color: rgba(230,216,181,0.86);
  line-height: 1.75;
  white-space: pre-line;
}

.pmodal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pmodal-pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.28);
  background: rgba(0,0,0,0.22);
  color: rgba(230,216,181,0.88);
  font-size: 0.9rem;
}

/* footer links */
.pmodal-footer {
  padding: 10px 6px 0;
}

.pmodal-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.pmodal-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 12px;

  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(212,175,55,0.35);
  color: rgba(230,216,181,0.92);

  text-decoration: none;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* make panel padding consistent */
.pmodal-panel {
  padding: 22px;
}

/* ensure footer is separated nicely */
.pmodal-footer {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(212,175,55,0.18);
}

.pmodal-body {
  align-items: stretch;
}

.pmodal-left {
  display: flex;
}

.pmodal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* snapshots grid */
.pmodal-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.pmodal-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;

  border-radius: 10px;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(0,0,0,0.25);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.04);

  transition: transform .2s ease, box-shadow .2s ease;
}

.pmodal-shot:hover {
  transform: scale(1.03);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.6),
    0 0 18px rgba(212,175,55,0.18);
}

/* ===== Snapshot Lightbox ===== */
.shotbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
}

.shotbox.is-open {
  display: block;
}

.shotbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
}

/* panel */
.shotbox-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

#shotboxImage {
  max-width: min(92vw, 1400px);
  max-height: min(88vh, 900px);
  object-fit: contain;

  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(0,0,0,0.25);

  box-shadow:
    0 30px 80px rgba(0,0,0,0.85),
    0 0 40px rgba(212,175,55,0.18);

  animation: shotboxIn .22s ease-out;
}

/* close button */
.shotbox-close {
  position: absolute;
  top: 22px;
  right: 22px;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(212,175,55,0.35);
  color: rgba(230,216,181,0.95);

  font-size: 26px;
  cursor: pointer;
}

@keyframes shotboxIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
