.playground {
  padding: 74px 0 25px;
  background: #fafafa;
  color: #1a1a1a;
  color-scheme: light;
}

.playground-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 25px 36px;
}

.playground-intro h1 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.playground-intro p {
  margin: 0;
  color: #4a4a4a;
  font-family: "Inter Display", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}


.playground-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1195px;
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
}

.playground-gallery li {
  width: min(275px, 100%);
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
}

.playground-gallery a,
.playground-gallery img {
  display: block;
  width: 100%;
  height: 100%;
}

.playground-gallery a {
  position: relative;
  isolation: isolate;
}

.playground-gallery a:focus-visible {
  outline: 3px solid #1747ae;
  outline-offset: -4px;
  border-radius: inherit;
}

.playground-gallery img {
  object-fit: cover;
  transition: transform 240ms ease;
}

.playground-gallery a:hover img,
.playground-gallery a:focus-visible img {
  transform: scale(1.035);
}

.playground-eye {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #171717;
  color: #eee;
  box-shadow: inset 1px 1px 4px #ffffff40;
}

.playground-gallery .playground-eye {
  position: absolute;
  top: 5px;
  left: 5px;
  pointer-events: none;
}

.playground-eye::before,
.playground-eye::after {
  grid-area: 1 / 1;
  content: "";
}

.playground-eye::before {
  width: 10px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.playground-eye::after {
  width: 3px;
  height: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

@media (max-width: 809px) {
  .playground-intro {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 609px) {
  .playground-gallery { max-width: 315px; }
}

@media (prefers-reduced-motion: reduce) {
  .playground-gallery img { transition: none; }
}

.playground-section {
  max-width: 1195px;
  margin: 0 auto 48px;
}

.playground-section h2 {
  margin: 0 20px 18px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.playground-section:last-child { margin-bottom: 0; }

html.image-viewer-open { overflow: hidden; }

.image-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  overflow: hidden;
  overscroll-behavior: none;
}

.image-viewer::backdrop { background: #000d; }

.viewer-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.viewer-viewport[data-zoomed="true"] { cursor: grab; }
.viewer-viewport[data-dragging="true"] { cursor: grabbing; }

.viewer-image {
  position: absolute;
  inset: 50% auto auto 50%;
  display: block;
  max-width: none;
  max-height: none;
  transform-origin: center;
  will-change: transform;
  -webkit-user-drag: none;
}

.viewer-image[hidden], .viewer-status[hidden] { display: none; }

.viewer-close {
  position: absolute;
  z-index: 1;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: #151515bf;
  color: #fff;
  cursor: pointer;
}

.viewer-close::before, .viewer-close::after {
  position: absolute;
  content: "";
  width: 17px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.viewer-close::after { transform: rotate(-45deg); }
.viewer-close:hover { background: #3c3c3c; }

.viewer-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.viewer-status {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 8px 13px;
  border-radius: 6px;
  background: #111d;
  color: #fff;
  font: 500 14px/20px "Inter Display", sans-serif;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

@media (min-width: 1920px) {
  .playground-section { max-width: 1770px; }
  .playground-gallery { max-width: 1770px; }
}

@media (max-width: 809px) {
  .playground-section { margin-bottom: 36px; }
}

@media (max-width: 609px) {
  .playground-section h2 { text-align: center; }
}
