/* AOF v9.7.4 — manual-only photo carousel, consistent visual identity. */
#gallery .gallery, .gallery.cms-custom-gallery{
 display:flex!important;grid-template-columns:none!important;gap:16px!important;
 width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;
 scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;
 scrollbar-width:none;-ms-overflow-style:none;align-items:stretch!important;
 padding:7px 2px 18px;direction:rtl;-webkit-overflow-scrolling:touch;
}
#gallery .gallery::-webkit-scrollbar,.gallery.cms-custom-gallery::-webkit-scrollbar{display:none}
#gallery .gallery > figure, .gallery.cms-custom-gallery > figure{
 flex:0 0 calc((100% - 48px)/4)!important;min-width:0!important;
 width:calc((100% - 48px)/4)!important;max-width:none!important;
 margin:0!important;scroll-snap-align:start;align-self:stretch;
 aspect-ratio:auto!important;height:auto!important;min-height:0!important;
 display:flex!important;flex-direction:column;position:relative;
 padding:5px 5px 0!important;overflow:hidden!important;
 border:1px solid #e4dacb!important;border-radius:19px!important;
 background:#fffaf3!important;box-shadow:0 6px 22px rgba(13,37,57,.09)!important;
 transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
 cursor:default!important;
}
#gallery .gallery > figure:hover,.gallery.cms-custom-gallery > figure:hover{
 transform:translateY(-3px)!important;box-shadow:0 14px 32px rgba(13,37,57,.16)!important;border-color:#caa05b!important
}
#gallery .gallery .aof-gallery-media,.gallery.cms-custom-gallery .aof-gallery-media{
 position:relative;width:100%;aspect-ratio:3/4;border-radius:14px;overflow:hidden;
 background:#e9e5dd;flex:none;
}
#gallery .gallery .aof-gallery-media img,.gallery.cms-custom-gallery .aof-gallery-media img{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 object-fit:contain!important;object-position:center!important;max-height:none!important;
 transition:transform .35s ease!important;transform:scale(1)!important;
 cursor:default!important;
}
@media(hover:hover){#gallery .gallery figure:hover .aof-gallery-media img,.gallery.cms-custom-gallery figure:hover .aof-gallery-media img{transform:scale(1.035)!important}}
#gallery .gallery figcaption,.gallery.cms-custom-gallery figcaption{
 position:static!important;inset:auto!important;display:block!important;z-index:auto!important;
 background:none!important;color:#102d45!important;text-shadow:none!important;
 padding:15px 13px 17px!important;margin:0!important;pointer-events:auto!important;
 min-height:86px;font-size:14px;line-height:1.65;flex:1;
}
#gallery .gallery .aof-gallery-title,.gallery.cms-custom-gallery .aof-gallery-title{
 margin:0 0 6px!important;color:#102d45!important;font-size:16px!important;font-weight:700!important;line-height:1.45!important;
}
#gallery .gallery .aof-gallery-description,.gallery.cms-custom-gallery .aof-gallery-description{
 margin:0!important;color:#657181!important;font-size:12.5px!important;line-height:1.8!important;
 display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.aof-gallery-carousel{position:relative;min-width:0;max-width:100%;}
.aof-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:1px 2px 0;direction:rtl;}
.aof-gallery-arrows{display:flex;gap:8px;direction:rtl;}
.aof-gallery-arrow{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #e7dac5;
 background:#fffaf4;border-radius:50%;color:#a4772c;box-shadow:0 2px 7px #0d25390d;cursor:pointer;font-size:23px;line-height:1;
 transition:background .2s,color .2s,border-color .2s;
}
.aof-gallery-arrow:hover:not(:disabled){background:#102d45;color:#f7e6bd;border-color:#102d45}
.aof-gallery-arrow:disabled{opacity:.32;cursor:default}
.aof-gallery-pages{display:flex;align-items:center;justify-content:center;gap:7px;flex:1}
.aof-gallery-dot{width:8px;height:8px;border:0;border-radius:50%;padding:0;background:#d6d2c9;cursor:pointer;transition:background .2s,transform .2s;}
.aof-gallery-dot[aria-current="true"]{background:#bb862e;transform:scale(1.25)}
.aof-gallery-counter{font-size:12px;color:#6b7482;direction:ltr;}
@media(max-width:1000px){#gallery .gallery > figure,.gallery.cms-custom-gallery > figure{flex-basis:calc((100% - 16px)/2)!important;width:calc((100% - 16px)/2)!important}}
@media(max-width:700px){
 #gallery .gallery,.gallery.cms-custom-gallery{gap:12px!important;scroll-padding-inline:0;padding-bottom:13px}
 #gallery .gallery > figure,.gallery.cms-custom-gallery > figure{flex:0 0 85%!important;width:85%!important;scroll-snap-align:start;}
 #gallery .gallery figcaption,.gallery.cms-custom-gallery figcaption{min-height:70px;padding:12px 12px 14px!important}
 #gallery .gallery .aof-gallery-title,.gallery.cms-custom-gallery .aof-gallery-title{font-size:15px!important}
}
@media(prefers-reduced-motion:reduce){#gallery .gallery,.gallery.cms-custom-gallery{scroll-behavior:auto!important}#gallery .gallery > figure,.gallery.cms-custom-gallery > figure,#gallery .gallery .aof-gallery-media img,.gallery.cms-custom-gallery .aof-gallery-media img{transition:none!important}}
.aof-gallery-controls[hidden]{display:none!important}
