/* Gallery-only visual refinement: rounded photo cards, pagination and lightbox. */
#gallery-items{scroll-margin-top:90px}
#gallery-items .gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:39px}
#gallery-items .gallery-card{
  appearance:none;-webkit-appearance:none;display:flex;flex-direction:column;position:relative;
  min-width:0;min-height:0;padding:0;margin:0;text-align:left;cursor:zoom-in;
  border:1px solid rgba(183,207,225,.17);border-radius:28px;overflow:hidden;
  background:#0d121c;color:#f3f8ff;box-shadow:0 18px 45px rgba(0,0,0,.11);
  transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease;
}
#gallery-items .gallery-card[hidden]{display:none!important}
#gallery-items .gallery-card:hover,#gallery-items .gallery-card:focus-visible{border-color:rgba(242,195,30,.66);transform:translateY(-4px);box-shadow:0 22px 56px rgba(0,0,0,.24)}
#gallery-items .gallery-card:focus-visible{outline:2px solid #f2c31e;outline-offset:3px}
#gallery-items .gallery-photo-wrap{display:block;width:100%;aspect-ratio:1.37;overflow:hidden;background:#1a2a34}
#gallery-items .gallery-card img{display:block;position:static;inset:auto;width:100%;height:100%;object-fit:cover;max-width:none;filter:brightness(.96) contrast(1.045) saturate(1.04);transform:scale(1);transition:transform .65s ease,filter .5s ease}
#gallery-items .gallery-card:hover img,#gallery-items .gallery-card:focus-visible img{transform:scale(1.045);filter:brightness(1.02) contrast(1.04) saturate(1.07)}
#gallery-items .gallery-card::after{display:none}
#gallery-items .gallery-info{display:flex;flex-direction:column;justify-content:center;gap:10px;width:100%;min-height:110px;padding:20px 23px 22px;background:#0e131d}
#gallery-items .gallery-kind{color:#f2c31e;font:800 11px/1.35 'DM Sans',sans-serif;letter-spacing:.22em;text-transform:uppercase}
#gallery-items .gallery-info strong{font:800 clamp(18px,1.65vw,25px)/1.22 Manrope,Arial,sans-serif;letter-spacing:-.035em;color:#f4f7fb}
#gallery-items .gallery-zoom-icon{position:absolute;top:15px;right:15px;display:grid;place-items:center;width:43px;height:43px;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(3,11,21,.74);color:#f2c31e;font-size:25px;line-height:1;opacity:0;transform:translateY(-6px);transition:opacity .25s,transform .25s}
#gallery-items .gallery-card:hover .gallery-zoom-icon,#gallery-items .gallery-card:focus-visible .gallery-zoom-icon{opacity:1;transform:translateY(0)}
.gallery-page-footer{margin-top:48px;display:flex;flex-direction:column;align-items:center;gap:24px}
.gallery-page-status{margin:0;color:#93a5b9;font-size:12px;letter-spacing:.18em;font-weight:800;text-transform:uppercase;text-align:center}
.gallery-pagination{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.gallery-pagination button{height:49px;min-width:49px;padding:0 14px;border-radius:50%;border:1px solid rgba(175,197,211,.20);background:#111a24;color:#9caabc;font:700 13px Manrope,Arial,sans-serif;cursor:pointer;transition:color .2s,border-color .2s,background .2s}
.gallery-pagination button:hover:not(:disabled),.gallery-pagination button:focus-visible{border-color:#f2c31e;color:#fff;outline-offset:2px}
.gallery-pagination button.active{background:#f2c31e;color:#08111a;border-color:#f2c31e}
.gallery-pagination button:disabled{cursor:not-allowed;opacity:.33}
.gallery-pagination button.arrow{font-size:24px;padding-bottom:3px}
body.gallery-modal-open{overflow:hidden}
.gallery-lightbox[hidden]{display:none!important}
/* Fit portrait, square, document and landscape photos inside the viewport. */
.gallery-lightbox{
  position:fixed;inset:0;z-index:22000;display:grid;place-items:center;
  width:100%;height:100vh;height:100dvh;max-height:100dvh;
  box-sizing:border-box;overflow:hidden;
  background:rgba(2,8,15,.94);color:#fff;
  padding:62px clamp(66px,6vw,105px) 26px;isolation:isolate
}
.gallery-lightbox-backdrop{position:absolute;inset:0;z-index:-1;cursor:zoom-out}
.gallery-lightbox-figure{
  position:relative;margin:0;width:min(100%,1180px);height:100%;max-height:100%;min-height:0;min-width:0;
  display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;align-items:center;gap:12px
}
.gallery-lightbox-image-wrap{
  width:100%;height:100%;min-height:0;min-width:0;
  display:flex;align-items:center;justify-content:center;overflow:hidden
}
.gallery-lightbox-image-wrap img{
  position:static!important;inset:auto!important;display:block;
  width:auto!important;height:auto!important;max-width:100%!important;
  max-height:calc(100vh - 175px)!important;max-height:calc(100dvh - 175px)!important;
  object-fit:contain!important;transform:none!important;
  border-radius:12px;filter:drop-shadow(0 20px 34px rgba(0,0,0,.5))
}
.gallery-lightbox-caption{width:min(100%,860px);display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;text-align:center}
.gallery-lightbox-caption span{font-size:11px;letter-spacing:.14em;font-weight:800;color:#f2c31e;text-transform:uppercase}
.gallery-lightbox-caption strong{font:800 clamp(15px,2vw,21px) Manrope,Arial,sans-serif}
 .gallery-lightbox-caption small{font-size:12px;color:#aabccc;white-space:nowrap}
.gallery-lightbox-original{font:700 12px Manrope,Arial,sans-serif;color:#f2c31e;text-decoration:none;white-space:nowrap;border-bottom:1px solid rgba(242,195,30,.35);padding-bottom:2px}
.gallery-lightbox-original:hover,.gallery-lightbox-original:focus-visible{color:#fff;border-bottom-color:#fff}
.gallery-lightbox button{position:absolute;z-index:2;display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(224,238,246,.23);border-radius:50%;background:rgba(18,33,45,.93);color:#fff;font-size:32px;cursor:pointer;transition:border-color .2s,color .2s,background .2s}
.gallery-lightbox button:hover,.gallery-lightbox button:focus-visible{border-color:#f2c31e;color:#f2c31e;outline-offset:2px}
.gallery-lightbox-close{top:17px;right:24px;font-size:21px!important}
.gallery-lightbox-prev{left:17px;top:50%;transform:translateY(-50%)}
.gallery-lightbox-next{right:17px;top:50%;transform:translateY(-50%)}
@media(max-width:990px){#gallery-items .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}}
@media(max-width:620px){
  #gallery-items .gallery-grid{grid-template-columns:1fr;gap:20px}
  #gallery-items .gallery-photo-wrap{aspect-ratio:1.43}
  #gallery-items .gallery-info{min-height:93px;padding:16px 19px 19px}
  #gallery-items .gallery-info strong{font-size:20px}
  #gallery-items .gallery-zoom-icon{opacity:1;transform:none;width:38px;height:38px}
  .gallery-page-footer{margin-top:38px}
  .gallery-lightbox{padding:60px 14px 80px}
  .gallery-lightbox-figure{width:100%;gap:9px}
  .gallery-lightbox-image-wrap{padding:0}
  .gallery-lightbox-image-wrap img{max-height:calc(100vh - 230px)!important;max-height:calc(100dvh - 230px)!important}
  .gallery-lightbox-prev,.gallery-lightbox-next{top:auto!important;bottom:18px!important;transform:none!important;width:42px!important;height:42px!important}
  .gallery-lightbox-prev{left:18px}.gallery-lightbox-next{right:18px}
  .gallery-lightbox-caption{padding:0 28px;flex-direction:column;gap:5px}
  .gallery-lightbox-close{right:14px;top:13px}
}
@media(max-height:500px) and (min-width:621px){
  .gallery-lightbox{padding-top:34px;padding-bottom:12px}
  .gallery-lightbox-image-wrap img{max-height:calc(100dvh - 110px)!important}
}
@media(prefers-reduced-motion:reduce){#gallery-items .gallery-card,#gallery-items .gallery-card img{transition:none!important;transform:none!important}}
