.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem
}

.gal figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-1);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease)
}

.gal figure:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2)
}

.gal img {
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 1s var(--ease)
}

.gal figure:hover img {
  transform: scale(1.06)
}

.gal figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .9rem 1rem;
  color: #fff;
  font-size: .86rem;
  background: linear-gradient(to top, rgba(42, 13, 22, .85), transparent)
}

.space__pics .shot,
.space__pics .ph {
  aspect-ratio: 4/3;
  width: 100%
}

.space__pics>:first-child.ph {
  aspect-ratio: 16/10
}

.ph {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: radial-gradient(120% 90% at 20% 0%, rgba(231, 149, 108, .18), transparent 60%), linear-gradient(160deg, #1E2A20, #0E130F);
  border: 1px dashed rgba(231, 149, 108, .45);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-1)
}

.ph::before {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  width: 2.4rem;
  height: 2rem;
  border: 2px solid rgba(231, 149, 108, .55);
  border-radius: 6px
}

.ph::after {
  content: "";
  position: absolute;
  right: 1.85rem;
  top: 1.65rem;
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  border: 2px solid rgba(231, 149, 108, .55)
}

.ph span {
  font-family: var(--serif);
  font-size: 1.15rem
}

.ph small {
  font-size: .74rem;
  color: #CDB4BA
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.6rem 0 1.8rem
}

.tab {
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .3s
}

.tab:hover {
  border-color: var(--mulberry);
  color: var(--mulberry)
}

.tab.is-on {
  background: var(--mulberry);
  border-color: var(--mulberry);
  color: #fff
}

.gal--wide {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))
}

.gal--wide img,
.gal--wide .ph {
  aspect-ratio: 4/3
}

.gal figure.is-hide {
  display: none
}

.gal figure.is-ph .ph {
  border-radius: 0;
  height: 100%
}

.gal figure.is-ph figcaption {
  display: none
}
