.gallery-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 4%, rgba(242, 67, 46, 0.13), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(67, 191, 196, 0.12), transparent 30rem),
    var(--bg);
}

.gallery-site,
.gallery-main {
  width: 100%;
}

.gallery-main {
  flex: 1;
}

.gallery-hero {
  padding: clamp(50px, 7vw, 84px) 0 clamp(40px, 5vw, 62px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-hero .container {
  max-width: 1060px;
}

.gallery-kicker,
.gallery-section-heading span {
  display: block;
  color: #ff806f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-hero h1 {
  max-width: 16ch;
  margin: 10px 0 18px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.gallery-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.gallery-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.gallery-breadcrumbs a:hover {
  color: #fff;
}

.gallery-content {
  display: grid;
  gap: clamp(56px, 8vw, 96px);
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 100px);
}

.gallery-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.gallery-section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
}

.gallery-section-heading > strong {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: var(--muted);
}

.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}

.gallery-album-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(18, 50, 67, 0.82);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-album-card:hover {
  border-color: rgba(242, 67, 46, 0.5);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.3);
  transform: translateY(-6px);
}

.gallery-album-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a2330;
}

.gallery-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-album-card:hover .gallery-album-cover img {
  transform: scale(1.045);
}

.gallery-cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(242, 67, 46, 0.2), transparent 60%),
    linear-gradient(315deg, rgba(67, 191, 196, 0.16), transparent 60%),
    #0b2b39;
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.gallery-album-info {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.gallery-album-info h3 {
  margin: 0;
  font-size: 1.3rem;
}

.gallery-album-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gallery-album-info > span {
  color: #ff9a8d;
  font-size: 0.8rem;
  font-weight: 750;
}

.gallery-photo-grid {
  columns: 3 280px;
  column-gap: 18px;
}

.gallery-photo {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #0a2330;
  break-inside: avoid;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.gallery-photo img {
  width: 100%;
  transition: filter 0.28s ease, transform 0.45s ease;
}

.gallery-photo:hover img {
  filter: brightness(0.72);
  transform: scale(1.025);
}

.gallery-photo > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 3px;
  padding: 38px 16px 15px;
  background: linear-gradient(transparent, rgba(4, 18, 25, 0.9));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-photo:hover > span,
.gallery-photo:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.gallery-photo > span strong {
  font-size: 0.96rem;
}

.gallery-empty {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(242, 67, 46, 0.1), transparent 48%),
    rgba(18, 50, 67, 0.74);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.gallery-empty--compact {
  max-width: 860px;
}

.gallery-empty h2 {
  max-width: 22ch;
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.gallery-empty p {
  max-width: 58ch;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-empty-art {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
}

.gallery-empty-art span {
  position: absolute;
  top: 14%;
  left: 20%;
  display: grid;
  width: 62%;
  height: 72%;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  background: linear-gradient(145deg, #174659, #0a2734);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.32);
}

.gallery-empty-art span:first-child {
  transform: translate(-22%, 5%) rotate(-9deg);
}

.gallery-empty-art span:nth-child(2) {
  transform: translate(22%, 4%) rotate(9deg);
}

.gallery-empty-art span:last-child {
  background:
    radial-gradient(circle at 30% 25%, rgba(242, 67, 46, 0.32), transparent 45%),
    linear-gradient(145deg, #174659, #0a2734);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.gallery-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-button:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.gallery-button--primary {
  border-color: var(--primary);
  background: var(--primary);
}

.gallery-button--primary:hover {
  border-color: var(--primary-600);
  background: var(--primary-600);
}

.gallery-lightbox {
  width: min(1100px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #071b25;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.gallery-lightbox::backdrop {
  background: rgba(2, 11, 16, 0.88);
  backdrop-filter: blur(8px);
}

.gallery-lightbox img {
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

.gallery-lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--muted);
}

.gallery-lightbox button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(4, 18, 25, 0.78);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .gallery-hero {
    padding-top: 42px;
  }

  .gallery-hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.5rem);
  }

  .gallery-photo-grid {
    columns: 2 150px;
    column-gap: 10px;
  }

  .gallery-photo {
    margin-bottom: 10px;
    border-radius: 11px;
  }

  .gallery-photo > span {
    position: static;
    padding: 10px 12px;
    background: none;
    opacity: 1;
    transform: none;
  }

  .gallery-empty {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 22px;
  }

  .gallery-empty-art {
    width: min(74vw, 280px);
  }

  .gallery-empty-copy {
    text-align: center;
  }

  .gallery-empty-copy h2,
  .gallery-empty-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .gallery-empty-actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-album-card,
  .gallery-album-cover img,
  .gallery-photo img,
  .gallery-photo > span,
  .gallery-button {
    transition: none;
  }
}
