/*
 * TiiaElla – additions to the original Webflow stylesheet.
 * Only what the original did through Webflow's runtime (menu, accordion, reveal) or what the new structure needs
 * (request forms, product action, hero actions, lightbox, accessibility). Loaded after the Webflow CSS.
 */

/* ---------- accessibility ---------- */
.tt-skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #171717; color: #fff; padding: .75rem 1rem; }
.tt-skip:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [role="button"]:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
.hero a:focus-visible, .footer a:focus-visible { outline-color: #e7d9c0; }
.tt-noscroll { overflow: hidden; }

/* ---------- header: button hamburger, dropdown keyboard states ---------- */
.mobile-menu-hamburger { background: none; border: 0; padding: 0; }
.line-horizontal, .line-vertical { display: block; transition: transform .5s cubic-bezier(.165, .84, .44, 1); }
@media (min-width: 992px) { .nav-menu-wrap.desktop { display: flex; align-items: center; justify-content: center; } }
.w-dropdown-toggle { cursor: pointer; }
@media (min-width: 992px) { .mobile-menu-hamburger.mobile { display: none; } }

/* ---------- FAQ as buttons (original: div + IX2) ---------- */
.faq-title-wrap { margin: 0; font: inherit; }
button.faq-header { width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.faq-title { display: block; text-align: left; }
.arrow-line-vertical { transition: transform .5s cubic-bezier(.165, .84, .44, 1); }
.tt-js .faq-body { height: 0; overflow: hidden; }

/* ---------- scroll-in reveal (original: IX2 opacity/translate) ---------- */
.tt-js [data-tt-reveal] { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 1s cubic-bezier(.165, .84, .44, 1), transform 1s cubic-bezier(.165, .84, .44, 1); }
.tt-js [data-tt-reveal].tt-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tt-js [data-tt-reveal] { opacity: 1; transform: none; transition: none; } .line-horizontal, .line-vertical, .arrow-line-vertical { transition: none; } }

/* ---------- hero / calls to action ---------- */
.tt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.tt-hero-actions .button-primary { width: auto; }
.tt-hero-counselling .tt-hero-actions { margin-top: 1.5rem; }
.button.tt-primary-cta { text-decoration: none; display: inline-block; padding: 12px 24px; }
.wrap_2-buttons { flex-wrap: wrap; }
.wrap_2-buttons .button { text-decoration: none; }

/* ---------- product cards, lists, product page ---------- */
.tt-intro { max-width: 46rem; margin: 0 auto 1.5rem; text-align: center; }
.tt-center { text-align: center; }
.tt-note { font-size: .9375rem; line-height: 1.5rem; color: #3b3b3b; }
.tt-hint { margin: .375rem 0 0; font-size: .8125rem; line-height: 1.25rem; color: #4a4a4a; }
.tt-more { margin-top: 1rem; }
.tt-more a, .tt-note a, .tt-intro a { text-decoration: underline; }
.tt-list-page .product-list { justify-content: center; }
@media (min-width: 768px) { .tt-list-page .product-item, .products .product-item { width: auto; } }
.product-list { justify-content: center; }
.product-list .product { height: auto; min-height: 450px; }
.product-button-wrap { margin-top: 1rem; }
.buy-button.tt-want { display: block; box-sizing: border-box; padding: .5rem 0; text-decoration: none; color: var(--black, #171717); }
.buy-button.tt-want:hover { color: var(--white, #fff); }
.tt-unavailable { margin: .75rem 0 0; font-weight: 500; color: #7a2e2e; text-align: center; }
.tt-breadcrumb { padding-top: 1rem; font-size: .875rem; }
.tt-breadcrumb a { text-decoration: underline; }
.single-product-image { max-width: 100%; height: auto; }
.price-cart-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 1.5rem 0 .5rem; }
.price-cart-wrap .button-primary { width: auto; }

/* ---------- request forms ---------- */
.tt-request { padding: 3rem 0 4rem; }
.tt-form-card { max-width: 52rem; margin: 0 auto; padding: 2rem; }
.tt-form-title { margin-top: 0; text-align: center; }
.tt-selected { text-align: center; font-size: 1.125rem; }
.tt-form label { display: block; margin-bottom: .375rem; font-weight: 500; }
.tt-form .w-layout-grid.form { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.tt-form .tt-wide { grid-column: 1 / -1; }
.tt-form textarea.text-area { min-height: 8rem; }
.tt-form select.input { appearance: auto; padding-right: 2.5rem; }
.tt-actions { display: flex; justify-content: center; }
.tt-actions .btn-primary { cursor: pointer; }
.tt-consent .tt-check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.tt-consent input[type="checkbox"] { width: 1.5rem; height: 1.5rem; margin-top: .125rem; flex: none; accent-color: #171717; }
.tt-form [aria-invalid="true"] { border-color: #a12626; box-shadow: 0 0 0 2px #a1262633; }
.tt-error:not([hidden]) { display: block; margin: 1rem 0; padding: .875rem 1rem; background: #fbeeee; border: 1px solid #a12626; color: #7a1c1c; border-radius: 6px; }
.tt-error[hidden], .w-form-done[hidden] { display: none; }
.tt-form-card .w-form-done:not([hidden]) { display: block; text-align: center; padding: 1.5rem; }
.tt-mock-note { margin-top: 1rem; font-size: .8125rem; color: #6b4a00; background: #fff6df; padding: .5rem .75rem; border-radius: 6px; }
@media (max-width: 767px) {
  .tt-form-card { padding: 1.25rem; }
  .tt-form .w-layout-grid.form { grid-template-columns: 1fr; }
  .tt-form .input, .tt-form .text-area { font-size: 16px; }
  .tt-form .tt-actions .btn-primary { width: 100%; min-height: 3.25rem; }
}

/* ---------- gallery lightbox ---------- */
.tt-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.tt-lightbox[hidden] { display: none; }
.tt-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.tt-lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.tt-gallery-head { text-align: center; }
.tt-gallery-head h1 { margin-top: 0; }

/* ---------- 404 ---------- */
.tt-404 { padding: 8rem 0; }


/* ---------- desktop navigation: eight entries instead of six ---------- */
.product-image { height: auto; }
@media (min-width: 992px) {
  .nav-menu-wrap.desktop { flex-wrap: nowrap; grid-column-gap: .5rem; column-gap: .5rem; }
  .nav-menu-wrap.desktop .menu, .nav-menu-wrap.desktop .text-block-11 { font-size: 1.0625rem; white-space: nowrap; }
  .nav-menu-wrap.desktop .menu.w--current { font-weight: 400; text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }
  .nav-menu-wrap.desktop .w-dropdown-toggle { padding: .625rem 1.75rem .625rem .375rem; }
}
@media (min-width: 1280px) {
  .nav-menu-wrap.desktop { grid-column-gap: 1rem; column-gap: 1rem; }
  .nav-menu-wrap.desktop .menu, .nav-menu-wrap.desktop .text-block-11 { font-size: 1.25rem; }
}

/* ---------- marquee strip under the hero (original: IX2 loop, ~47px/s) ---------- */
.tt-js .slide-main-wrap { will-change: transform; animation: tt-marquee var(--tt-marquee-time, 60s) linear infinite; }
@keyframes tt-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(var(--tt-marquee-shift, 1200) * -1px), 0, 0); } }
@media (prefers-reduced-motion: reduce) { .tt-js .slide-main-wrap { animation: none; } }

/* ---------- header dropdown arrow, request-form details ---------- */
.nav-menu-wrap.desktop .dropdown-toggle.w-dropdown-toggle { padding: .625rem 1.75rem .625rem .375rem; }
.nav-menu-wrap.desktop .w-icon-dropdown-toggle { right: .375rem; margin-right: 0; }
.treatment-rich p a, .treatment-rich li a { display: inline; text-decoration: underline; }
.tt-form .tt-check { text-transform: none; letter-spacing: normal; font-size: .9375rem; line-height: 1.5rem; }
.tt-form .tt-check a { display: inline; text-decoration: underline; }

/* ---------- layout details found in review ---------- */
.tt-breadcrumb .container *, .tt-breadcrumb .w-container * { display: inline; }
.tt-form .w-layout-grid.form { align-items: start; }
@media (min-width: 992px) { .product-header-product-description .tt-note { padding-right: 8rem; } }

/* ---------- list pages: price line and action under each photo ---------- */
.tt-list-item { padding-bottom: 2rem; }
.tt-list-item .text-block-5 a { text-decoration: none; color: inherit; }
.tt-price-line { margin: .25rem 0 1rem; font-size: 1.0625rem; }
.tt-list-item .buy-button.tt-want { max-width: 18rem; }

/* ---------- home: single massage card ---------- */
.tt-massage-teaser .treatment-featured-image { aspect-ratio: 4 / 5; object-fit: cover; height: auto; }

/* ---------- accessibility details ---------- */
.news-date { color: #171717; }
.footer-menu { display: inline-block; padding: .25rem 0; min-height: 1.5rem; }
.copyright-menu-list .footer-menu { padding: .25rem .25rem; }
.footer-social-media-holder a { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; min-height: 2rem; }
.tt-more a { display: inline-block; padding: .5rem .25rem; }

/* ---------- phones: hero with two actions, counselling hero legibility, price ---------- */
.price-cart-wrap .heading-10 { font-size: 1.875rem; line-height: 2.5rem; margin: 0; text-align: center; }
@media (max-width: 767px) {
  .section.hero .div-block { height: auto; min-height: 500px; padding-bottom: 1.5rem; }
  .tt-hero-actions { flex-direction: column; width: 100%; }
  .tt-hero-actions .button-primary { width: 100%; max-width: 20rem; }
  .products .product-list, .tt-list-page .product-list { flex-direction: column; align-items: center; }
  .products .product { width: 100%; max-width: 20rem; height: auto; }
  .treatment-hero .treatment-headings { background: rgba(255, 255, 255, .9); padding: 1.25rem 1rem; border-radius: 6px; }
  .treatment-hero .treatment-name { font-size: 1.75rem; line-height: 2.25rem; }
}
@media (max-width: 767px) {
  .products .product-list { display: grid; grid-template-columns: 1fr; justify-items: center; grid-auto-flow: row; }
  .products .product-item { width: 100%; display: flex; justify-content: center; padding-left: 0; padding-right: 0; }
}
/* cards and paintings are the second business priority: larger pictures than the original thumbnails */
.products .product-image { width: 14rem; max-width: 100%; }
.products .product { height: auto; min-height: 0; padding-bottom: 1.25rem; }
.tt-hero-actions .button-primary { height: auto; min-height: 3.125rem; white-space: normal; text-align: center; }
@media (max-width: 991px) {
  .line-horizontal, .line-vertical { background-color: #171717; }
  .treatment-hero .treatment-headings { background: rgba(255, 255, 255, .9); padding: 1.25rem 1rem; border-radius: 6px; }
}

/* ---------- gallery: the "vaata" button appears on hover/focus (always on touch), intro links stay inline ---------- */
.tt-gallery-head .tt-intro a { display: inline; text-decoration: underline; }
.project-item-2 .hover-link-wrapper { opacity: 0; transition: opacity .3s; }
.project-item-2:hover .hover-link-wrapper, .project-item-2:focus-within .hover-link-wrapper { opacity: 1; }
@media (hover: none) { .project-item-2 .hover-link-wrapper { opacity: 1; } }

/* ---------- phones: first screen proportions (owner review at 375 px) ---------- */
@media (max-width: 767px) {
  .section.hero .heading-20 { width: auto; max-width: 21rem; font-size: 1.875rem; line-height: 2.5rem; margin-bottom: 1.25rem; }
  .section.hero .paragraph-big { font-size: 1.0625rem; line-height: 1.65rem; max-width: 21rem; margin-bottom: 1.5rem; }
  .section.hero .tt-hero-actions { flex-direction: column; align-items: center; gap: .625rem; width: auto; }
  .section.hero .tt-hero-actions .button-primary { width: auto; max-width: none; min-height: 2.75rem; padding: .5rem 1.25rem; font-size: .8125rem; letter-spacing: .02em; grid-column-gap: .5rem; }
  .section.hero .tt-hero-actions .button-primary + .button-primary { background: transparent; border: 1px solid rgba(255, 255, 255, .75); }
  .section.hero .tt-hero-actions .button-text { white-space: nowrap; }
  .section.hero .div-block { padding-bottom: 2rem; min-height: 28rem; }
  .tt-hero-counselling .tt-hero-actions .button-primary { width: auto; min-height: 2.75rem; padding: .5rem 1.25rem; font-size: .8125rem; }
}
@media (max-width: 767px) {
  .section.hero .heading-20 { margin-top: 3.5rem; }
  .section.hero .div-block { min-height: 0; }
}
@media (max-width: 400px) {
  .section.hero .heading-20 { font-size: 1.75rem; line-height: 2.375rem; }
}

/* Google Maps click-to-load placeholder (same 16:9 frame the embed had) */
.tt-map { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; background: var(--light-gold, #fcf9f6); }
.tt-map-box { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; text-align: center; }
.tt-map-text { margin: 0; max-width: 28rem; }
.tt-map iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 479px) { .tt-map { padding-bottom: 0; height: 18rem; } }
.tt-map-box .tt-hint a { display: inline-block; padding: .625rem .5rem; min-height: 2.75rem; line-height: 1.5rem; }

/* Button states. ROOT CAUSE of the vanishing "Broneeri aeg" label: the exported Webflow stylesheet sets a:hover{color:#32343a} / a:active{color:#43464d} for
   EVERY link (specificity 0,1,1), which beats .button{color:#fff} (0,1,0) – on hover the label turned dark on the black button. Anchors that are buttons
   now state their own colour for every state (specificity 0,2,1+), keep a visible hover change (lighter fill + underline) and a focus ring that works on
   both dark and light surroundings. */
a.button:link, a.button:visited, a.button:hover, a.button:focus, a.button:active { color: #fff; text-decoration: none; }
a.button:hover, a.button:focus-visible { background-color: #3a3a3a; border-color: #3a3a3a; text-decoration: underline; text-underline-offset: .2em; }
a.button:active { background-color: #000; border-color: #000; }
a.button.secondary:link, a.button.secondary:visited, a.button.secondary:hover, a.button.secondary:focus, a.button.secondary:active { color: #1a1a1a; }
a.button.secondary:hover, a.button.secondary:focus-visible { background-color: #f1ece4; border-color: #000; }
a.button:focus-visible, a.button-primary:focus-visible, a.buy-button:focus-visible, .btn-primary:focus-visible { outline: 2px solid #171717; outline-offset: 3px; box-shadow: 0 0 0 5px #fff; }
a.button { transition: background-color .2s, border-color .2s; }

/* Prose links stay inline. ROOT CAUSE of the FAQ 03 links standing on their own rows: the exported Webflow page stylesheet of the home page carries a bare
   `a { display: block; ... }`, so every plain link inside a paragraph became a block. Plain (class-less) links inside running text are inline again
   (specificity 0,1,2 > a); classed links (buttons, cards, menus) keep their own layout. */
p a:not([class]), li a:not([class]) { display: inline; }

/* ---------- mobile menu overlay (D121) ----------
   ROOT CAUSE of the hidden "Veel" items: the exported menu is an absolutely positioned box whose height the script animated to the scrollHeight measured
   when it opened, with overflow:hidden; the "Veel" list is absolutely positioned too, so it never counted – opening it pushed the links below the box,
   where they were clipped and the page showed through. Now: below 992 px the open menu is a viewport-sized overlay (top = header bottom, bottom = 0)
   that scrolls inside itself; the submenu is part of the flow, so the content height is always right. */
@media (max-width: 991px) {
  .tt-js .mobile-menu-wrap { position: fixed; left: 0; right: 0; bottom: 0; top: 4.375rem; width: auto; height: auto; max-height: none; display: block; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s; z-index: 999; }
  .tt-js .mobile-menu-wrap.tt-open { visibility: visible; opacity: 1; transition: opacity .25s ease; }
  .tt-js .mobile-menu-wrap { background-color: #eaeaea; }
  .tt-js .mobile-menu-wrap .w-dropdown { display: flex; flex-direction: column; align-items: center; }
  .tt-js .mobile-menu-wrap .w-dropdown-list { position: static; display: none; min-width: 0; width: auto; text-align: center; background: transparent; }
  .tt-js .mobile-menu-wrap .w-dropdown-list.w--open { display: block; }
  .tt-js .mobile-menu-wrap .w-dropdown-link { display: block; text-align: center; padding-left: 1.25rem; padding-right: 1.25rem; }
  html.tt-menu-locked, html.tt-menu-locked body { overflow: hidden; }
  .mobile-menu-hamburger { position: relative; z-index: 1000; }
}
@media (min-width: 992px) { .tt-js .mobile-menu-wrap { display: none; } }
@media (prefers-reduced-motion: reduce) { .tt-js .mobile-menu-wrap, .tt-js .mobile-menu-wrap.tt-open { transition: none; } }

/* ---------- black strip under the home hero (D121) ----------
   ROOT CAUSE of the text outside the strip: the marquee track is wider than the strip and slides by transform, but neither the black section nor its
   wrapper clipped overflow (overflow:visible), so the moving phrases were drawn over the white page margins and past the viewport edges. The strip
   now clips its own contents (the loop and its speed are unchanged). */
section.slide { overflow: hidden; }
.slide-wrap { max-width: 100%; }

/* ---------- counselling hero: breathing room below the card on small screens (D121) ----------
   ROOT CAUSE: the exported hero has padding-bottom 0 – the white card ends exactly on the photo's lower edge and the next section's own 60 px top padding is
   the only gap, so the two sections read as one block. The photo now continues below the card and the next section gets a larger top padding. */
@media (max-width: 991px) {
  .treatment-hero.tt-hero-counselling { padding-bottom: 2rem; }
  .treatment-hero.tt-hero-counselling + .treatment-body { padding-top: 4rem; }
}

/* D122: owner-confirmed counselling price – a plain, quiet line (not a badge) under the service title */
.tt-service-price { margin: .75rem 0 0; font-size: 1.125rem; font-weight: 500; line-height: 1.4; text-align: center; letter-spacing: .01em; text-wrap: balance; }
.tt-counselling-cta .tt-service-price { margin: 0 0 1.25rem; }
@media (max-width: 479px) { .tt-service-price { font-size: 1.0625rem; } }
.tt-service-price .tt-nowrap { white-space: nowrap; }

/* D124: a landscape painting card (4:3) shows its picture across the full card width, centred in the same picture band as the square thumbnails (aspect ratio kept, no crop) */
.products .product-image-wrap.tt-landscape { padding-left: 0; padding-right: 0; min-height: 14.25rem; display: flex; align-items: center; justify-content: center; }
.products .product-image-wrap.tt-landscape > a { display: block; width: 100%; }
.products .product-image-wrap.tt-landscape .product-image { width: 100%; max-width: 17.5rem; height: auto; margin-left: auto; margin-right: auto; }

/* D129 performance: on phones the home hero shows only the central part of its photo, so below 480 px it uses that exact 1280 × 1240 pixel window (same scale and framing as the full image with 'cover' + '50% 0'; 93 KB instead of 143 KB). */
@media screen and (max-width: 479px) { .section.hero { background-image: url("/assets/media/tiiaella-hero-mobile-v1.avif"), linear-gradient(0deg, var(--gold), var(--gold) 0%, var(--light-gold) 92%); } }

/* D144: Maalid and all-products lists are an aligned grid, not floats: 2 columns from 768 px, 1 column below. Every card spans four shared rows (picture, title, price, button) via subgrid, so a row of cards lines up even when a title wraps; the picture area is one identical 4:5 frame (D145) and the artwork is shown whole (object-fit: contain, no crop). */
.tt-grid .w-dyn-items.w-row { display: grid; grid-template-columns: 1fr; column-gap: 2rem; row-gap: 0; margin-left: 0; margin-right: 0; }
.tt-grid .w-dyn-items.w-row::before, .tt-grid .w-dyn-items.w-row::after { content: none; display: none; }
@media (min-width: 768px) { .tt-grid .w-dyn-items.w-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* D147: each list item is one complete gallery card - soft off-white surface, 1px border, even padding, no shadow. Subgrid rows (picture, title, price, button) keep the content aligned across a row of equal-height cards. */
.tt-grid .tt-list-item { width: auto; float: none; min-width: 0; margin: 0 0 2rem; padding: 1rem 1rem 1.5rem; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; background: #fffdfa; border: 1px solid rgba(120, 100, 70, .18); }
.tt-grid .tt-list-item > a.w-inline-block { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 5; background: rgba(120, 100, 70, .08); } /* one identical 4:5 picture frame (mat); artwork centred, whole */
.tt-grid .tt-list-item > a.w-inline-block > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.tt-grid .tt-list-item .text-block-5 { margin-top: 1.25rem; min-height: 2.4em; min-height: 2lh; } /* two title lines reserved: every card the same height */
.tt-grid .tt-list-item .tt-price-line { margin-bottom: 1.25rem; }
.tt-grid .tt-list-item .buy-button.tt-want { justify-self: start; align-self: start; }
@media (max-width: 479px) { .tt-grid .tt-list-item { padding: .75rem .75rem 1.25rem; } .tt-grid .tt-list-item .buy-button.tt-want { justify-self: stretch; max-width: none; } }

/* D148: home page. The five cards used to sit in ONE non-wrapping flex row (1615 px in a 1440 px page: first and last card clipped, heights set by their own content). Now the card set keeps its own row and the paintings are one grid (1 column below 768 px, 2 to 1199 px, 4 from 1200 px). Every painting card spans four shared rows (picture, title, category/price, button) via subgrid, so the cards have one height, the picture frames are identical (4:5, artwork centred, object-fit: contain, no crop) and the buttons share one baseline. */
.products .product-list + .w-dyn-list, .products .w-dyn-list + .w-dyn-list { margin-top: 2rem; }
.products .tt-paintings.product-list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1.25rem; row-gap: 0; flex-wrap: nowrap; justify-content: stretch; justify-items: stretch; align-items: stretch; }
@media (min-width: 768px) { .products .tt-paintings.product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .products .tt-paintings.product-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.products .tt-paintings .product-item { width: auto; max-width: none; min-width: 0; margin: 0; padding: 0 0 1.25rem; display: grid; grid-row: span 4; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: row; row-gap: 0; }
.products .tt-paintings .product { grid-row: 1 / span 4; display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; row-gap: 0; place-items: stretch; width: 100%; max-width: none; height: auto; min-height: 0; padding: 1rem 1rem 1.25rem; }
.products .tt-paintings .product-detail { display: contents; }
.products .tt-paintings .product-image-wrap { margin: 0; padding: 0; min-height: 0; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; background: rgba(120, 100, 70, .08); }
.products .tt-paintings .product-image-wrap > a { display: block; width: 100%; height: 100%; }
.products .tt-paintings .product-image-wrap img.product-image { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: contain; object-position: center; }
.products .tt-paintings .product-link { display: block; margin-top: 1rem; }
.products .tt-paintings .porduct-name { margin-top: 0; min-height: 2.4em; } /* two title lines reserved: cards of different rows / the single phone column keep one height */
.products .tt-paintings .category-price { align-self: start; }
.products .tt-paintings .product-button-wrap { align-self: start; }
@media (max-width: 767px) { .products .tt-paintings .product-item { width: 100%; max-width: 22rem; justify-self: center; display: grid; } }
.products .product-list:not(.tt-paintings) { grid-template-columns: minmax(0, 1fr); justify-items: center; } /* the card set keeps its own centred row at every width */
