:root {
  --portfolio-bg: #080808;
  --portfolio-panel: #0d0d0d;
  --portfolio-text: #f5f5f2;
  --portfolio-muted: rgba(255, 255, 255, 0.56);
  --portfolio-border: rgba(255, 255, 255, 0.16);
  --portfolio-transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.portfolio-page {
  margin: 0;
  background: var(--portfolio-bg);
  color: var(--portfolio-text);
  font-family: Arial, Helvetica, sans-serif;
}

body.portfolio-page button,
body.portfolio-page input {
  font: inherit;
}

.portfolio-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 88px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--portfolio-border);
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(18px);
}

.portfolio-logo {
  color: var(--portfolio-text);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
}

.portfolio-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.portfolio-nav a,
.portfolio-footer a {
  color: var(--portfolio-muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: var(--portfolio-transition);
}

.portfolio-nav a:hover,
.portfolio-footer a:hover {
  color: var(--portfolio-text);
}

.portfolio-hero {
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vw 7vw;
  border-bottom: 1px solid var(--portfolio-border);
}

.portfolio-eyebrow {
  margin: 0 0 20px;
  color: var(--portfolio-muted);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.portfolio-hero h1 {
  max-width: 1100px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 8.7rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.portfolio-intro {
  max-width: 560px;
  margin: 38px 0 0;
  color: var(--portfolio-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.portfolio-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  margin-top: 46px;
  color: var(--portfolio-text);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portfolio-collections-section,
.portfolio-events-section,
.portfolio-event-detail {
  min-height: 100vh;
  padding: 9vw 7vw;
}

.portfolio-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--portfolio-border);
}

.portfolio-section-heading .portfolio-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.portfolio-section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.9;
}

.portfolio-search-toggle {
  width: 58px;
  height: 58px;
  cursor: pointer;
  border: 1px solid var(--portfolio-border);
  border-radius: 50%;
  background: transparent;
  color: var(--portfolio-text);
  font-size: 1.7rem;
  transition: var(--portfolio-transition);
}

.portfolio-search-toggle:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.portfolio-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 28px;
}

.portfolio-search-panel[hidden] {
  display: none;
}

.portfolio-search-panel input {
  width: 100%;
  border: 1px solid var(--portfolio-border);
  outline: none;
  background: transparent;
  color: var(--portfolio-text);
  padding: 17px 18px;
}

.portfolio-search-panel button {
  width: 56px;
  cursor: pointer;
  border: 1px solid var(--portfolio-border);
  background: transparent;
  color: var(--portfolio-text);
  font-size: 1.35rem;
}

.public-collections-grid,
.public-events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 1px solid var(--portfolio-border);
  border-left: 1px solid var(--portfolio-border);
}

.portfolio-collection-card,
.portfolio-event-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border-right: 1px solid var(--portfolio-border);
  border-bottom: 1px solid var(--portfolio-border);
  padding: 26px;
  background: transparent;
  transition: var(--portfolio-transition);
}

.portfolio-collection-card:hover,
.portfolio-event-card:hover {
  background: rgba(255, 255, 255, 0.035);
}

.portfolio-collection-card h3,
.portfolio-event-card h3 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.95;
}

.portfolio-card-copy {
  max-width: 430px;
  margin-top: 12px;
  color: var(--portfolio-muted);
  line-height: 1.45;
}

.portfolio-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
}

.portfolio-card-footer span {
  color: var(--portfolio-muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-card-arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.96);
  font-family: system-ui, sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.portfolio-event-card .portfolio-card-arrow {
  transition: transform 180ms ease;
}

.portfolio-event-card.is-opening .portfolio-card-arrow {
  transform: translateX(10px);
}

.portfolio-card-footer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,.92);
}

.portfolio-empty-state {
  grid-column: 1 / -1;
  min-height: 280px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--portfolio-border);
  border-bottom: 1px solid var(--portfolio-border);
  color: var(--portfolio-muted);
}

.portfolio-back-button {
  cursor: pointer;
  border: 1px solid var(--portfolio-border);
  background: transparent;
  color: var(--portfolio-text);
  padding: 14px 18px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.public-collection-header {
  margin-top: 56px;
}

.public-collection-header h2 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.9;
}

.public-collection-header p {
  max-width: 600px;
  margin-top: 24px;
  color: var(--portfolio-muted);
  line-height: 1.8;
}

.public-event-detail {
  display: flex;
  flex-direction: column;
  gap: 42px;
  margin-top: 54px;
}

.public-event-detail h2 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.9;
}

.public-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--portfolio-muted);
}

.public-event-cover {
  min-height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--portfolio-border);
  background: var(--portfolio-panel);
  color: var(--portfolio-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.public-event-cover img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: cover;
}

.public-event-story {
  max-width: 920px;
  color: var(--portfolio-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.38;
}

.portfolio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 5vw;
  border-top: 1px solid var(--portfolio-border);
}

.portfolio-footer p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.12em;
}

@media (max-width: 760px) {
  .portfolio-header {
    min-height: 76px;
    padding: 0 20px;
  }

  .portfolio-nav {
    gap: 14px;
  }

  .portfolio-nav a:nth-child(2) {
    display: none;
  }

  .portfolio-hero,
  .portfolio-collections-section,
  .portfolio-events-section,
  .portfolio-event-detail {
    padding-right: 24px;
    padding-left: 24px;
  }

  .portfolio-section-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .portfolio-search-toggle {
    width: 52px;
    height: 52px;
  }

  .public-collections-grid,
  .public-events-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-collection-card,
  .portfolio-event-card {
    min-height: 340px;
    padding: 26px;
  }

  .portfolio-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}.portfolio-event-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.portfolio-event-card::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background-image: var(--event-card-image);
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  transform: scale(1.03);
}

.portfolio-event-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.5),
    rgba(8, 8, 8, 0.92)
  );
}.public-event-gallery {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.public-event-gallery-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
}

.public-event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.public-event-gallery-item {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--portfolio-border);
  background: #0d0d0d;
}

.public-event-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.public-event-gallery-item:hover img {
  transform: scale(1.025);
}

@media (max-width: 700px) {
  .public-event-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 90px;
  background: rgba(0, 0, 0, 0.96);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox img {
  display: block;
  max-width: min(1100px, 100%);
  max-height: 88vh;
  object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-arrow {
  position: absolute;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.gallery-lightbox-close {
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
}

.gallery-lightbox-arrow {
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  font-size: 1.3rem;
}

.gallery-lightbox-prev {
  left: 28px;
}

.gallery-lightbox-next {
  right: 28px;
}

.gallery-lightbox-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .public-event-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-lightbox {
    padding: 70px 14px;
  }

  .gallery-lightbox-arrow {
    top: auto;
    bottom: 20px;
  }

  .gallery-lightbox-prev {
    left: 18px;
  }

  .gallery-lightbox-next {
    right: 18px;
  }
}
.public-event-videos {
  margin-top: 48px;
}

.public-event-videos-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.public-event-video-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.public-event-video-card video {
  display: block;
  width: 100%;
  max-height: 720px;
  background: #000;
}

.public-event-video-card p {
  margin: 0;
  padding: 16px 18px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 700px) {
  .public-event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .portfolio-event-card {
    min-height: 250px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .portfolio-event-card::before {
    opacity: 0.24;
  }

  .portfolio-event-card h3 {
    margin: 0 0 16px;
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    line-height: 1;
  }

  .portfolio-card-date,
  .portfolio-card-copy {
    margin: 8px 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .portfolio-card-footer {
    margin-top: auto;
  }

  .portfolio-card-footer strong {
    font-size: 1.4rem;
  }
}