/* Photo proportions and separate lightbox caption/counter rows. */
.tvn-product-grid .tvn-product-card .tvn-card-media { width: 100%; max-width: 100%; min-height: 0; aspect-ratio: 4 / 3; height: auto; background: #fff; padding: 14px; }
.tvn-product-grid .tvn-product-card .tvn-card-media img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; min-width: 0; object-fit: contain; object-position: center; }
.tvn-front-page .tvn-section > .tvn-grid { width: 100%; max-width: 1220px; }
.tvn-product-card .tvn-card-body { display: flex; flex-direction: column; }
.tvn-product-card .tvn-card-body > .tvn-text-link { margin-top: auto; }
.tvn-gallery-lightbox-dialog { min-height: 0; height: min(900px, calc(100dvh - 44px)); }
.tvn-gallery-lightbox-figure { grid-row: 1; padding: 58px 12px 8px; overflow: hidden; }
.tvn-gallery-lightbox-figure figcaption { max-height: 25dvh; overflow-y: auto; overflow-wrap: anywhere; }
.tvn-gallery-lightbox-counter { position: static; grid-column: 1 / -1; grid-row: 2; transform: none; text-align: center; padding: 4px 12px max(14px, env(safe-area-inset-bottom)); }
.tvn-form-context p { margin: 6px 0 0; }
.tvn-form-recovery { border-left: 4px solid var(--tvn-green); padding: 12px 16px; background: #f0f5ef; margin-bottom: 20px; }
.tvn-footer-facebook { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; }
.tvn-footer-facebook svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.tvn-quick-contact { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0 28px; }
.tvn-home-audience-links { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.tvn-home-audience-links a { display: inline-block; padding: 12px 18px; border: 1px solid #cdd8cf; border-radius: 8px; background: #fff; color: #155135; font-weight: 700; }
.tvn-home-audience-links a:hover, .tvn-home-audience-links a:focus-visible { background: #e7efe8; }
.tvn-front-page .tvn-home-hero { min-height: clamp(540px, 62vh, 650px) !important; padding-block: 48px; }
.tvn-front-page .tvn-home-hero h1 { font-size: clamp(38px, 4vw, 58px); }
.tvn-front-page .tvn-home-facebook { margin: 0 auto; padding: 0 24px 24px; max-width: var(--tvn-wide, 1240px); }
@media (max-width: 900px) {
  .tvn-gallery-lightbox-dialog { height: calc(100dvh - 20px); }
  .tvn-front-page .tvn-home-hero { min-height: 0 !important; padding: 36px 0 calc(60vw + 16px); }
  .tvn-front-page .tvn-home-hero .tvn-home-hero-picture { aspect-ratio: 5 / 3; }
  .tvn-front-page .tvn-home-hero h1 { font-size: clamp(32px, 5.8vw, 46px); }
}
@media (max-width: 600px) {
  .tvn-gallery-lightbox-dialog { height: 100dvh; }
  .tvn-gallery-lightbox-figure { padding: max(62px, calc(env(safe-area-inset-top) + 58px)) 4px 8px; }
  .tvn-home-audience-links a { flex: 1 1 145px; text-align: center; }
}
