/* Component rules and breakpoint overrides; legacy selectors are retained. */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 39px;
}
.tabs__tab {
  min-height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  padding: 0 22px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  transition:
    border-color var(--ease),
    background var(--ease);
}
.tabs__tab[aria-selected='true'] {
  border-color: var(--white);
  background: var(--white);
  color: #000;
}
.tabs__tab:hover:not([aria-selected='true']) {
  border-color: var(--white);
}
.tabs__panel[hidden] {
  display: none;
}
.tabs__panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}
.tabs__panel-heading h2 {
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
}
.tabs__panel-heading p {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.gallery__note {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  margin: 24px 0 35px;
  max-width: 470px;
}
.page--gallery .tabs__panel-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.gallery__item {
  display: block;
  padding: 0;
  border: 0;
  background: #171717;
  text-align: left;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.45;
  color: white;
  border-radius: 12px;
}
.gallery__item:nth-child(3n + 1) {
  aspect-ratio: 0.76;
}
.gallery__item:nth-child(3n + 2) {
  aspect-ratio: 1.1;
}
.gallery__item:nth-child(3n) {
  aspect-ratio: 0.88;
}
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery__item:hover img {
  transform: scale(1.025);
}
.gallery__item:after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.48));
}
.gallery__item span {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.gallery__item b {
  font-size: 20px;
  font-weight: 400;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  color: white;
  border: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 25px var(--gutter);
  display: flex;
  flex-direction: column;
}
.lightbox:not([open]) {
  display: none;
}
.lightbox::backdrop {
  background: #000;
}
.lightbox__top,
.lightbox__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.lightbox .eyebrow,
.lightbox__bottom p {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lightbox button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: white;
  min-width: 48px;
  min-height: 48px;
  font-size: 20px;
}
.lightbox button:hover {
  border-color: var(--red);
}
.lightbox figure {
  flex: 1;
  min-height: 0;
  margin: 20px 0;
  display: flex;
  justify-content: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox__controls {
  display: flex;
  gap: 8px;
}
.gallery__item,
.gallery__item:nth-child(n) {
  aspect-ratio: auto;
}
.gallery__item img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: initial;
}
@media (max-width: 600px) {
.tabs__list {
    margin-bottom: 39px;
  }
.tabs__tab {
    padding: 0 18px;
  }
.tabs__panel-heading h2 {
    font-size: 27px;
  }
.gallery__grid {
    grid-template-columns: 1fr;
  }
.gallery__item,
.gallery__item:first-child {
    grid-column: auto;
    aspect-ratio: 1.3;
  }
.gallery__item span {
    bottom: 18px;
    left: 18px;
    right: 18px;
  }
.lightbox {
    padding: 20px;
  }
.lightbox button {
    min-width: 44px;
    min-height: 44px;
  }
}
@media (max-width: 900px) {
.gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
.gallery__grid {
    grid-template-columns: 1fr;
  }
.gallery__item:nth-child(n) {
    aspect-ratio: 1.3;
  }
}
@media (max-width: 900px) {
.gallery__item,
.gallery__item:nth-child(n),
.gallery__item:first-child {
    aspect-ratio: auto;
  }
}
