a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primaria);
  outline-offset: 5px;
}

.home-main {
  max-width: 1300px;
  margin: auto;
  padding: 0 2rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 3rem;
  max-width: 1050px;
  margin: auto;
  padding: 3rem 1.5rem 3.5rem;
}

.mascot-wrap {
  position: relative;
  width: 100%;
  max-width: 390px;
  justify-self: center;
  text-align: center;
}

.mascot-frame {
  width: 100%;
}

.mascot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.mascot-caption {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  background: var(--creme);
  color: var(--primaria-escura);
  font-size: 0.9rem;
  transform: rotate(-3deg);
}

.sparkle {
  position: absolute;
  z-index: 1;
  color: var(--primaria);
}

.sparkle-one {
  top: -18px;
  left: -4px;
  font-size: 4rem;
  transform: rotate(-12deg);
}

.sparkle-two {
  right: -20px;
  bottom: 22px;
  color: var(--creme);
  font-size: 5.5rem;
}

.hello-cloud {
  position: relative;
  padding: 2.25rem 3rem;
  border-radius: 42% 35% 39% 28% / 15% 30% 23% 35%;
  background: var(--branco);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}

.hello-cloud h1 {
  margin: 0 0 0.5rem;
  font-family: var(--fonte-titulo);
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.hello-cloud > p:not(.eyebrow) {
  margin: 0;
  max-width: 355px;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.48;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--primaria-escura);
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-link:hover {
  text-decoration: underline;
}

.cloud-star {
  position: absolute;
  top: -30px;
  right: 6px;
  color: var(--creme);
  font-size: 5rem;
  transform: rotate(14deg);
}

.hero-decoration {
  position: absolute;
  right: -25px;
  top: 46%;
  color: var(--primaria);
  font-size: 3rem;
}

.work-window {
  padding: 1rem 1.75rem 2rem;
  border-radius: 36px;
  background: var(--branco);
  scroll-margin-top: 1rem;
}

.window-chrome {
  display: flex;
  gap: 0.4rem;
  padding: 0 0 0.65rem;
  border-bottom: 3px solid var(--primaria);
}

.window-chrome span {
  width: 10px;
  height: 10px;
  background: var(--primaria);
  border-radius: 50%;
}

.window-chrome span:nth-child(2) {
  background: var(--secundaria);
}

.window-chrome span:nth-child(3) {
  background: var(--lavanda);
}

.work-heading {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
}

.work-heading h2 {
  flex-shrink: 0;
  margin: 0;
  font-family: var(--fonte-titulo);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.work-heading h2 > span {
  display: inline-block;
  margin-right: 0.4rem;
}

.work-intro {
  margin: 0.6rem 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

/* A faixa mantém uma única linha; o excesso fica acessível pela rolagem. */
.category-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--secundaria) transparent;
}

.category-filter:first-child {
  margin-left: auto;
}

.category-filter {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.4rem 1.3rem;
  border: 1px solid var(--primaria);
  border-radius: 999px;
  background: var(--branco);
  color: var(--primaria-escura);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.category-filters.is-draggable,
.category-filters.is-draggable .category-filter {
  cursor: grab;
}

.category-filters.is-dragging,
.category-filters.is-dragging .category-filter {
  cursor: grabbing;
}

.category-filter:hover {
  background: var(--rosa);
}

:root[data-theme="dark"] .category-filter:hover {
  color: var(--texto-sobre-primaria);
}

.category-filter[aria-pressed="true"] {
  background: var(--primaria);
  color: var(--texto-sobre-primaria);
}

.category-filter:focus-visible {
  outline: 3px solid var(--primaria);
  outline-offset: 4px;
}

/* A galeria usa colunas responsivas; o script distribui as artes na ordem cadastrada. */
.work-gallery {
  --gallery-columns: 4;
  columns: 4;
  column-gap: 1.25rem;
}

.artwork-card {
  --artwork-surface: #fff;
  break-inside: avoid;
  margin: 0 0 1.25rem;
  border: 1px solid var(--secundaria);
  border-radius: 18px;
  overflow: hidden;
  background: var(--artwork-surface);
}

:root[data-theme="dark"] .artwork-card {
  --artwork-surface: var(--branco);
}

.artwork-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--artwork-surface);
  color: inherit;
  cursor: zoom-in;
}

.artwork-image img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--artwork-surface);
}

.artwork-image:focus-visible {
  outline-offset: -4px;
}

.artwork-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  background: var(--artwork-surface);
}

.artwork-star {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.artwork-title {
  min-width: 0;
  padding: 0.15rem 0.7rem;
  border-radius: 14px;
  background: var(--lavanda);
  color: var(--texto);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:root[data-theme="dark"] .artwork-title {
  color: var(--primaria-escura);
}

@keyframes artwork-popup-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.86);
  }
  72% {
    opacity: 1;
    transform: translateY(-2px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes artwork-backdrop-in {
  from {
    background: rgba(47, 33, 66, 0);
    backdrop-filter: blur(0);
  }
}

.lightbox-open {
  overflow: hidden;
}

.artwork-lightbox {
  width: fit-content;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--texto);
}

.artwork-lightbox::backdrop {
  background: rgba(47, 33, 66, 0.82);
  backdrop-filter: blur(7px);
}

.artwork-lightbox[open]::backdrop {
  animation: artwork-backdrop-in 180ms ease-out both;
}

.lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(270px, 320px);
  align-items: stretch;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border-radius: 26px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(49, 30, 72, 0.38);
}

.artwork-lightbox[open] .lightbox-panel {
  transform-origin: center;
  animation: artwork-popup-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lightbox-panel > form {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
}

.lightbox-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 0.15rem;
  border: 2px solid var(--texto-sobre-primaria);
  border-radius: 50%;
  background: var(--primaria);
  color: var(--texto-sobre-primaria);
  font: 400 2rem/1 Arial, sans-serif;
  box-shadow: 0 6px 20px rgba(49, 30, 72, 0.28);
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--primaria-escura);
}

.lightbox-image-wrap {
  display: block;
  align-self: start;
  padding: 0;
  background: transparent;
}

.lightbox-image-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(860px, calc(100vw - 352px));
  max-height: calc(100vh - 2rem);
  object-fit: contain;
}

.lightbox-details {
  min-width: 0;
  padding: 5rem 1.5rem 1.5rem;
  border-left: 3px solid var(--primaria);
  background: var(--branco);
}

.lightbox-category {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.lightbox-details h2 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lightbox-image-wrap {
  position: relative;
  touch-action: pan-y;
}

.lightbox-details {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.lightbox-category, .lightbox-details h2 { flex-shrink: 0; }
.lightbox-description {
  margin: 1rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.lightbox-process { margin-top: auto; padding-top: 1.5rem; }
.lightbox-process h3 { margin: 0 0 .75rem; font-size: 1rem; }
.lightbox-thumbnails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.lightbox-thumbnails button {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--borda);
  border-radius: 10px;
  background: var(--fundo-suave);
  cursor: zoom-in;
}
.lightbox-thumbnails button[aria-pressed="true"] { border-color: var(--primaria); box-shadow: 0 0 0 2px var(--primaria); }
.lightbox-thumbnails img { display: block; width: 100%; height: 90px; object-fit: cover; }
#lightbox-notebook-views { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#lightbox-notebook-views img { height: 76px; object-fit: contain; }
#lightbox-notebook-views span { display: block; padding: .3rem; color: var(--texto); font-size: .72rem; line-height: 1.25; }
.lightbox-original { margin-top: .75rem; border: 0; padding: .6rem; border-radius: 8px; background: var(--lavanda); color: var(--texto); font: inherit; cursor: pointer; }
.lightbox-previous, .lightbox-next {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  padding: 0 0 .15rem;
  border: 1px solid var(--borda);
  border-radius: 50%;
  background: var(--branco);
  color: var(--texto);
  font: 2rem/1 sans-serif;
  box-shadow: 0 2px 12px rgb(0 0 0 / 18%);
  cursor: pointer;
}
.lightbox-previous { left: .6rem; }
.lightbox-next { right: .6rem; }
.lightbox-counter {
  position: absolute;
  bottom: .6rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: .3rem .75rem;
  border-radius: 99px;
  background: rgb(47 33 66 / 85%);
  color: #fff;
  font-size: .85rem;
}
.artwork-lightbox [hidden] { display: none !important; }

@media (max-width: 520px) {
  .lightbox-description { font-size: .95rem; }
  .lightbox-thumbnails {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(64px, calc((100% - 1.8rem) / 4), 88px);
    overflow-x: auto;
    padding: .2rem .2rem .6rem;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }
  .lightbox-thumbnails button { scroll-snap-align: start; }
  .lightbox-thumbnails img { height: 80px; }
}

.artwork-card[hidden],
.work-gallery[hidden],
.work-empty[hidden] {
  display: none;
}

.work-empty {
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 20px;
  background: var(--rosa);
}

.work-empty-sparkle {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  object-fit: contain;
}

.work-empty h3 {
  margin: 0.25rem 0;
  font-size: 1.35rem;
}

.work-empty p {
  max-width: 470px;
  margin: 0.5rem auto;
}

:root[data-theme="dark"] .work-empty {
  background: var(--lavanda);
  color: var(--creme);
}

:root[data-theme="dark"] .work-empty h3,
:root[data-theme="dark"] .work-empty p {
  color: var(--creme);
}

@media (max-width: 1050px) {
  .work-gallery {
    columns: 3;
  }

  .hero {
    gap: 2rem;
    padding-inline: 0.5rem;
  }

  .hello-cloud {
    padding: 2rem;
  }

  .hero-decoration {
    display: none;
  }
}

@media (max-width: 650px) {
  .home-main {
    padding-inline: 0.85rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0.75rem;
  }

  .mascot-wrap {
    max-width: 250px;
  }

  .mascot-caption {
    font-size: 0.75rem;
  }

  .hello-cloud {
    max-width: 430px;
    justify-self: center;
    padding: 2rem;
  }

  .hello-cloud > p:not(.eyebrow) {
    max-width: none;
  }

  .work-window {
    padding: 0.9rem 1rem 1.25rem;
    border-radius: 25px;
  }

  .work-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .category-filters {
    width: 100%;
    gap: 0.5rem;
  }

  .category-filter:first-child {
    margin-left: 0;
  }

  .category-filter {
    padding-inline: 0.9rem;
  }

  .work-gallery {
    columns: 2;
    column-gap: 0.75rem;
  }

  .artwork-card {
    margin-bottom: 0.75rem;
  }

  .artwork-lightbox {
    width: fit-content;
    max-width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .lightbox-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    max-width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    overflow: auto;
    border-radius: 20px;
  }

  .lightbox-image-wrap {
    justify-self: center;
    padding: 0;
  }

  .lightbox-image-wrap img {
    max-width: calc(100vw - 1rem);
    max-height: 70vh;
  }

  .lightbox-details {
    padding: 1rem 1.15rem 1.2rem;
    border-top: 3px solid var(--primaria);
    border-left: 0;
  }

  .lightbox-panel > form {
    top: 0.75rem;
    right: 0.75rem;
  }
}

@media (min-width: 521px) and (max-width: 650px) {
  .lightbox-panel {
    grid-template-columns: minmax(0, max-content) minmax(220px, 240px);
    grid-template-rows: auto;
    overflow: hidden;
    border-radius: 22px;
  }

  .lightbox-image-wrap {
    justify-self: auto;
    align-self: start;
  }

  .lightbox-image-wrap img {
    max-width: calc(100vw - 1rem - 240px);
    max-height: calc(100vh - 1rem);
  }

  .lightbox-details {
    padding: 4.5rem 1rem 1rem;
    border-top: 0;
    border-left: 3px solid var(--primaria);
  }
}

@media (max-width: 390px) {
  .work-heading h2 {
    font-size: 1.5rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .artwork-lightbox[open]::backdrop,
  .artwork-lightbox[open] .lightbox-panel {
    animation: none;
  }
}

/* Composição da nova identidade visual da homepage. */
.home-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero {
  display: block;
  max-width: none;
  margin: 0;
  padding: 1.5rem 0 0;
  background: var(--lavanda);
}

.hero-brand {
  display: block;
  width: min(285px, calc(100% - 2rem));
  margin: 0 auto;
  line-height: 0;
}

.hero-brand .brand-logo {
  width: 100%;
}

.hero-brand a {
  display: block;
}

.home-mascot {
  margin-top: 0.75rem;
  /* A faixa da imagem continua no fundo da galeria, inclusive nos temas claro e escuro. */
  background: linear-gradient(to bottom, transparent 82.4373%, #7D63AB 82.4373%);
}

.home-mascot img {
  display: block;
  width: min(620px, 100%);
  height: auto;
  margin-inline: auto;
}

@media (min-width: 1051px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero-brand {
    grid-area: 1 / 1;
    justify-self: start;
    align-self: center;
    z-index: 1;
    margin: 0 0 3rem;
    margin-left: max(2rem, calc((100% - 1240px) / 2));
    width: clamp(350px, calc(100% - 870px), 410px);
  }

  /* A faixa do mascote segue de ponta a ponta, com a marca na área livre à esquerda. */
  .home-mascot {
    grid-area: 1 / 1;
    margin-top: 0;
  }

  .home-mascot img {
    width: min(920px, calc(100% - 380px));
    margin-left: auto;
    margin-right: max(2rem, calc((100% - 1240px) / 2));
  }
}

.portfolio-section {
  padding: 2rem clamp(1rem, 3.5vw, 3.5rem) 3.5rem;
  background: var(--primaria);
  scroll-margin-top: 1rem;
}

:root[data-theme="dark"] .portfolio-section {
  background: #7D63AB;
}

.portfolio-title,
.portfolio-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.portfolio-search {
  width: min(740px, 100%);
  margin: 0 auto 1.75rem;
}

.portfolio-search-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding: .45rem 1.4rem;
  border: 2px solid var(--rosa);
  border-radius: 999px;
  background: #fef9ff;
  color: #7d63ab;
  box-shadow: 0 5px 0 rgb(46 24 78 / 14%);
  transition: border-color .15s, box-shadow .15s;
}

.portfolio-search-control:focus-within {
  border-color: var(--creme);
  box-shadow: 0 0 0 4px rgb(254 235 189 / 25%), 0 5px 0 rgb(46 24 78 / 14%);
}

.portfolio-search-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
}

.portfolio-search input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: .5rem 0;
  border: 0;
  outline: none;
  border-radius: 0;
  background: transparent;
  color: #4e386c;
  font: inherit;
  font-size: 1.15rem;
  box-shadow: none;
  appearance: none;
}

.portfolio-search input::placeholder { color: #78648d; opacity: 1; }
.portfolio-search input::-webkit-search-cancel-button { appearance: none; }
.portfolio-search-sparkle { flex: 0 0 1.8rem; width: 1.8rem; height: 1.8rem; object-fit: contain; }
.portfolio-search-clear {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ece1f3;
  color: #634b84;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.portfolio-search-clear[hidden] { display: none; }
.portfolio-search-clear:hover { background: #fad5e2; }

.work-window {
  width: min(1460px, 100%);
  margin-inline: auto;
  padding: 0.8rem clamp(1rem, 3vw, 2.5rem) 2.5rem;
  border-radius: 28px;
  background: var(--branco);
}

.work-heading {
  display: block;
  padding: 0;
}

.category-filters {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0.25rem 0.25rem 0.65rem;
  border-bottom: 3px solid var(--primaria);
}

.category-filter:first-child {
  margin-left: 0;
}

.category-filter {
  min-height: 38px;
  padding: 0.3rem 1.25rem;
  font-size: 0.94rem;
}

.work-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.work-gallery {
  --gallery-columns: 5;
  columns: 5;
  column-gap: 1.15rem;
  padding-top: 1.35rem;
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 1280px) {
  .work-gallery {
    --gallery-columns: 4;
    columns: 4;
  }
}

@media (max-width: 1050px) {
  .work-gallery {
    --gallery-columns: 3;
    columns: 3;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 1.25rem 0 0;
  }

  .portfolio-section {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .portfolio-search { margin-bottom: 1.25rem; }
  .portfolio-search-control { min-height: 58px; gap: .65rem; padding-inline: 1rem; }
  .portfolio-search input[type="search"] { font-size: 1rem; }
  .portfolio-search-icon { flex-basis: 22px; width: 22px; height: 22px; }
  .portfolio-search-sparkle { flex-basis: 1.5rem; width: 1.5rem; height: 1.5rem; }

  .work-window {
    padding: 0.75rem 0.85rem 1.5rem;
    border-radius: 22px;
  }

  .category-filters {
    width: 100%;
    margin: 0;
  }

  .work-gallery {
    --gallery-columns: 2;
    columns: 2;
    column-gap: 0.75rem;
    padding-top: 1rem;
  }

}

/* As dimensões escolhidas pelo administrador respeitam o espaço da coluna. */
.artwork-card.artwork-width-custom {
  width: min(var(--artwork-width), 100%);
}

.artwork-card.artwork-height-custom .artwork-image img {
  height: var(--artwork-height);
  object-fit: contain;
  background: var(--artwork-surface);
}

@media (max-width: 480px) {
  .artwork-card.artwork-height-custom .artwork-image img { max-height: 80vh; }
}

/* A ordem começa da esquerda para a direita; cada coluna segue na vertical. */
.work-gallery.gallery-columns-ready,
.work-gallery.gallery-ordered {
  display: grid;
  columns: auto;
  grid-template-columns: repeat(var(--active-gallery-columns, var(--gallery-columns)), minmax(0, var(--gallery-column-width, 1fr)));
  justify-content: start;
  gap: 1.15rem;
  align-items: start;
}

.artwork-column {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.gallery-columns-ready .artwork-card,
.gallery-ordered .artwork-card {
  margin: 0;
}

.gallery-columns-ready .artwork-card.artwork-width-custom {
  align-self: center;
}

.work-gallery[hidden] { display: none !important; }

@media (max-width: 520px) {
  .lightbox-panel { grid-template-rows: auto minmax(0, 1fr); }
  .lightbox-image-wrap img { max-height: 45vh; }
  .lightbox-details { max-height: 45vh; }
}

@media (max-width: 680px) {
  .work-gallery.gallery-columns-ready,
  .work-gallery.gallery-ordered,
  .artwork-column {
    gap: 0.75rem;
  }
}

@media (min-width: 681px) {
  .work-gallery { column-gap: .7rem; }
  .work-gallery.gallery-columns-ready,
  .work-gallery.gallery-ordered,
  .artwork-column { gap: .7rem; }
}
