/*
Theme Name: Računala Noah
Template: generatepress
Version: 0.1.1
*/

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: stretch;
  gap: 28px;
}
.contact-info, .contact-business {
  margin: 0;
}
.contact-info dd, .contact-business dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.contact-info dd + dt {
  margin-top: 12px;
}
.contact-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 10px;
}
.contact-business {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 22px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
@media (max-width: 720px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-map { min-height: 240px; }
  .contact-business { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.noah-price-scroll { overflow-x: auto; }
.noah-price-table { width: 100%; min-width: 35rem; table-layout: fixed; }
.noah-price-table .price-unit { width: 20%; }
.noah-price-table .price-current,
.noah-price-table .price-reference { width: 19%; }
.noah-price-table th { text-align: left; overflow-wrap: anywhere; }
.noah-price-table td:nth-last-child(-n+2),
.noah-price-table thead th:nth-last-child(-n+2) { text-align: right; }
.noah-price-table time { white-space: nowrap; }

.product-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.product-gallery figure { margin: 0; }
.product-gallery img { display: block; width: 100%; height: auto; }

.produx-module {
  padding: 1rem 0;
  border-bottom: 3px solid color-mix(in srgb, var(--line) 65%, var(--ink));
}
.produx-module[open] { padding-bottom: 1.5rem; }
.produx-module summary { cursor: pointer; font-weight: 650; }
.produx-module p { margin-top: .6rem; }
.product-gallery a { display: block; cursor: zoom-in; }
#product-image-preview { max-width: 95vw; max-height: 94vh; padding: .75rem; }
#product-image-preview img { display: block; width: min(80vw, 1000px); max-height: 78vh; object-fit: contain; }
#product-image-preview form { margin-bottom: .5rem; text-align: right; }
#product-image-preview::backdrop { background: rgb(0 0 0 / .75); }

.product-gallery a { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: .75rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--panel); }
.product-gallery img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-gallery a:hover { border-color: var(--accent); }
