/* Event Gallery page — full-bleed photo hero */

.event-gallery-intro {
  --eg-orange: #F05A14;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height, 72px) + 40px) 0 72px;
  color: #fff;
  background: #140c08;
  font-family: var(--font-sans);
  text-align: center;
}

.event-gallery-intro__media,
.event-gallery-intro__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.event-gallery-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: saturate(1.04) contrast(1.05);
  transform: scale(1.08);
  animation: egHeroKenBurns 16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.event-gallery-intro__fallback {
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(240, 90, 20, 0.32), transparent 58%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(232, 93, 4, 0.18), transparent 55%),
    linear-gradient(165deg, #2a1810 0%, #140c08 48%, #0c0705 100%);
}

.event-gallery-intro__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(12, 7, 5, 0.48) 0%,
      rgba(12, 7, 5, 0.28) 42%,
      rgba(12, 7, 5, 0.62) 100%
    ),
    linear-gradient(
      105deg,
      rgba(26, 15, 8, 0.5) 0%,
      rgba(232, 93, 4, 0.36) 44%,
      rgba(240, 90, 20, 0.2) 72%,
      rgba(240, 90, 20, 0.1) 100%
    ),
    radial-gradient(ellipse 85% 70% at 50% 55%, rgba(12, 7, 5, 0.05), rgba(12, 7, 5, 0.58) 100%);
}

.event-gallery-intro--plain .event-gallery-intro__veil {
  background:
    linear-gradient(180deg, rgba(12, 7, 5, 0.28) 0%, rgba(12, 7, 5, 0.72) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent, rgba(12, 7, 5, 0.5) 100%);
}

.event-gallery-intro__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.event-gallery-intro__shell {
  position: relative;
  z-index: 2;
  width: 100%;
}

.event-gallery-intro__copy {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.event-gallery-intro__brand {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  animation: egHeroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.event-gallery-intro__title {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: balance;
  animation: egHeroRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.event-gallery-intro__subtitle {
  margin: 16px auto 0;
  max-width: 36rem;
  font-size: clamp(0.98rem, 1.45vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 236, 220, 0.78);
  animation: egHeroRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.event-gallery-intro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  animation: egHeroRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.event-gallery-intro__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--eg-orange, #F05A14);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(240, 90, 20, 0.32);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.event-gallery-intro__btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.event-gallery-intro__btn:hover {
  background: #fff;
  color: #1a0f08;
  transform: translateY(-1px);
}

.event-gallery-intro__btn:hover svg {
  transform: translateX(3px);
}

.event-gallery-intro__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.event-gallery-intro__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

@keyframes egHeroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes egHeroKenBurns {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.02);
  }
}

/* Albums — single cover card (one image per album) */
.event-gallery-albums {
  background: #fff;
}

/* Listing toolbar (mirrors Insights search + filter pattern) */
.event-gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid rgba(63, 42, 30, 0.1);
  border-radius: 16px;
  background: #fff;
}

.event-gallery-toolbar__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  flex: 1 1 280px;
  min-width: 0;
  width: 100%;
}

.event-gallery-toolbar__search {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}

.event-gallery-toolbar__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted, #8A6E5C);
  pointer-events: none;
}

.event-gallery-toolbar__search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid rgba(63, 42, 30, 0.14);
  border-radius: 12px;
  background: #FFF8F3;
  color: var(--color-text, #3F2A1E);
  font: inherit;
  font-size: 14px;
}

.event-gallery-toolbar__search input:focus {
  outline: 2px solid rgba(240, 90, 20, 0.35);
  outline-offset: 1px;
  border-color: rgba(240, 90, 20, 0.45);
}

.event-gallery-toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  flex: 0 1 160px;
}

.event-gallery-toolbar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #8A6E5C);
}

.event-gallery-toolbar__select {
  min-height: 44px;
  width: 100%;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(63, 42, 30, 0.14);
  border-radius: 12px;
  background: #FFF8F3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A6E5C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--color-text, #3F2A1E);
  font: inherit;
  font-size: 14px;
  appearance: none;
  cursor: pointer;
}

.event-gallery-toolbar__submit {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--color-accent, #F05A14);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.event-gallery-toolbar__submit:hover {
  background: #D44C10;
}

.event-gallery-empty {
  margin: 8px 0 0;
  padding: 20px 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted, #8A6E5C);
  text-align: center;
}

.event-album.is-filtered-out,
.event-album[hidden] {
  display: none !important;
}

.event-album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
  align-items: stretch;
}

@media (min-width: 960px) {
  .event-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

.event-album {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(63, 42, 30, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-album:hover {
  border-color: rgba(240, 90, 20, 0.28);
  box-shadow: 0 16px 40px rgba(63, 42, 30, 0.1);
  transform: translateY(-3px);
}

.event-album__media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a100c;
}

.event-album__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-album:hover .event-album__cover {
  transform: scale(1.04);
}

.event-album__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 6px;
  padding: 18px 18px 20px;
}

.event-album__client {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent, #F05A14);
}

.event-album__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.28;
  color: var(--color-text, #3F2A1E);
  text-wrap: balance;
  transition: color 0.2s ease;
}

.event-album:hover .event-album__title {
  color: var(--color-accent, #F05A14);
}

.event-album__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted, #8A6E5C);
}

.event-album__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent, #F05A14);
}

.event-album__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.event-album:hover .event-album__cta svg {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .event-gallery-intro {
    min-height: min(70vh, 560px);
    padding: calc(var(--header-height, 72px) + 28px) 0 48px;
  }

  .event-gallery-intro__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .event-gallery-intro__btn {
    width: 100%;
  }

  .event-gallery-toolbar {
    padding: 14px;
  }

  .event-gallery-toolbar__field {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .event-gallery-toolbar__submit {
    width: 100%;
  }

  .event-album-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-gallery-intro__media img,
  .event-gallery-intro__brand,
  .event-gallery-intro__title,
  .event-gallery-intro__subtitle,
  .event-gallery-intro__actions,
  .event-album,
  .event-album__cover {
    animation: none !important;
    transition: none !important;
  }

  .event-gallery-intro__media img,
  .event-album:hover,
  .event-album:hover .event-album__cover {
    transform: none;
  }
}
