/* Gaya khusus detail proyek Pascasarjana UIN Ar-Raniry. */
.project-hero--pasca {
  padding-bottom: clamp(3.25rem, 7vw, 5.5rem);
}

.pasca-heading {
  align-items: end;
}

.pasca-heading h1 {
  max-width: 820px;
}

.pasca-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.live-status,
.project-type {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

.live-status {
  border-color: #b9ddc5;
  background: #eff9f2;
  color: #176b36;
}

.live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a653;
  box-shadow: 0 0 0 4px rgba(40, 166, 83, 0.12);
}

.project-type {
  color: var(--muted);
}

.pasca-intro {
  max-width: 540px;
}

.pasca-intro .summary {
  max-width: none;
  margin-bottom: 1.25rem;
}

.pasca-actions {
  justify-content: flex-start;
}

.pasca-facts {
  grid-template-columns: 0.7fr 1.25fr 1fr;
}

.pasca-cover {
  display: block;
  width: 100%;
  min-height: 0;
  max-height: none;
  padding: 0;
  border: 1px solid var(--border);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.pasca-shot-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2.07 / 1;
  overflow: hidden;
  background: #e9eef1;
}

.pasca-shot-frame img {
  position: absolute;
  top: -11%;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
}

.pasca-cover .pasca-shot-frame {
  border-bottom: 1px solid var(--border);
}

.cover-caption {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.cover-caption span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand);
}

.cover-caption i {
  font-style: normal;
}

.pasca-body {
  width: min(calc(100% - 2rem), 1040px);
}

.scope-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem !important;
  padding-left: 0 !important;
  list-style: none;
}

.scope-list li {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.scope-list strong,
.scope-list span {
  display: block;
}

.scope-list strong {
  margin-bottom: 0.3rem;
  color: var(--brand);
  font-size: 0.9rem;
}

.scope-list span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.tech-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: none;
}

.tech-overview > div {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.tech-overview strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brand);
  font-size: 0.9rem;
}

.tech-overview p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.inline-live-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
}

.inline-live-link:hover {
  color: var(--brand);
}

.pasca-gallery-heading {
  align-items: end;
}

.pasca-gallery-heading > div:first-child p {
  margin-top: 0.4rem;
}

.gallery-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
}

.gallery-controls button,
.lightbox-top-actions button,
.lightbox-footer button {
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--brand);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.gallery-controls button {
  width: 40px;
  padding: 0;
}

.gallery-controls span {
  min-width: 3.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.pasca-gallery .gallery-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
  transition: transform 220ms ease;
}

.pasca-gallery .gallery-image-button:hover img {
  transform: scale(1.012);
}

.pasca-gallery .gallery-slide figcaption {
  display: grid;
  gap: 0.18rem;
  min-height: 76px;
}

.pasca-gallery .gallery-slide figcaption strong {
  color: var(--brand);
  font-size: 0.83rem;
}

.pasca-gallery .gallery-slide figcaption span {
  line-height: 1.45;
}

body.gallery-open {
  overflow: hidden;
}

.pasca-lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.pasca-lightbox::backdrop {
  background: rgba(7, 19, 27, 0.82);
  backdrop-filter: blur(5px);
}

.lightbox-shell {
  position: fixed;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(94vw, 1480px);
  max-height: 94dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: #0e202c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  color: var(--white);
}

.lightbox-topbar,
.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

.lightbox-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-topbar > div:first-child {
  display: grid;
  min-width: 0;
  gap: 0.05rem;
}

.lightbox-topbar span {
  color: #9db0bc;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-topbar strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-top-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.lightbox-top-actions button,
.lightbox-footer button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.lightbox-viewport {
  min-height: 0;
  overflow: auto;
  background: #081720;
  overscroll-behavior: contain;
}

.lightbox-media {
  width: 100%;
  min-width: 100%;
  transition: width 180ms ease;
}

.lightbox-media.is-zoomed {
  width: 165%;
}

.lightbox-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-footer span {
  color: #b7c6ce;
  font-size: 0.75rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .pasca-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tech-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pasca-facts {
    grid-template-columns: 1fr;
  }

  .scope-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-hero--pasca {
    padding-bottom: 3rem;
  }

  .pasca-heading h1 {
    font-size: clamp(2.15rem, 10.8vw, 3rem);
  }

  .pasca-labels {
    gap: 0.4rem;
    margin-bottom: 0.8rem;
  }

  .live-status,
  .project-type {
    min-height: 29px;
    padding-inline: 0.55rem;
    font-size: 0.62rem;
  }

  .pasca-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pasca-actions .button {
    width: 100%;
  }

  .pasca-cover {
    min-height: 0;
    max-height: none;
  }

  .cover-caption {
    min-height: 50px;
    padding: 0.65rem 0.8rem;
    font-size: 0.7rem;
  }

  .pasca-body {
    width: min(calc(100% - 1.25rem), 1040px);
  }

  .scope-list li,
  .tech-overview > div {
    padding: 0.85rem;
  }

  .pasca-gallery-heading {
    display: flex;
    align-items: end;
  }

  .pasca-gallery-heading > div:first-child {
    min-width: 0;
  }

  .pasca-gallery-heading > div:first-child p {
    max-width: 230px;
  }

  .gallery-controls {
    margin-left: auto;
  }

  .gallery-controls span {
    display: none;
  }

  .pasca-gallery .gallery-track {
    grid-auto-columns: 92%;
  }

  .pasca-gallery .gallery-slide figcaption {
    min-height: 82px;
  }

  .lightbox-shell {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 14px;
  }

  .lightbox-topbar,
  .lightbox-footer {
    padding: 0.65rem;
  }

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

  .lightbox-top-actions button,
  .lightbox-footer button {
    min-height: 38px;
    padding-inline: 0.58rem;
    font-size: 0.68rem;
  }

  .lightbox-media.is-zoomed {
    width: 200%;
  }
}

@media (max-width: 370px) {
  .project-type {
    display: none;
  }

  .pasca-actions {
    grid-template-columns: 1fr;
  }

  .pasca-gallery-heading > div:first-child p {
    max-width: 180px;
  }

  .lightbox-topbar > div:first-child {
    display: none;
  }

  .lightbox-top-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-media,
  .pasca-gallery .gallery-slide img {
    transition: none;
  }
}
