/* Selected layout: category names centered at the top inside each card. */
body[data-layout="unutra"] .home .choices .choice {
  min-height: 192px;
  padding: 16px 24px;
}
body[data-layout="unutra"] .home .choices .choice-body {
  justify-content: space-between;
  gap: 14px;
}
body[data-layout="unutra"] .home .choices .choice-body > span:first-child {
  width: 100%;
  min-height: 42px;
  padding-right: 0;
  line-height: 1.4;
  text-align: center;
}
body[data-layout="unutra"] .home .choices .brand-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
body[data-layout="unutra"] .home .choices .arrow {
  right: 16px;
  top: auto;
  bottom: 16px;
  transform: none;
  line-height: 1;
}

/* Approved category photographs retain the current card dimensions. */
body .home .choices .choice-photo {
  color: #fff;
}
body .home .choices .choice-photo::after {
  background: linear-gradient(180deg, #102033b3, #10203326 45%, #10203326 70%, #10203366), var(--choice-photo, url('assets/stori-photos/d1.webp'));
  background-size: cover;
  background-position: var(--choice-position, center);
}
body .home .choices .choice-photo[href="#al"] {
  --choice-photo: url('assets/remaining-photos/m1.jpg');
  --choice-position: 50% 65%;
}
body .home .choices .choice-photo[href="#bgs"] {
  --choice-photo: url('assets/remaining-photos/b4.jpg');
  --choice-position: 50% 58%;
}
body .home .choices .choice-photo[href="#gedore"] {
  --choice-photo: url('assets/remaining-photos/gd7.webp');
  --choice-position: 50% 50%;
}
body .home .choices .choice-photo[href="#usisivaci"] {
  --choice-photo: url('assets/remaining-photos/k17.jpg');
}
body .home .choices .choice-photo[href="#usisivaci"]::after {
  background-color: #fff;
  background-size: cover, contain;
  background-position: center;
  background-repeat: no-repeat;
}
body .home .choices .choice-photo .choice-body > span:first-child {
  text-shadow: 0 1px 4px #000;
}
body .home .choices .choice-photo .brand-mark {
  background: #fffffff5;
}
body .home .choices .choice-photo .arrow {
  color: #fff;
}

/* Previous outside-frame layout remains available as a preview. */
body[data-layout="iznad"] .home .choices .choice {
  min-height: 194px;
  padding: 64px 24px 14px;
}
body[data-layout="iznad"] .home .choices .choice::before,
body[data-layout="iznad"] .home .choices .choice::after {
  top: 52px;
}
body[data-layout="iznad"] .home .choices .choice::after {
  top: 53px;
}
body[data-layout="iznad"] .home .choices .choice-body {
  justify-content: center;
}
body[data-layout="iznad"] .home .choices .choice-body > span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 42px;
  padding: 0 8px;
  line-height: 1.4;
  text-align: center;
}
body[data-layout="iznad"] .home .choices .arrow {
  right: 16px;
  top: calc((100% + 52px) / 2);
}

/* Earlier wood-card proposals remain available for comparison. */
body[data-layout="gore"] .choice[href="#drvo"] .choice-body,
.choice.layout-gore .choice-body {
  justify-content: center;
}
body[data-layout="gore"] .choice[href="#drvo"] .choice-body > span:first-child,
body[data-layout="dolje"] .choice[href="#drvo"] .choice-body > span:first-child,
.choice.layout-gore .choice-body > span:first-child,
.choice.layout-dolje .choice-body > span:first-child {
  width: 100%;
  padding-right: 0;
  text-align: center;
}
body[data-layout="dolje"] .choice[href="#drvo"] .choice-body,
.choice.layout-dolje .choice-body {
  flex-direction: column-reverse;
  justify-content: center;
}
body:is([data-layout="gore"], [data-layout="dolje"]) .choice[href="#drvo"] .arrow,
.choice:is(.layout-gore, .layout-dolje) .arrow {
  right: 16px;
}
body[data-layout="ispod"] .choice[href="#drvo"],
.choice.layout-ispod {
  min-height: 184px;
  padding-bottom: 54px;
}
body[data-layout="ispod"] .choice[href="#drvo"]::before,
body[data-layout="ispod"] .choice[href="#drvo"]::after,
.choice.layout-ispod::before,
.choice.layout-ispod::after {
  bottom: 42px;
}
body[data-layout="ispod"] .choice[href="#drvo"] .choice-body,
.choice.layout-ispod .choice-body {
  justify-content: center;
}
body[data-layout="ispod"] .choice[href="#drvo"] .choice-body > span:first-child,
.choice.layout-ispod .choice-body > span:first-child {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0;
  text-align: center;
}
body[data-layout="ispod"] .choice[href="#drvo"] .arrow,
.choice.layout-ispod .arrow {
  right: 16px;
  top: calc((100% - 42px) / 2);
}
