/* Galerias de produtos: imagens preenchendo integralmente as molduras. */
/* Retratos e paisagens mantêm sua orientação original. */
.cake-gallery:not(.celebration-gallery) {
  --product-gap: 24px;
  --product-matte: #fff9fc;
  padding-bottom: 30px;
  background: linear-gradient(155deg, var(--card) 64%, var(--background));
}
.cake-gallery:not(.celebration-gallery) .cake-track {
  margin-left: calc(-1 * var(--product-gap));
  padding-block: 8px 20px;
  align-items: stretch;
}
.cake-gallery:not(.celebration-gallery) .cake-slide {
  flex: 0 0 33.333333%;
  padding-left: var(--product-gap);
}
.cake-gallery:not(.celebration-gallery) .cake-slide figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--product-matte);
  box-shadow: 0 4px 16px rgb(92 39 66 / 5%);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cake-gallery:not(.celebration-gallery) .cake-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: inherit;
  object-fit: fill;
  object-position: center;
  background: var(--product-matte);
  user-select: none;
}
.cake-gallery:not(.celebration-gallery) .dessert-name {
  min-height: 5.7em;
  padding: 17px 10px 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.cake-gallery:not(.celebration-gallery) .cake-carousel .cake-prev,
.cake-gallery:not(.celebration-gallery) .cake-carousel .cake-next {
  border-radius: 50%;
  box-shadow: 0 5px 18px rgb(92 39 66 / 10%);
}
:root[data-theme=dark] .cake-gallery:not(.celebration-gallery) .cake-slide figure {
  border-color: #77546a;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}
@media (hover: hover) and (pointer: fine) {
  .cake-gallery:not(.celebration-gallery) .cake-slide figure:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgb(92 39 66 / 13%);
  }
}
@media (max-width: 1000px) {
  .cake-gallery:not(.celebration-gallery) .cake-slide { flex-basis: 50%; }
}
@media (max-width: 760px) {
  .cake-gallery:not(.celebration-gallery) { --product-gap: 16px; padding-bottom: 24px; }
  .cake-gallery:not(.celebration-gallery) .cake-slide { flex-basis: 88%; }
  .cake-gallery:not(.celebration-gallery) .cake-slide figure { border-radius: 20px; }
  .cake-gallery:not(.celebration-gallery) .cake-slide img { border-radius: inherit; }
  .cake-gallery:not(.celebration-gallery) .dessert-name { font-size: 14px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .cake-gallery:not(.celebration-gallery) .cake-slide figure { transition: none; }
}
.cake-gallery.ifood-gallery .cake-slide figure {
  aspect-ratio: 4 / 3;
}

/* A moldura acompanha a foto, sem painel excedente. */
.cake-gallery:not(.ifood-gallery):not(.celebration-gallery) .cake-slide figure {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.cake-gallery:not(.ifood-gallery):not(.celebration-gallery) .cake-slide img {
  position: static;
  inset: auto;
  transform: none;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 380px;
  margin-inline: auto;
  object-fit: contain;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgb(92 39 66 / 5%);
}
.cake-gallery:not(.celebration-gallery) .dessert-name {
  text-align: center;
  margin: 0;
  padding: 14px 8px 8px;
  min-height: 0;
}
