.gallery-page {
  background: #000;
}

.gallery-shell {
  width: 100%;
  min-height: 100vh;
  padding: 34px 18px 56px;
  background: #000;
}

.gallery-home {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: 999px;
  color: rgb(255 255 255 / .88);
  font-size: 14px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.gallery-home:hover { background: #fff; color: #000; }

.gallery-shell h1 {
  margin: 0 0 42px;
  font-family: "Lobster Two", cursive;
  font-size: clamp(44px, 4.3vw, 72px);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  width: 100%;
}

.gallery-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.gallery-item::before {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  aspect-ratio: .69;
  border-radius: 16px;
  content: "";
  background: linear-gradient(180deg, transparent 54%, rgb(0 0 0 / .22) 70%, rgb(0 0 0 / .88) 100%);
  pointer-events: none;
}

.gallery-item > img {
  display: block;
  width: 100%;
  aspect-ratio: .69;
  border-radius: 16px;
  background: #131313;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-item > img.gallery-new { object-position: 51.4% 17.3%; }

.gallery-item > a {
  position: relative;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: #121212;
  color: #fff;
  transition: transform 180ms ease, background 180ms ease;
}

.gallery-item > a:hover { background: #2b2b2b; transform: translateY(-2px); }

.gallery-item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 900px) {
  .image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .gallery-shell { padding: 20px 12px 40px; }
  .gallery-shell h1 { margin-bottom: 30px; }
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .gallery-item > img { border-radius: 12px; }
  .gallery-item::before { border-radius: 12px; }
}
