@import url('/assets/catalog.css');
.kg-white{margin:0;background:#fff;color:#29251f;font-family:Arial,sans-serif}.kg-main{max-width:1240px;margin:auto;padding:30px 28px 70px;background:#fff}.kg-intro{max-width:780px;margin:10px auto 50px;text-align:center}.kg-intro h1,.kg-description h1{font-size:clamp(30px,4vw,46px);font-weight:500;line-height:1.3;margin:12px 0}.kg-intro p,.kg-description p{font-size:19px;line-height:1.85}.kg-eyebrow,.kg-style{color:#887044;font-size:15px;letter-spacing:.03em;margin:12px 0}.kg-rule{height:1px;width:82px;background:#b59b69;margin:24px 0}.kg-intro .kg-rule{margin:24px auto}.kg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px}.kg-card{min-width:0;border-bottom:1px solid #e8dfce;padding-bottom:24px}.kg-card a{display:block;color:inherit;text-decoration:none}.kg-card img{width:100%;height:410px;object-fit:contain;background:#fff;transition:transform .25s}.kg-card a:hover img{transform:scale(1.025)}.kg-card-copy{padding:12px 6px}.kg-card h2{font-size:25px;font-weight:500;margin:7px 0 12px}.kg-card-copy>p:not(.kg-style){font-size:17px;line-height:1.75;margin:0 0 16px}.kg-link,.kg-back{font-size:17px;color:#796035;text-decoration:none}.kg-breadcrumb{display:flex;flex-wrap:wrap;gap:10px;font-size:14px;margin:0 0 36px;color:#786a56}.kg-breadcrumb a{color:inherit;text-decoration:none}.kg-product{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:60px;align-items:start;direction:ltr}.kg-product>*{direction:rtl}html[dir=ltr] .kg-product>*{direction:ltr}.kg-zoom{display:block;width:100%;padding:0;border:0;background:#fff;cursor:zoom-in}.kg-zoom img{display:block;width:100%;height:auto;max-height:900px;object-fit:contain}.kg-caption{font-size:13px;line-height:1.6;text-align:center;color:#81796b;margin:16px 0}.kg-description{padding-top:30px;text-align:start}.kg-description h2{font-size:23px;font-weight:500;margin:26px 0 10px}.kg-order{border-top:1px solid #e8dfce;margin-top:30px;padding-top:10px}.kg-button{display:inline-block;border:1px solid #a78a54;background:#fff;color:#5e4824;padding:13px 24px;margin-top:12px;text-decoration:none;font-size:18px;line-height:1.5}.kg-button:hover{background:#f8f4ec}.kg-related{border-top:1px solid #e8dfce;margin-top:60px;padding-top:30px}.kg-related>h2{font-size:27px;font-weight:500;text-align:center;margin-bottom:30px}.kg-related .kg-card img{height:320px}.kg-back{display:block;text-align:center;margin-top:30px}.kg-entry{max-width:950px;margin:22px auto 35px;padding:28px;text-align:center;background:#fff;color:#29251f;border:1px solid #e8dfce}.kg-entry h2{font-size:clamp(25px,4vw,34px)!important;color:#443622!important}.kg-entry p{font-size:18px!important;line-height:1.8!important;color:#494137!important}#kg-viewer{border:0;padding:40px 12px 12px;background:#fff;width:min(95vw,1000px);max-height:94dvh}#kg-viewer::backdrop{background:#000c}#kg-viewer img{display:block;width:100%;max-height:84dvh;object-fit:contain}#kg-viewer button{position:absolute;top:2px;left:12px;background:#fff;border:0;font-size:32px;cursor:pointer}.kg-white footer{margin-top:0}a:focus-visible,button:focus-visible{outline:2px solid #96753e;outline-offset:4px}@media(max-width:900px){.kg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kg-product{gap:28px}.kg-card img{height:340px}}@media(max-width:650px){.kg-main{padding:22px 18px 50px}.kg-grid{grid-template-columns:1fr;gap:30px}.kg-card img{height:auto;max-height:620px}.kg-intro{margin-bottom:30px}.kg-product{display:flex;flex-direction:column;gap:8px}.kg-art,.kg-description{width:100%}.kg-description{padding-top:8px}.kg-breadcrumb{font-size:13px;margin-bottom:22px}.kg-related .kg-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.kg-related .kg-card img{height:160px}.kg-related .kg-card h2{font-size:16px}.kg-related .kg-card-copy>p,.kg-related .kg-link{display:none}.kg-related .kg-card-copy{padding:6px 0}.kg-entry{margin:20px 16px;padding:24px 18px}}@media(prefers-reduced-motion:reduce){.kg-card img{transition:none}}
/* Framed artwork cards and gentle motion, shared by the gallery and detail pages. */
.kg-card{border:1px solid #e4d9c7;border-radius:12px;padding:16px;background:#f3efe8;box-shadow:0 9px 26px #3a2b1917;transition:transform .3s ease,box-shadow .3s ease}.kg-card a{height:100%}.kg-card img{display:block;box-sizing:border-box;border:1px solid #e9e0d1;border-radius:5px;background:#fff;box-shadow:0 4px 14px #36291b18}.kg-card-copy{padding:18px 6px 4px}.kg-card a:hover img{transform:none}.kg-card:focus-within{box-shadow:0 16px 36px #3a2b1926}.kg-zoom{box-sizing:border-box;padding:22px;background:#f1ede6;border:1px solid #dfd3c0;border-radius:12px;box-shadow:0 12px 34px #382b1a24;transition:transform .3s ease,box-shadow .3s ease}.kg-zoom img{border:1px solid #e8dfcf;border-radius:3px;box-shadow:0 5px 18px #382b1a1f;box-sizing:border-box}.kg-card.kg-enter,.kg-art.kg-enter{animation:kg-reveal .75s cubic-bezier(.22,.61,.36,1) both;animation-delay:var(--kg-delay,0ms)}@keyframes kg-reveal{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}@media(hover:hover) and (prefers-reduced-motion:no-preference){.kg-card:hover{transform:translateY(-6px);box-shadow:0 18px 38px #3a2b1929}.kg-zoom:hover{transform:translateY(-4px);box-shadow:0 18px 42px #382b1a2c}}@media(max-width:650px){.kg-card{padding:12px}.kg-zoom{padding:14px}.kg-related .kg-card{padding:6px;border-radius:7px}.kg-related .kg-card h2{font-size:15px;line-height:1.5}}@media(prefers-reduced-motion:reduce){.kg-card,.kg-zoom,.kg-card.kg-enter,.kg-art.kg-enter{animation:none;transition:none;transform:none}}
/* One horizontal collection per style, with four designs in desktop view. */
.kg-style-section{margin:20px 0 54px;border-top:2px solid #c1a166;padding-top:20px}.kg-row-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 12px 12px}.kg-row-heading h2{font-size:clamp(25px,3vw,34px);font-weight:500;color:#6b5128;margin:0;line-height:1.4}.kg-row-controls{display:flex;gap:9px;flex-shrink:0}.kg-row-controls button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #cbb68d;border-radius:50%;background:#fff;color:#73582b;font-size:30px;cursor:pointer}.kg-row-controls button:hover{background:#f4efe5}.kg-carousel .kg-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 72px)/4);gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:16px 12px 32px;scroll-padding:12px;scrollbar-width:thin;scrollbar-color:#c3aa7b #f8f5ef}.kg-carousel .kg-card{scroll-snap-align:start;box-sizing:border-box;padding:12px;display:flex}.kg-carousel .kg-card>a{display:flex;flex-direction:column;width:100%}.kg-carousel .kg-card img{height:320px}.kg-carousel .kg-card h2{font-size:22px;line-height:1.4}.kg-carousel .kg-card-copy{flex:1;display:flex;flex-direction:column}.kg-carousel .kg-card-copy>.kg-link{margin-top:auto}.kg-carousel .kg-card-copy>p:not(.kg-style){font-size:16px;line-height:1.7}.kg-carousel .kg-card-copy>.kg-style{font-size:14px}.kg-jerusalem{min-height:90px;margin-bottom:20px}@media(max-width:1000px){.kg-carousel .kg-grid{grid-auto-columns:calc((100% - 48px)/3)}}@media(max-width:750px){.kg-carousel .kg-grid{grid-auto-columns:calc((100% - 24px)/2)}}@media(max-width:500px){.kg-carousel .kg-grid{grid-auto-columns:88%;gap:18px}.kg-carousel .kg-card img{height:390px}.kg-row-heading{margin-inline:0}.kg-row-controls button{width:38px;height:38px}.kg-carousel .kg-card h2{font-size:25px}}
/* Three large artworks, pale cards and side arrows aligned with the art. */
.kg-card{background:#fcfbf9;border-color:#eae5dc;box-shadow:0 8px 24px #3a2b1912}.kg-zoom{background:#fcfbf9;border-color:#eae5dc}.kg-card img,.kg-zoom img,#kg-viewer img{filter:brightness(1.035) saturate(.86)}.kg-card a:hover img{filter:brightness(1.035) saturate(.86)}.kg-carousel-stage{position:relative;padding-inline:58px}.kg-carousel .kg-grid{grid-auto-columns:calc((100% - 48px)/3)}.kg-carousel .kg-card img{height:400px}.kg-carousel .kg-row-controls{display:contents}.kg-carousel .kg-row-controls button{position:absolute;z-index:2;top:228px;transform:translateY(-50%);width:52px;height:76px;font-size:62px;line-height:1;border-radius:12px;background:#fff;border-color:#d9c7a3;box-shadow:0 5px 18px #4d3b201a}.kg-carousel .kg-row-controls button[data-kg-prev]{inset-inline-start:0}.kg-carousel .kg-row-controls button[data-kg-next]{inset-inline-end:0}.kg-carousel .kg-row-controls button:hover{background:#fbf8f1;box-shadow:0 7px 22px #4d3b2026}@media(max-width:900px){.kg-carousel .kg-grid{grid-auto-columns:calc((100% - 24px)/2)}}@media(max-width:650px){.kg-carousel-stage{padding-inline:36px}.kg-carousel .kg-row-controls button{width:34px;height:64px;font-size:48px;border-radius:9px}.kg-carousel .kg-grid{grid-auto-columns:100%;gap:18px;padding-inline:6px;scroll-padding:6px}.kg-carousel .kg-card img{height:390px}.kg-carousel .kg-row-controls button{top:223px}}
/* Generous even white paper margins around the complete artwork. */
.kg-card img{border:22px solid #fff;background:#fff;box-sizing:border-box;filter:brightness(1.05) saturate(.82)}.kg-card a:hover img{filter:brightness(1.05) saturate(.82)}.kg-zoom img,#kg-viewer img{border:clamp(24px,4vw,52px) solid #fff;background:#fff;box-sizing:border-box;filter:brightness(1.05) saturate(.82)}.kg-zoom{background:#fdfdfc;padding:16px}.kg-card{background:#fdfdfc;border-color:#eceae5}.kg-related .kg-card img{border-width:12px}@media(max-width:650px){.kg-card img{border-width:16px}.kg-related .kg-card img{border-width:5px}.kg-zoom img,#kg-viewer img{border-width:22px}}
/* Wide gallery with large artworks and gold title cartouches. */
.kg-white:has(.kg-carousel) .kg-main{width:100%;max-width:1920px;padding-inline:clamp(18px,2vw,44px);box-sizing:border-box}.kg-white:has(.kg-carousel) .kg-intro{max-width:850px}.kg-style-section{border-top:0;padding-top:10px;margin-top:28px}.kg-row-heading{position:relative;display:flex;justify-content:center;align-items:center;isolation:isolate;padding:0 38px 17px;margin:0 12px 25px;min-height:94px}.kg-row-heading h2{position:relative;z-index:1;display:inline-block;font-size:clamp(34px,3.2vw,52px);font-weight:500;line-height:1.3;text-align:center;color:#80602c;background:linear-gradient(180deg,#fff,#fdfaf4);border:1.5px solid #bc9b5d;border-radius:6px 6px 30px 30px;padding:12px 38px 17px;box-shadow:0 4px 13px #a98d4e16,inset 0 0 0 4px #fff;margin:0 0 -19px;max-width:100%;box-sizing:border-box}.kg-heading-gold{position:absolute;inset-inline:0;bottom:0;width:100%;height:52px;z-index:0;overflow:visible}.kg-carousel-stage{padding-inline:64px}.kg-carousel .kg-grid{scrollbar-width:none;-ms-overflow-style:none;padding-bottom:30px}.kg-carousel .kg-grid::-webkit-scrollbar{display:none;width:0;height:0}.kg-carousel .kg-card{padding:16px;border-color:#e9e3d8;border-radius:14px}.kg-carousel .kg-card img{height:clamp(420px,36vw,570px)}.kg-carousel .kg-card h2{font-size:clamp(26px,2.05vw,34px);line-height:1.4;margin-top:8px}.kg-carousel .kg-card-copy>.kg-style{font-size:16px;line-height:1.6}.kg-carousel .kg-card-copy>p:not(.kg-style){font-size:18px;line-height:1.8}.kg-carousel .kg-row-controls button{width:54px;height:82px;font-size:64px;top:calc(clamp(210px,18vw,285px) + 34px)}@media(max-width:1000px){.kg-carousel .kg-card-copy>p:not(.kg-style){font-size:17px}}@media(max-width:650px){.kg-white:has(.kg-carousel) .kg-main{padding-inline:12px}.kg-row-heading{padding-inline:12px;min-height:78px;margin-inline:0;margin-bottom:20px}.kg-row-heading h2{font-size:32px;padding:10px 22px 15px;border-radius:5px 5px 24px 24px}.kg-heading-gold{height:42px}.kg-carousel-stage{padding-inline:36px}.kg-carousel .kg-card{padding:10px}.kg-carousel .kg-card img{height:390px}.kg-carousel .kg-row-controls button{width:34px;height:66px;font-size:46px;top:223px}.kg-carousel .kg-card h2{font-size:27px}}

/* Landscape bilingual artwork: two large cards without portrait-sized blank space. */
.kg-bilingual .kg-carousel-stage{container-type:inline-size}
.kg-bilingual.kg-carousel .kg-grid{grid-auto-columns:calc((100% - 24px)/2)}
.kg-bilingual.kg-carousel .kg-card{padding:12px}
.kg-bilingual.kg-carousel .kg-card img{display:block;height:auto;aspect-ratio:3/2;object-fit:contain;border-width:10px}
.kg-bilingual.kg-carousel .kg-row-controls button{top:calc((100cqw - 96px)/6 + 28px)}
@media(max-width:650px){.kg-bilingual.kg-carousel .kg-grid{grid-auto-columns:100%}.kg-bilingual.kg-carousel .kg-card{padding:8px}.kg-bilingual.kg-carousel .kg-card img{border-width:5px}.kg-bilingual.kg-carousel .kg-row-controls button{top:calc((100cqw - 28px)/3 + 24px)}}

/* Intro ornament and a larger, two-line invitation on desktop. */
.kg-white:has(.kg-carousel) .kg-intro{max-width:1150px;margin-bottom:48px}
.kg-intro-ornament{display:block;width:min(100%,760px);height:44px;margin:16px auto 24px;overflow:visible}
.kg-intro>p:last-child{font-size:clamp(21px,1.65vw,27px);line-height:1.6;max-width:1450px;margin:0 auto;text-wrap:balance}
@media(max-width:650px){.kg-intro-ornament{height:32px;margin:12px auto 20px}.kg-intro>p:last-child{font-size:22px;line-height:1.65}}

/* English gallery intro and decorative headings stay centered. */
html[lang="en"] .kg-white .kg-intro,html[lang="en"] .kg-white .kg-intro h1,html[lang="en"] .kg-white .kg-intro p{text-align:center!important;margin-inline:auto}
html[lang="en"] .kg-white .kg-row-heading{justify-content:center}
html[lang="en"] .kg-white .kg-row-heading h2{text-align:center!important}

/* Mobile ketubah gallery: maximize the artwork while preserving the complete page. */
@media(max-width:650px){
  .kg-carousel-stage{padding-inline:24px}
  .kg-carousel .kg-grid{padding-inline:0;scroll-padding-inline:0}
  .kg-carousel .kg-card{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
  .kg-carousel .kg-card img{
    display:block;
    width:100%;
    height:auto;
    max-height:none;
    aspect-ratio:auto;
    object-fit:contain;
  }
  .kg-carousel .kg-row-controls button{
    top:calc(50vw + 6px);
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    padding:0;
    border-radius:50%;
    display:grid;
    place-items:center;
    font-size:0;
    line-height:1;
  }
  .kg-carousel .kg-row-controls button::before{
    display:block;
    font:400 30px/1 Arial,sans-serif;
    transform:translateY(-1px);
  }
  .kg-carousel .kg-row-controls button[data-kg-prev]::before{content:'›'}
  .kg-carousel .kg-row-controls button[data-kg-next]::before{content:'‹'}
}

/* Three large related designs on desktop, matching the main Ketubah gallery; two on mobile. */
@media(min-width:901px){
  .kg-white:has(.kg-related) .kg-main{width:100%;max-width:1780px;box-sizing:border-box}
  .kg-white:has(.kg-related) .kg-breadcrumb,.kg-white:has(.kg-related) .kg-product{width:100%;max-width:1240px;margin-inline:auto}
}
.kg-related{
  position:relative;
  margin-top:64px;
  padding:38px clamp(20px,4vw,54px) 34px;
  border:1px solid #dfd1b8;
  border-radius:18px;
  background:linear-gradient(145deg,#fff 0%,#fbf7ef 100%);
  box-shadow:0 14px 38px #49371912;
}
.kg-related::before{content:"";position:absolute;top:0;left:12%;right:12%;height:2px;background:linear-gradient(90deg,transparent,#b99a5e,transparent)}
.kg-related .kg-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1500px;margin-inline:auto;gap:28px}
.kg-related .kg-card[hidden]{display:none!important}
.kg-related .kg-card{border:1px solid #e4d8c5;border-radius:12px;background:#fff;padding:12px;box-shadow:0 8px 24px #3a2b1912}
.kg-related .kg-card img{height:clamp(420px,36vw,570px)}
.kg-related-carousel-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:24px auto 0}
.kg-related-carousel-controls button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #c8ae7a;border-radius:50%;background:#fff;color:#765a2d;font:400 30px/1 Arial,sans-serif;box-shadow:0 4px 14px #49371912;cursor:pointer}
.kg-related-carousel-controls button:hover{background:#f6efe2;border-color:#a88648}
.kg-related-carousel-dots{display:flex;gap:7px;align-items:center}
.kg-related-carousel-dots i{display:block;width:6px;height:6px;border-radius:50%;background:#d4c3a3;transition:transform .25s,background .25s}
.kg-related-carousel-dots i.is-active{background:#9d793d;transform:scale(1.45)}
@media(max-width:650px){
  .kg-carousel .kg-card img{padding:9px!important;border:1px solid #ded8ce!important;border-radius:2px;background:#fff!important;box-shadow:0 2px 8px #3a2b190d}
  .kg-related{margin-top:42px;padding:28px 12px 24px;border-radius:14px}
  .kg-related>h2{font-size:24px;margin:0 0 22px}
  .kg-related .kg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .kg-related .kg-card{display:block;padding:7px;border-radius:9px}
  .kg-related .kg-card[hidden]{display:none!important}
  .kg-related .kg-card img{height:190px;border-width:4px}
  .kg-related .kg-card h2{font-size:15px;line-height:1.45;margin:8px 0 2px}
  .kg-related-carousel-controls{margin-top:18px;gap:14px}
  .kg-related-carousel-controls button{width:40px;height:40px;font-size:27px}
}
@media(prefers-reduced-motion:reduce){.kg-related-carousel-dots i{transition:none}}
