/* Gallery v1. Source: supplied page-gallery.php.
   Approved AmanDagat palette; all selectors scoped to this page. */
body.amandagat-gallery {
  --ink: #0c2340;
  --deep: #0c2340;
  --night: #0c2340;
  --limewash: #f4f8f9;
  --sand: #fff;
  --brass: #14549e;
  --brass-light: #d6a8a8;
  --gold: #d6a8a8;
  --white: #fff;
  background: #fff;
  color: #0c2340;
}
/* The existing header, logo, navigation and footer retain their structure. */
body.amandagat-gallery .util-strip { background: #f4f8f9; border-color: #ccd6df; }
body.amandagat-gallery .util-strip a { color: #0c2340; }
body.amandagat-gallery .util-strip a:hover { color: #14549e; }
body.amandagat-gallery .util-strip > span { color: #14549e !important; }
body.amandagat-gallery #nav.solid { background: rgba(255,255,255,.98); }
body.amandagat-gallery #nav .nav-dd-menu { background: #0c2340; border-color: #ccd6df; }
body.amandagat-gallery footer.starry { background: #0c2340; color: #fff; }
body.amandagat-gallery footer .fg h4 { color: #d6a8a8; }
body.amandagat-gallery .btn-brass { background: #14549e; color: #fff !important; border: 1px solid #14549e; box-shadow: none; }
body.amandagat-gallery .btn-brass:hover { background: #0c2340; border-color: #0c2340; box-shadow: none; }
body.amandagat-gallery :focus-visible { outline: 3px solid #14549e; outline-offset: 5px; }

#amandagat-gallery {
  --night: #0c2340;
  --deep: #0c2340;
  --brass-light: #d6a8a8;
  font-size: 17px;
  line-height: 1.7;
}
#amandagat-gallery :is(h1,h2,h3) { font-weight: 400; letter-spacing: -.025em; }
#amandagat-gallery .pgx-wrap { max-width: 1180px; }
#amandagat-gallery .pgx-section { padding: 88px max(24px,5vw); }
#amandagat-gallery .pgx-eyebrow { font-size: 12px; letter-spacing: .2em; }

/* One uninterrupted hero, including the original stars and approved cue. */
#amandagat-gallery .pgx-head { min-height: 560px; padding: 186px 24px 110px; background: #0c2340; color: #fff; }
#amandagat-gallery .pgx-head .pgx-wrap { position: relative; z-index: 1; }
#amandagat-gallery .pgx-head h1 { max-width: 1040px; margin-inline: auto; font-size: clamp(52px,7vw,92px); line-height: 1.08; color: #fff; }
#amandagat-gallery .pgx-head h1 em { color: #d6a8a8; }
#amandagat-gallery .pgx-head .sub { max-width: 600px; color: #e6eef4; opacity: 1; font-size: 18px; }
#amandagat-gallery .scroll-cue { border-width: 1px; }

/* Gallery v1.1: 36 photographs in flowing rows, with the original order preserved. */
#amandagat-gallery .galx { background:#f4f8f9; padding:64px 0 0; }
#amandagat-gallery .galpage-grid { display:block; columns:auto; max-width:1228px; margin:0 auto; padding:0 24px; opacity:1; visibility:visible; }
#amandagat-gallery .gallery-row { display:flex; align-items:flex-start; gap:26px; margin-bottom:38px; }
#amandagat-gallery .gallery-row:last-child { margin-bottom:0; }
#amandagat-gallery .gallery-row-portraits { max-width:960px; margin-inline:auto; }
#amandagat-gallery .galpage-grid .gal-item { display:block; flex:var(--photo-ratio,1) 1 0px; min-width:0; width:auto; margin:0; break-inside:avoid; opacity:1; visibility:visible; background:transparent; }
#amandagat-gallery .gal-item[data-frame="curve"] .galx-ph { border-radius:48% 48% 6px 6px / 14% 14% 6px 6px; }
#amandagat-gallery .galx-ph { background:#e5eef5; border-radius:6px; box-shadow:none; }
#amandagat-gallery .galx-ph img { display:block; width:100%; height:auto; opacity:1; visibility:visible; }
#amandagat-gallery .gal-caption { padding:11px 2px 3px; color:#44515d; font:400 14px/1.5 var(--body); letter-spacing:.01em; }
#amandagat-gallery .gal-item:focus-visible { outline:2px solid #14549e; outline-offset:6px; border-radius:6px; }

/* The existing enlarged-photo view, retaining its original controls. */
#amandagat-gallery .lightbox { background:rgba(12,35,64,.96); z-index:300; padding:40px 88px 90px; }
#amandagat-gallery .lightbox img { width:auto; height:auto; max-width:min(1100px,calc(100vw - 176px)); max-height:calc(100vh - 150px); border-radius:6px; box-shadow:none; }
#amandagat-gallery .lightbox .cap { bottom:30px; padding:0 88px; color:#fff; font-size:15px; letter-spacing:.02em; text-transform:none; opacity:1; }
#amandagat-gallery .lb-nav { color:#fff; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.5); }
#amandagat-gallery .lb-nav:hover { background:#14549e; }
#amandagat-gallery .lightbox :focus-visible { outline-color:#d6a8a8; }

/* Original closing copy and original booking destination. */
#amandagat-gallery .galx-cta { margin:72px 0 0; padding:94px 24px; background:#0c2340; color:#fff; }
#amandagat-gallery .galx-cta h2 { max-width:760px; margin:0 auto 32px; color:#fff; font-size:clamp(36px,4.4vw,56px); line-height:1.13; }
#amandagat-gallery .galx-cta h2 em { color:#d6a8a8; }
#amandagat-gallery .galx-cta .btn { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:15px 28px; border-radius:6px; font-size:12px; line-height:1.4; letter-spacing:.1em; background:#d6a8a8; border-color:#d6a8a8; color:#0c2340 !important; }
#amandagat-gallery .galx-cta .btn:hover { background:#fff; border-color:#fff; transform:none; }
#amandagat-gallery .galx-cta :focus-visible { outline-color:#fff; }

@media(max-width:1080px) {
  body.amandagat-gallery #nav ul.open { background:#fff; }
  body.amandagat-gallery #nav .nav-dd-menu { background:transparent; }
  body.amandagat-gallery #nav ul.open :is(a,.nav-dd-btn) { color:#0c2340 !important; }
  body.amandagat-gallery #nav ul.open .btn-brass { color:#fff !important; }
  #amandagat-gallery .gallery-row { gap:20px; }
  #amandagat-gallery .gallery-row[data-count="4"] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:880px) {
  /* Keep the source's mobile fail-safe: no hidden photos or JS layout dependency. */
  #amandagat-gallery .galx { padding-top:38px; }
  #amandagat-gallery .galpage-grid { columns:auto !important; display:block !important; max-width:760px; padding:0 24px; }
  #amandagat-gallery .gallery-row,
  #amandagat-gallery .gallery-row[data-count="4"] { display:block; margin:0; max-width:none; }
  #amandagat-gallery .galpage-grid .gal-item { display:block !important; width:100% !important; margin:0 0 26px !important; opacity:1 !important; visibility:visible !important; transform:none !important; }
  #amandagat-gallery .galx-ph img { cursor:default; }
  #amandagat-gallery .gal-item:hover .galx-ph img,
  #amandagat-gallery .gal-item:focus .galx-ph img { transform:none; }
  #amandagat-gallery .galx-cta { margin-top:40px; padding-block:72px; }
}
@media(max-width:560px) {
  #amandagat-gallery .pgx-head { min-height:530px; padding:148px 22px 100px; }
  #amandagat-gallery .pgx-head h1 { font-size:clamp(43px,10.5vw,58px); }
  #amandagat-gallery .pgx-head .sub { font-size:17px; }
  #amandagat-gallery .galpage-grid { padding:0 22px; }
  #amandagat-gallery .gal-caption { font-size:14px; }
  #amandagat-gallery .galx-cta { padding:64px 22px; }
  #amandagat-gallery .galx-cta h2 { font-size:36px; }
}
@media(prefers-reduced-motion:reduce) {
  #amandagat-gallery .pgx-stars i { animation:none; }
  #amandagat-gallery .galx-ph img { transition:none; transform:none !important; }
  #amandagat-gallery .btn { transition:none; }
}
