@font-face {
  font-family: IRANSans;
  src: url("assets/IRANSansWeb.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: IRANSans;
  src: url("assets/IRANSansWebBold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
* { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.8 IRANSans, Tahoma, sans-serif; background: #f0eee8; color: #202526; }
.gallery-wrap { width: min(1280px, 100% - 48px); margin: auto; padding: 52px 0; }
.gallery-header { display: flex; align-items: start; gap: 16px; padding-bottom: 23px; border-bottom: 2px solid #202526; margin-bottom: 22px; }
.gallery-header img { margin-top: 7px; border-radius: 10px; }
h1,h2,p { margin: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.85rem); line-height: 1.4; }
.gallery-header p { margin-top: 8px; color: #4a5354; }
.samples { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 18px; }
.sample { border: 1px solid #c7c8be; background: #fffefa; min-width: 0; }
.sample-window { display: block; position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 1.84; background: #e8e7e2; border-bottom: 1px solid #c7c8be; }
.sample-window iframe { width: 1180px; height: 645px; border: 0; pointer-events: none; position: absolute; inset: 0 auto auto 0; transform-origin: top left; scale: calc(100cqw / 1180px); }
@supports not (scale: calc(100cqw / 1180px)) {
  .sample-window iframe { width: 200%; height: 200%; transform: scale(.5); }
}
.sample-overlay { position: absolute; inset: 0; }
.sample-info { padding: 15px 18px 18px; }
.sample-info > div { display: flex; gap: 4px 14px; align-items: baseline; flex-wrap: wrap; justify-content: space-between; }
h2 { font-size: 1.12rem; }
.english { color: #4a5354; font: .83rem/1.5 system-ui, sans-serif; }
.sample-info > p { margin-top: 4px; color: #4a5354; }
.sample-open { display: inline-block; margin-top: 8px; color: #824221; text-underline-offset: 4px; font-weight: 700; font-size: .9rem; }
a:focus-visible { outline: 3px solid #824221; outline-offset: -3px; }
@media(max-width: 700px) {
  .gallery-wrap { width: calc(100% - 28px); padding-top: 26px; }
  .samples { grid-template-columns: 1fr; }
  .gallery-header { gap: 11px; }
}
