[hidden] { display: none !important; }

/* Product gallery layout variants by image count */
.cd-gallery__grid--single { grid-template-columns: 1fr; }
.cd-gallery__tiles--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cd-gallery__tiles--2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.cd-gallery__tiles--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cd-gallery__tiles--3 > .cd-gallery__cell:last-child { grid-column: 1 / -1; }
.cd-gallery__more-count { font-style: normal; margin-left: .35rem; opacity: .85; }

@media (max-width: 1024px) {
  .cd-gallery__grid--single .cd-gallery__cell--main { height: 22rem; }
  .cd-gallery__tiles--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 10rem; }
  .cd-gallery__tiles--2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
  .cd-gallery__tiles--3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
  .cd-gallery__tiles--3 > .cd-gallery__cell:last-child { grid-column: auto; }
}

.cd-lightbox__img { display: flex; align-items: center; justify-content: center; }
.cd-lightbox__img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: inherit; }

/* Images that replace theme placeholders */
a.cat-card__img-wrap, a.gx-news-card__img { display: block; }
.gx-news-card__photo, .iv2-tech__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.iv2-tech__photo { height: 30rem; border-radius: var(--gx-r-2xl); }
.iv2-tech__inner--text-only { grid-template-columns: 1fr; }
.gx-page-hero__lead { color: rgba(255, 255, 255, .4); font-size: 1rem; line-height: 1.75; max-width: 34rem; margin-top: -30px; }
.lg-doc__image { width: 100%; border-radius: 1rem; margin-bottom: 1.5rem; }
.lg-toc__link.is-active { font-weight: 600; color: var(--gx-dark, #1f1f1e); }
.hd-mobile-link { text-transform: uppercase; }
.gx-empty-text { text-align: center; padding: 3rem 0; color: rgba(31, 31, 30, .6); }

.hd-mobile-bar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.lang-btn { white-space: nowrap; }

/* Product detail additions */
.gx-btn--ghost { background: transparent; border-color: rgba(31, 31, 30, .15); color: var(--gx-g500); }
.gx-btn--ghost .gx-btn__circle { background: var(--gx-g500); color: var(--gx-white); margin-right: -10px; }
.gx-btn--ghost:hover { background: var(--gx-g500); border-color: var(--gx-g500); color: var(--gx-white); }
.gx-btn--ghost:hover .gx-btn__circle { background: var(--gx-white); color: var(--gx-g500); }

.cd-quote__label { display: block; font-family: var(--gx-font-mono); font-size: .625rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--gx-lime); margin-bottom: .75rem; }
.cd-quote__title { font-family: var(--gx-font-heading); font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--gx-g500); margin-bottom: .75rem; }
.cd-quote__text { font-size: .9375rem; line-height: 1.7; color: var(--gx-g100); margin-bottom: 1.5rem; }
.cd-quote__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.cd-quote__btn { max-width: 100%; white-space: normal; text-align: left; }
.cd-videos { display: grid; gap: 1rem; }
.cd-video { position: relative; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: #000; }
.cd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Rich content coming from the editor */
.rich-content { line-height: 1.8; }
.rich-content > :first-child { margin-top: 0; }
.rich-content h2, .rich-content h3, .rich-content h4 { font-family: var(--gx-font-heading); font-weight: 700; margin: 1.75rem 0 .75rem; letter-spacing: -.01em; }
.rich-content h2 { font-size: 1.5rem; }
.rich-content h3 { font-size: 1.2rem; }
.rich-content p { margin-bottom: 1rem; }
.rich-content ul, .rich-content ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content li { margin-bottom: .35rem; }
.rich-content a { text-decoration: underline; }
.rich-content div[style*="border-left"] { background: var(--cd-grey, #f4f4f2) !important; border: 0 !important; border-radius: var(--cd-r-lg, 1.75rem) !important; padding: 1.75rem !important; margin-top: 1.5rem !important; }
.rich-content div[style*="border-left"] > p:first-child strong { font-family: var(--gx-font-heading); font-size: 1.25rem; letter-spacing: -.02em; color: var(--gx-g500); }
.rich-content a[style*="inline-block"] {
    display: inline-flex !important; align-items: center; justify-content: space-between; gap: 1rem;
    min-height: 3rem; padding: .375rem .375rem .375rem 1.25rem !important; margin: 0 .5rem .5rem 0 !important;
    border: 2px solid var(--gx-g500) !important; border-radius: var(--gx-r-full) !important;
    background: var(--gx-g500) !important; color: var(--gx-white) !important;
    font-weight: 500 !important; line-height: 1.3; text-decoration: none !important;
    transition: background var(--gx-t), color var(--gx-t), border-color var(--gx-t);
}
.rich-content a[style*="inline-block"]::after {
    content: ""; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--gx-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23212121'%3E%3Cpath d='M14.877 18.359l5.657-5.657a1 1 0 0 0 0-1.414l-5.657-5.657a1 1 0 0 0-1.414 1.414l3.95 3.95H4.17a1 1 0 0 0 0 2h13.243l-3.95 3.95a1 1 0 0 0 1.414 1.414z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.rich-content a[style*="inline-block"]:hover { background: var(--gx-white) !important; color: var(--gx-g500) !important; }
.rich-content a[style*="inline-block"]:not([style*="background"]) { background: transparent !important; color: var(--gx-g500) !important; border-color: rgba(31, 31, 30, .15) !important; }
.rich-content a[style*="inline-block"]:not([style*="background"]):hover { background: var(--gx-g500) !important; color: var(--gx-white) !important; border-color: var(--gx-g500) !important; }
.rich-content a[style*="inline-block"][style*="background"]:hover::after,
.rich-content a[style*="inline-block"]:not([style*="background"])::after { background-color: var(--gx-g500); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M14.877 18.359l5.657-5.657a1 1 0 0 0 0-1.414l-5.657-5.657a1 1 0 0 0-1.414 1.414l3.95 3.95H4.17a1 1 0 0 0 0 2h13.243l-3.95 3.95a1 1 0 0 0 1.414 1.414z'/%3E%3C/svg%3E"); }
.rich-content a[style*="inline-block"]:not([style*="background"]):hover::after { background-color: var(--gx-white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23212121'%3E%3Cpath d='M14.877 18.359l5.657-5.657a1 1 0 0 0 0-1.414l-5.657-5.657a1 1 0 0 0-1.414 1.414l3.95 3.95H4.17a1 1 0 0 0 0 2h13.243l-3.95 3.95a1 1 0 0 0 1.414 1.414z'/%3E%3C/svg%3E"); }
.rich-content img { max-width: 100%; height: auto; border-radius: .75rem; }
.rich-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.rich-content td, .rich-content th { border: 1px solid rgba(31, 31, 30, .12); padding: .5rem .75rem; text-align: left; }
.cmp-hero__desc.rich-content p { color: inherit; }

.cat-card__name a { color: inherit; text-decoration: none; transition: opacity .2s ease; }
.cat-card__name a:hover { opacity: .7; }

/* Contact form feedback */
.gx-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gx-form-alert { padding: 1rem 1.25rem; border-radius: .75rem; margin-bottom: 1.5rem; font-size: .9375rem; line-height: 1.6; }
.gx-form-alert--success { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.gx-form-alert--error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.gx-form-error { display: block; margin-top: .35rem; font-size: .8125rem; color: #d92d20; }
.gx-form-input.is-invalid, .gx-form-textarea.is-invalid { border-color: #f04438; }

.gx-pagination__arrow.is-disabled { opacity: .35; pointer-events: none; }
a.gx-pagination__page, a.gx-pagination__arrow { text-decoration: none; }
