:root {
  --th-gold: #c9a227;
  --th-gold-light: #f5d97a;
  --th-radius: 24px;
}

@keyframes th-logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes th-popup-in {
  from { opacity: 0; transform: translate(-50%, 16px) scale(.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.brand img[src*="th-logo"],
.footer-brand img[src*="th-logo"],
.work-card-brand img[src*="th-logo"] {
  animation: th-logo-spin 10s linear infinite;
  transform-origin: center;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32), 0 0 0 1px rgba(201, 162, 39, .16);
}

.button,
.nav-links a,
.work-card,
.feature-card,
.service-card,
.case-card,
.collection-card,
.photo-grid figure,
.contact-form,
.rounded-panel {
  border-radius: var(--th-radius);
}

.button,
.nav-links a {
  border-radius: 999px;
}

.btn-primary,
.btn-ghost,
.nav-ticket,
.show-btn,
.booking-form button {
  border-radius: 999px !important;
  overflow: hidden;
}

.track-card,
.show-item,
.about-photo,
.video-card,
.press-card,
.press-card-front,
.press-card-back,
.booking-form,
.cinematic-img-wrap {
  border-radius: var(--th-radius) !important;
  overflow: hidden;
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  border-radius: 16px !important;
}

body.th-consent-lock {
  overflow: hidden !important;
}

.th-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px);
}

.th-cookie-panel {
  width: min(520px, 100%);
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(201, 162, 39, .34);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(13, 26, 16, .96), rgba(4, 6, 4, .97));
  box-shadow: 0 34px 100px rgba(0, 0, 0, .68), 0 0 54px rgba(201, 162, 39, .14);
  color: #f0ead8;
}

.th-cookie-title {
  margin: 0 0 10px;
  color: var(--th-gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.24rem, 4vw, 1.7rem);
  line-height: 1.1;
}

.th-cookie-copy {
  margin: 0;
  color: rgba(240, 234, 216, .78);
  font-family: Raleway, Arial, sans-serif;
  font-size: .96rem;
  line-height: 1.65;
}

.th-cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.th-cookie-accept {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--th-gold);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--th-gold), var(--th-gold-light));
  color: #10140e;
  font-family: Raleway, Arial, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(201, 162, 39, .34);
}

.th-cookie-link {
  color: rgba(240, 234, 216, .76);
  font-family: Raleway, Arial, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.th-success-popup {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 2147482000;
  width: min(420px, calc(100% - 32px));
  padding: 18px 22px;
  border: 1px solid rgba(245, 217, 122, .52);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(201, 162, 39, .98), rgba(245, 217, 122, .98));
  color: #10140e;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42), 0 0 36px rgba(201, 162, 39, .26);
  font-family: Raleway, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  animation: th-popup-in .34s cubic-bezier(.22, 1, .36, 1) both;
}

.th-success-popup.is-leaving {
  opacity: 0;
  transform: translate(-50%, 18px) scale(.96);
  transition: opacity .24s ease, transform .24s ease;
}

.album-modal[hidden] {
  display: none !important;
}

.album-modal {
  position: fixed;
  inset: 0;
  z-index: 2147481200;
  padding: clamp(16px, 4vw, 36px);
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(16px);
  overflow-y: auto;
}

.album-modal-dialog {
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(201, 162, 39, .28);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(13, 26, 16, .96), rgba(5, 8, 6, .98));
  box-shadow: 0 36px 100px rgba(0, 0, 0, .62);
  overflow: hidden;
}

.album-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border-bottom: 1px solid rgba(201, 162, 39, .16);
}

.album-modal-title {
  margin: 6px 0 0;
  color: #f0ead8;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.08;
}

.album-modal-kicker,
.album-modal-count {
  margin: 0;
  color: rgba(201, 162, 39, .86);
  font-family: Raleway, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.album-modal-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 162, 39, .36);
  border-radius: 50%;
  background: rgba(8, 14, 10, .72);
  color: #f0ead8;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.album-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: clamp(16px, 3vw, 28px);
}

.album-modal-photo {
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
  cursor: zoom-in;
}

.album-modal-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform .35s ease, opacity .25s ease;
}

.album-modal-photo:hover img {
  transform: scale(1.035);
  opacity: .94;
}

.album-zoom[hidden] {
  display: none !important;
}

.album-zoom {
  position: fixed;
  inset: 0;
  z-index: 2147481600;
  background: rgba(0, 0, 0, .92);
}

.album-zoom-backdrop {
  position: absolute;
  inset: 0;
}

.album-zoom-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(46px, 72px) minmax(0, 1fr) minmax(46px, 72px);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2vw, 18px);
  padding: clamp(12px, 3vw, 28px);
}

.album-zoom-figure {
  min-width: 0;
  height: min(100%, 100svh - 56px);
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.album-zoom-scroll {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-radius: 24px;
}

.album-zoom-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 30px 110px rgba(0, 0, 0, .66);
  cursor: zoom-in;
}

.album-zoom-image.is-zoomed {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
}

.album-zoom-caption {
  color: rgba(240, 234, 216, .78);
  font-family: Raleway, Arial, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.album-zoom-close,
.album-zoom-nav {
  border: 1px solid rgba(201, 162, 39, .34);
  border-radius: 999px;
  background: rgba(8, 14, 10, .74);
  color: #f0ead8;
  cursor: pointer;
  box-shadow: 0 16px 52px rgba(0, 0, 0, .4);
}

.album-zoom-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2;
  width: 46px;
  height: 46px;
  font-size: 1.45rem;
  line-height: 1;
}

.album-zoom-nav {
  width: clamp(44px, 6vw, 58px);
  height: clamp(44px, 6vw, 58px);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: .8;
}

.album-zoom-nav:disabled {
  opacity: .34;
  cursor: default;
}

html.jl-intro-primed body {
  background: #000 !important;
}

html.jl-intro-primed body > :not(.jl-intro-mask),
body.jl-intro-active > :not(.jl-intro-mask) {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.jl-intro-active {
  overflow: hidden !important;
  background: #000 !important;
}

.jl-intro-mask {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
  transition: opacity .9s ease;
}

.jl-intro-mask.is-leaving {
  opacity: 0;
}

.jl-intro-core {
  display: grid;
  place-items: center;
  gap: 22px;
  text-align: center;
}

.jl-intro-logo {
  width: min(210px, 48vw);
  filter: drop-shadow(0 0 38px rgba(232, 176, 48, .18));
  opacity: 0;
  transform: scale(.86);
  animation: jl-intro-logo 1.3s cubic-bezier(.22, 1, .36, 1) .24s forwards;
}

.jl-intro-word {
  color: #f0ddb8;
  font-family: "Playfair Display", Cinzel, Georgia, serif;
  font-size: clamp(2.8rem, 13vw, 7rem);
  font-weight: 900;
  letter-spacing: .18em;
  text-shadow: 0 0 48px rgba(232, 176, 48, .22);
}

.jl-intro-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: jl-intro-letter .72s cubic-bezier(.22, 1, .36, 1) forwards;
}

.jl-intro-word span:nth-child(1) { animation-delay: 1.1s; }
.jl-intro-word span:nth-child(2) { animation-delay: 1.22s; }
.jl-intro-word span:nth-child(3) { animation-delay: 1.34s; }
.jl-intro-word span:nth-child(4) { animation-delay: 1.46s; }
.jl-intro-word span:nth-child(5) { animation-delay: 1.58s; }

@keyframes jl-intro-logo {
  to { opacity: 1; transform: scale(1); }
}

@keyframes jl-intro-letter {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .album-modal-grid {
    grid-template-columns: 1fr;
  }

  .album-modal-photo img {
    min-height: 260px;
  }

  .th-cookie-panel {
    text-align: center;
  }

  .th-cookie-actions {
    justify-content: center;
  }

  .album-zoom-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 58px 12px 14px;
  }

  .album-zoom-figure {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 100%;
  }

  .album-zoom-prev,
  .album-zoom-next {
    grid-row: 2;
    justify-self: center;
  }

  .album-zoom-scroll {
    border-radius: 18px;
  }

  .album-zoom-image {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand img[src*="th-logo"],
  .footer-brand img[src*="th-logo"],
  .work-card-brand img[src*="th-logo"],
  .jl-intro-logo,
  .jl-intro-word span {
    animation: none !important;
  }
}
