/* ACT Classifieds detail-page polish. Scoped to leave directory, advertising and forms untouched. */
.act-single .act-gallery__main {
  position: relative;
  overflow: hidden;
  border: 1px solid #d5d0c7;
  background: #ebe8e2;
}
.act-single .act-gallery__main > img { transition: opacity .16s ease; }
.act-single .act-gallery__thumbs {
  padding: 4px 2px 10px;
  gap: 9px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.act-single .act-gallery__thumbs img {
  flex: 0 0 auto;
  width: 104px;
  height: 80px;
  border: 3px solid transparent;
  border-radius: 2px;
  box-sizing: border-box;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: .76;
  transition: opacity .15s ease, border-color .15s ease;
}
.act-single .act-gallery__thumbs img:hover,
.act-single .act-gallery__thumbs img.is-active {
  opacity: 1;
  border-color: #e34c25;
}
.act-single .act-gallery__thumbs img:focus-visible,
.act-single button:focus-visible {
  outline: 3px solid #0d66ad;
  outline-offset: 3px;
}
.act-gallery-counter {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 2;
  color: #fff;
  background: rgba(15,16,17,.86);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
  padding: 9px 11px;
}
.act-gallery-nav,
.act-gallery-zoom {
  position: absolute;
  z-index: 2;
  border: 0;
  color: #fff;
  background: rgba(16,18,20,.84);
  cursor: pointer;
}
.act-gallery-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 52px;
  font-size: 34px;
  line-height: 1;
}
.act-gallery-prev { left: 9px; }
.act-gallery-next { right: 9px; }
.act-gallery-zoom {
  bottom: 15px;
  right: 15px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.act-gallery-nav:hover,
.act-gallery-zoom:hover { background: #c7441e; }
.act-single .act-spec-heading {
  margin: 26px 0 12px;
  font-size: 1.32rem;
  line-height: 1.2;
  font-weight: 800;
}
.act-single .act-listing-aside > dl.act-specs {
  margin: 0 0 24px;
  border: 1px solid #dedbd3;
  background: #fff;
}
.act-single .act-listing-aside > dl.act-specs > div {
  display: grid;
  grid-template-columns: minmax(100px, 38%) minmax(0, 1fr);
  padding: 11px 14px;
  gap: 12px;
  border-color: #eee9e0;
  align-items: baseline;
}
.act-single .act-listing-aside > dl.act-specs > div:nth-child(even) { background: #faf8f3; }
.act-single .act-listing-aside > dl.act-specs > div.act-spec-highlight {
  background: #f4f0e7;
}
.act-single .act-listing-aside > dl.act-specs dt { font-size: .84rem; }
.act-single .act-listing-aside > dl.act-specs dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .9rem;
}
.act-gallery-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(95vw, 1250px);
  max-width: 95vw;
  max-height: 94dvh;
  border: 1px solid #414141;
  background: #121416;
  color: #fff;
}
.act-gallery-dialog::backdrop { background: rgba(0,0,0,.91); }
.act-gallery-dialog-inner {
  position: relative;
  min-height: min(70dvh, 700px);
  display: grid;
  place-items: center;
  padding: 48px 45px 28px;
}
.act-gallery-dialog-inner > img {
  max-height: calc(94dvh - 110px);
  max-width: 100%;
  object-fit: contain;
}
.act-gallery-dialog-toolbar {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 16px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: .8rem;
}
.act-gallery-dialog button {
  border: 0;
  background: #2a2d30;
  color: #fff;
  cursor: pointer;
}
.act-gallery-dialog button:hover { background: #e34c25; }
.act-gallery-dialog-close {
  font-size: 28px;
  width: 37px;
  height: 37px;
}
.act-gallery-dialog-prev,
.act-gallery-dialog-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  width: 38px;
  height: 58px;
}
.act-gallery-dialog-prev { left: 4px; }
.act-gallery-dialog-next { right: 4px; }
.act-gallery-dialog button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .act-gallery-nav { width: 36px; height: 44px; }
  .act-gallery-dialog { width: 100vw; max-width: 100vw; }
  .act-gallery-dialog-inner { min-height: 55dvh; padding: 52px 38px 24px; }
  .act-single .act-gallery__thumbs img { width: 86px; height: 68px; }
  .act-single .act-listing-aside > dl.act-specs > div { grid-template-columns: minmax(95px, 42%) 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .act-single .act-gallery__main > img,
  .act-single .act-gallery__thumbs img { transition: none; }
}
