 .hero--gallery {
  align-items: stretch;
}

.hero__content {
  min-width: 0;
}

.hero__visual--gallery {
  min-width: 0;
}

.hero__visual-inner--gallery {
  background:
    radial-gradient(circle at 0% 0%, rgba(47, 211, 255, 0.3), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(76, 125, 255, 0.25), transparent 60%),
    var(--color-bg-elevated);
}

.hero__visual-media--gallery {
  position: relative;
  aspect-ratio: 16 / 9;
}

.hero__image-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__visual-overlay--gallery {
  border-top: 1px solid var(--color-surface-border);
}

.hero__meta--gallery span {
  position: relative;
  padding-left: 1.2rem;
}

.hero__meta--gallery span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 0%, #ffffff, var(--color-primary-strong));
  box-shadow: 0 0 10px rgba(47, 211, 255, 0.9);
}

.section--gallery-grid {
  position: relative;
}

.section--gallery-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 10% 0%, rgba(47, 211, 255, 0.18), transparent 55%), radial-gradient(circle at 90% 100%, rgba(76, 125, 255, 0.16), transparent 60%);
  opacity: 0.7;
  mix-blend-mode: screen;
}

.section--gallery-grid > .container {
  position: relative;
  z-index: 1;
}

.section-header--gallery {
  max-width: var(--container-md);
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  grid-auto-rows: minmax(0, auto);
  gap: var(--grid-gap-xl);
  align-items: stretch;
}

.gallery-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: var(--grid-gap-lg);
  align-items: stretch;
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(47, 211, 255, 0.16), transparent 55%),
    radial-gradient(circle at top right, rgba(76, 125, 255, 0.18), transparent 60%),
    var(--color-bg-elevated-soft);
  border: 1px solid rgba(26, 31, 58, 0.95);
  box-shadow: var(--shadow-subtle);
  padding: var(--space-xl);
  overflow: hidden;
}

.gallery-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(120deg, rgba(47, 211, 255, 0.16), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

.gallery-block__content {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-block__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.gallery-block__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.gallery-block__media {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.gallery-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(47, 211, 255, 0.22), transparent 60%),
    var(--color-bg-elevated);
  border: 1px solid var(--color-surface-border-strong);
  box-shadow: var(--shadow-soft);
}

.gallery-figure--primary {
  aspect-ratio: 16 / 9;
}

.gallery-figure--tall {
  aspect-ratio: 3 / 4;
}

.gallery-figure--wide {
  aspect-ratio: 21 / 9;
}

.gallery-figure--night {
  aspect-ratio: 16 / 9;
}

.gallery-figure--interior {
  aspect-ratio: 4 / 3;
}

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

.gallery-image-trigger {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  width: 100%;
  text-align: inherit;
}

.gallery-image-trigger:focus-visible .gallery-figure,
.gallery-image-trigger:hover .gallery-figure {
  border-color: rgba(90, 224, 255, 0.9);
  box-shadow: var(--shadow-strong);
}

.gallery-block--hero {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
}

.gallery-block--gastronomy {
  grid-column: 1 / 2;
}

.gallery-block--poker {
  grid-column: 2 / 3;
}

.gallery-block--nightlife {
  grid-column: 1 / 2;
}

.gallery-block--interior {
  grid-column: 2 / 3;
}

.gallery-cta {
  margin-top: var(--space-3xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(47, 211, 255, 0.22), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(76, 125, 255, 0.26), transparent 60%),
    var(--color-bg-elevated-soft);
  border: 1px solid rgba(47, 211, 255, 0.5);
  box-shadow: var(--shadow-strong);
}

.gallery-cta__content {
  min-width: 0;
  max-width: 32rem;
}

.gallery-cta__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.gallery-cta__text {
  font-size: var(--text-sm);
}

.gallery-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: flex-end;
  min-width: 0;
}

.gallery-cta .btn {
  max-width: 100%;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
}

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

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(47, 211, 255, 0.25), transparent 55%), rgba(0, 0, 0, 0.9);
}

.lightbox__dialog {
  position: relative;
  margin: 0 auto;
  max-width: min(1080px, 100% - 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__figure {
  position: relative;
  width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(47, 211, 255, 0.3), transparent 55%),
    var(--color-bg-elevated);
  border: 1px solid rgba(47, 211, 255, 0.7);
  box-shadow: var(--shadow-strong);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.lightbox__image {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox__caption {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: max(var(--space-lg), calc((100vw - min(1080px, 100% - 2.5rem)) / 2));
  transform: translateX(50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(47, 211, 255, 0.8);
  background: radial-gradient(circle at 30% 0%, #ffffff, var(--color-bg-elevated));
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.lightbox__close-icon {
  line-height: 1;
}

@media (max-width: 1023.98px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-block--hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-block--gastronomy,
  .gallery-block--poker,
  .gallery-block--nightlife,
  .gallery-block--interior {
    grid-column: 1 / -1;
  }

  .gallery-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-cta__actions {
    justify-content: flex-start;
  }

  .lightbox__dialog {
    max-width: min(960px, 100% - 2rem);
  }

  .lightbox__close {
    right: var(--space-lg);
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .gallery-block {
    padding: var(--space-lg);
  }

  .gallery-block__title {
    font-size: var(--text-xl);
  }

  .gallery-figure--primary,
  .gallery-figure--wide {
    aspect-ratio: 16 / 9;
  }

  .gallery-cta {
    padding: var(--space-xl);
  }

  .gallery-cta__title {
    font-size: var(--text-xl);
  }

  .lightbox__figure {
    padding: var(--space-sm);
  }

  .lightbox__image {
    max-height: 60vh;
  }

  .lightbox__close {
    top: var(--space-md);
    right: var(--space-md);
  }
}

@media (max-width: 479.98px) {
  .gallery-block {
    padding: var(--space-md);
  }

  .gallery-cta {
    padding: var(--space-lg);
  }

  .lightbox__dialog {
    max-width: 100%;
  }

  .lightbox__figure {
    border-radius: var(--radius-lg);
  }
}
