.fullscreen-enabled .feature-card,
.fullscreen-enabled .gallery-card,
.fullscreen-enabled .logo-card {
  cursor: zoom-in;
}

.fullscreen-enabled .feature-card:focus-visible,
.fullscreen-enabled .gallery-card:focus-visible,
.fullscreen-enabled .logo-card:focus-visible {
  outline: 3px solid var(--accent-soft, #fff);
  outline-offset: 4px;
}

.gallery-fullscreen {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #050505;
  overflow: hidden;
}

.gallery-fullscreen::backdrop {
  background: #050505;
}

.gallery-fullscreen[open] {
  display: grid;
  place-items: center;
}

.gallery-fullscreen img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-fullscreen-close {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 46px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  font: 300 28px/1 "DM Sans", sans-serif;
  cursor: pointer;
}

.gallery-fullscreen-close:hover,
.gallery-fullscreen-close:focus-visible {
  background: #fff;
  color: #111;
  outline: none;
}

@media (max-width: 700px) {
  .gallery-fullscreen-close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }
}
