* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html.is-open, html.is-open body {
  height: auto;
  overflow: auto;
}

.expandable-gallery {
  position: relative;
  min-height: 80vh;
  margin-top: -50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  padding: 4rem 1rem;
  z-index: 5;
  transition: margin-top 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease;
}

.expandable-gallery.is-expanded {
  margin-top: 0;
  background: #1B2125;
}

.expandable-gallery__stage {
  position: relative;
  width: 100%;
  height: 60vh;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.expandable-gallery__stage.is-dragging {
  cursor: grabbing;
}

.expandable-gallery.is-expanded .expandable-gallery__stage {
  cursor: default;
  touch-action: auto;
}

.expandable-gallery__card {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px;
  overflow: hidden;

box-shadow: 0 calc(20 * var(--u, 1px)) calc(40 * var(--u, 1px)) rgba(0, 0, 0, 0.4);
  transition: width 0.3s ease, height 0.3s ease;
  will-change: transform;
}

.expandable-gallery__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

body.page-folio .expandable-gallery {
  position: fixed;
  inset: 0;
  min-height: 0;
  margin-top: 0;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 3rem;
}

body.page-folio .expandable-gallery__card {
  border-radius: calc(16 * var(--u, 1px));
}

body.page-folio .expandable-gallery__stage {
  width: var(--palco, 22rem);
  height: var(--palco, 22rem);
}

body.page-folio .expandable-gallery.is-expanded {

align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.expandable-gallery__respiro {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  pointer-events: none;
  visibility: hidden;
}

body.page-folio .expandable-gallery.is-expanded .expandable-gallery__stage {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;

scrollbar-gutter: stable;
}
body.page-folio { background: #1B2125; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-family: system-ui, sans-serif;
  color: #ffffff;
}
