.ap-gallery-page{--gold:#C9A84D;background:var(--dark,#141414);color:var(--white,#fff);font-family:var(--font-body,'Montserrat',sans-serif);}
.ap-gallery-page *{box-sizing:border-box;}
.ap-gallery-page .container{width:min(1240px,calc(100% - 48px));margin-inline:auto;}
.ap-gallery-hero{background:var(--gold);color:#15130e;padding:calc(var(--nav-h,100px) + 64px) 0 70px;}
.ap-gallery-hero .section-title{font-family:var(--font-display,'Bebas Neue',sans-serif);font-size:clamp(64px,9vw,110px);line-height:1;letter-spacing:.035em;font-weight:400;margin:0 0 20px;color:#15130e;text-transform:uppercase;}
.ap-gallery-hero p{font-size:18px;line-height:1.7;max-width:560px;margin:0;color:#382f1b;}
.ap-gallery-section{padding:80px 0;}
.ap-gallery-tools{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:36px;}
.ap-gallery-total{font-size:14px;line-height:1.5;color:#c4c4c4;margin:0;}
.ap-gallery-total strong{color:var(--gold);font-weight:600;}
.ap-gallery-search{display:flex;align-items:center;gap:14px;color:#ddd;}
.ap-gallery-search input{appearance:none;width:260px;max-width:100%;border:1px solid #595959;border-radius:6px;padding:13px 16px;background:#242424;color:#fff;font:inherit;font-size:14px;}
.ap-gallery-search input::placeholder{color:#b9b9b9;}
.ap-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
.ap-gallery-card{background:#383838;border:1px solid transparent;border-radius:10px;overflow:hidden;min-width:0;transition:border-color .25s ease,background-color .25s ease;}
.ap-gallery-card:hover{border-color:var(--gold);background:#3f3f3f;}
.ap-gallery-image{display:block;position:relative;border:0;border-radius:0;background:#171717;width:100%;padding:0;cursor:zoom-in;aspect-ratio:16/9;overflow:hidden;}
.ap-gallery-image img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .4s ease;}
.ap-gallery-image:hover img{transform:scale(1.025);}
.ap-gallery-zoom{position:absolute;right:12px;bottom:12px;background:#151515;color:#f0ddb0;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;}
.ap-gallery-card-content{padding:24px;}
.ap-gallery-card h2{font-family:var(--font-display,'Bebas Neue',sans-serif);font-size:28px;line-height:1.15;font-weight:400;letter-spacing:.035em;margin:0 0 18px;color:#fff;}
.ap-gallery-link{display:inline-flex;align-items:center;gap:9px;color:var(--gold);font-size:11px;line-height:1.5;font-weight:600;text-transform:uppercase;letter-spacing:.12em;text-decoration:none;}
.ap-gallery-link:hover{text-decoration:underline;text-underline-offset:5px;}
.ap-gallery-page button:focus-visible,.ap-gallery-page a:focus-visible,.ap-gallery-page input:focus-visible{outline:2px solid var(--gold);outline-offset:5px;}
.ap-gallery-empty{color:#c4c4c4;padding:48px 0;text-align:center;}
.ap-gallery-page [hidden]{display:none!important;}
.ap-gallery-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:50px 70px;background:rgba(10,10,10,.98);border:0;color:white;z-index:999999;}
.ap-gallery-dialog::backdrop{background:rgba(0,0,0,.85);}
.ap-gallery-viewer{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;}
.ap-gallery-full{max-width:100%;max-height:calc(100dvh - 190px);object-fit:contain;}
.ap-gallery-caption{text-align:center;}
.ap-gallery-caption p{margin:0 0 10px;font-size:16px;line-height:1.4;}
.ap-gallery-close,.ap-gallery-prev,.ap-gallery-next{position:absolute;display:grid;place-items:center;width:44px;height:44px;background:#303030;color:#fff;border:1px solid #69604a;border-radius:50%;cursor:pointer;}
.ap-gallery-close{right:20px;top:20px;}
.ap-gallery-prev{left:15px;top:calc(50% - 22px);}
.ap-gallery-next{right:15px;top:calc(50% - 22px);}
.ap-gallery-dialog button:focus-visible,.ap-gallery-dialog a:focus-visible{outline:2px solid #C9A84D;outline-offset:5px;}
@media(max-width:1000px){.ap-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.ap-gallery-page .container{width:calc(100% - 36px);}.ap-gallery-hero{padding-top:calc(var(--nav-h,80px) + 42px);padding-bottom:48px;}.ap-gallery-hero p{font-size:16px;}.ap-gallery-section{padding:48px 0;}.ap-gallery-tools{align-items:stretch;flex-direction:column;gap:18px;}.ap-gallery-search{flex-direction:column;align-items:flex-start;gap:10px;}.ap-gallery-search input{width:100%;}.ap-gallery-grid{grid-template-columns:1fr;gap:22px;}.ap-gallery-dialog{padding:64px 16px 100px;}.ap-gallery-full{max-height:calc(100dvh - 250px);}.ap-gallery-prev,.ap-gallery-next{top:auto;bottom:22px;}.ap-gallery-prev{left:calc(50% - 56px);}.ap-gallery-next{right:calc(50% - 56px);}}
@media(prefers-reduced-motion:reduce){.ap-gallery-page *{transition:none!important;}}

/* Image-only gallery: no event-card chrome or metadata. */
.ap-gallery-hero{background:var(--dark,#141414);padding-bottom:36px;color:var(--gold);}
.ap-gallery-hero .section-title{color:var(--gold);font-size:clamp(60px,8vw,96px);margin:0;}
.ap-gallery-section{padding-top:16px;}
.ap-gallery-grid{display:block;columns:3;column-gap:16px;}
.ap-gallery-card{break-inside:avoid;margin:0 0 16px;background:none;border:0;border-radius:8px;overflow:hidden;}
.ap-gallery-card:hover{background:none;border:0;}
.ap-gallery-image{aspect-ratio:auto;background:none;}
.ap-gallery-image img{height:auto;object-fit:contain;}
.ap-gallery-image:hover img{transform:scale(1.025);}
.ap-gallery-zoom{opacity:0;transition:opacity .2s ease;}
.ap-gallery-image:hover .ap-gallery-zoom,.ap-gallery-image:focus-visible .ap-gallery-zoom{opacity:1;}
@media(max-width:1000px){.ap-gallery-grid{columns:2;}}
@media(max-width:600px){.ap-gallery-grid{columns:1;}.ap-gallery-hero{padding-bottom:28px;}.ap-gallery-section{padding-top:12px;}}

/* Photographic composition: one large opening frame and an asymmetric mosaic. */
.ap-gallery-page{background:#111210;}
.ap-gallery-page .container{width:min(1440px,calc(100% - 72px));}
.ap-gallery-hero{padding-top:calc(var(--nav-h,100px) + 56px);padding-bottom:44px;background:#111210;}
.ap-gallery-hero .section-title{font-size:clamp(84px,13vw,184px);letter-spacing:.025em;line-height:.85;color:#C9A84D;}
.ap-gallery-section{padding:0 0 96px;}
.ap-gallery-grid{display:grid;columns:auto;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;grid-auto-rows:clamp(180px,20vw,280px);gap:14px;}
.ap-gallery-card{grid-column:span 4;margin:0;border-radius:4px;isolation:isolate;}
.ap-gallery-card:first-child{grid-column:span 8;grid-row:span 2;}
.ap-gallery-card:nth-child(6),.ap-gallery-card:nth-child(7){grid-column:span 6;}
.ap-gallery-card:nth-child(10){grid-column:span 4;grid-row:span 2;}
.ap-gallery-card:nth-child(11),.ap-gallery-card:nth-child(12){grid-column:span 8;}
.ap-gallery-image{height:100%;width:100%;overflow:hidden;}
.ap-gallery-image img{height:100%;width:100%;object-fit:cover;transform:scale(1.002);transition:transform .65s cubic-bezier(.16,1,.3,1),filter .4s ease;}
.ap-gallery-image:hover img{transform:scale(1.045);filter:brightness(.9);}
.ap-gallery-zoom{right:18px;bottom:18px;width:42px;height:42px;background:#f4f0e6;color:#171712;transform:translateY(6px);transition:opacity .2s ease,transform .25s ease;}
.ap-gallery-image:hover .ap-gallery-zoom,.ap-gallery-image:focus-visible .ap-gallery-zoom{transform:translateY(0);}
.ap-gallery-dialog{background:#111210;padding:60px 80px;}
.ap-gallery-full{max-height:calc(100dvh - 150px);border-radius:3px;}
.ap-gallery-caption p{color:#c9c5b9;font-size:12px;letter-spacing:.12em;}
.ap-gallery-close,.ap-gallery-prev,.ap-gallery-next{background:#272823;border-color:#4c4b40;transition:background .2s ease;}
.ap-gallery-dialog button:hover{background:#4b4430;}
@media(min-width:1600px){.ap-gallery-grid{gap:18px;}}
@media(max-width:900px){
 .ap-gallery-page .container{width:calc(100% - 40px);}
 .ap-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(180px,31vw,280px);gap:12px;}
 .ap-gallery-card,.ap-gallery-card:nth-child(n){grid-column:span 1;grid-row:span 1;}
 .ap-gallery-card:first-child{grid-column:span 2;grid-row:span 2;}
 .ap-gallery-card:nth-child(6){grid-row:span 2;}
 .ap-gallery-card:nth-child(12){grid-column:span 2;}
}
@media(max-width:600px){
 .ap-gallery-page .container{width:calc(100% - 28px);}
 .ap-gallery-hero{padding-top:calc(var(--nav-h,80px) + 38px);padding-bottom:30px;}
 .ap-gallery-hero .section-title{font-size:24vw;}
 .ap-gallery-grid{grid-auto-rows:clamp(148px,42vw,230px);gap:9px;}
 .ap-gallery-card{border-radius:3px;}
 .ap-gallery-card:first-child{grid-row:span 1;aspect-ratio:auto;}
 .ap-gallery-dialog{padding:70px 14px 100px;}
 .ap-gallery-full{max-height:calc(100dvh - 210px);}
 .ap-gallery-zoom{width:32px;height:32px;right:10px;bottom:10px;}
 .ap-gallery-section{padding-bottom:48px;}
}
@media(prefers-reduced-motion:reduce){.ap-gallery-page *{transition:none!important;}.ap-gallery-image:hover img{transform:none;}}

/* Each event keeps its own photographic story and lightbox sequence. */
.ap-gallery-album{margin:0 0 80px;scroll-margin-top:130px;}
.ap-gallery-album:last-child{margin-bottom:0;}
.ap-gallery-album-header{display:flex;justify-content:space-between;align-items:end;gap:24px;margin:0 0 24px;}
.ap-gallery-album-title{font-family:var(--font-display,'Bebas Neue',sans-serif);font-weight:400;font-size:clamp(32px,4vw,56px);line-height:1.1;letter-spacing:.035em;color:#fff;margin:0;}
.ap-gallery-album-count{color:#bdb9ad;font-size:12px;line-height:1.5;white-space:nowrap;margin:0 0 4px;}
.ap-gallery-album-count span{display:block;color:var(--gold);font-size:10px;letter-spacing:.1em;text-transform:uppercase;}
.ap-gallery-album-nav{display:flex;flex-wrap:wrap;gap:10px 28px;margin:0 0 48px;}
.ap-gallery-album-nav a{color:#c5c2b8;font-size:13px;line-height:1.7;text-decoration:none;padding:6px 0;}
.ap-gallery-album-nav a:hover{color:var(--gold);}
@media(max-width:600px){.ap-gallery-album{margin-bottom:48px;}.ap-gallery-album-header{gap:16px;margin-bottom:18px;}.ap-gallery-album-title{font-size:34px;}.ap-gallery-album-nav{gap:6px 20px;margin-bottom:32px;}.ap-gallery-album-count{font-size:11px;}}

.ap-gallery-more{display:flex;align-items:center;justify-content:center;gap:10px;margin:28px auto 0;padding:14px 26px;background:transparent;color:var(--gold);border:1px solid #716039;border-radius:6px;font:inherit;font-size:13px;cursor:pointer;transition:background-color .2s ease;}
.ap-gallery-more:hover{background:rgba(201,168,77,.1);}
.ap-gallery-more span{color:#c4bdab;}

.ap-gallery-tabs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#70603a transparent;padding:2px 2px 14px;margin:0 0 34px;}
.ap-gallery-tab{flex:0 0 auto;min-height:48px;padding:12px 24px;border:1px solid #48473f;border-radius:6px;background:#22231f;color:#d5d2c8;font:inherit;font-size:14px;line-height:1.5;cursor:pointer;transition:color .2s ease,background-color .2s ease,border-color .2s ease;}
.ap-gallery-tab:hover{border-color:var(--gold);color:#fff;}
.ap-gallery-tab[aria-selected="true"]{background:var(--gold);border-color:var(--gold);color:#16150f;}
.ap-gallery-album[role="tabpanel"]{margin-bottom:0;}
.ap-gallery-album[role="tabpanel"]:focus-visible{outline:2px solid var(--gold);outline-offset:8px;}
@media(max-width:600px){.ap-gallery-tabs{margin-bottom:26px;gap:8px;}.ap-gallery-tab{padding:11px 18px;min-height:46px;font-size:13px;}}
@media(prefers-reduced-motion:reduce){.ap-gallery-tab{transition:none;}}

/* Mobile gallery composition and touch controls. */
@media(max-width:600px){
 .ap-gallery-page .container{width:calc(100% - 32px);}
 .ap-gallery-hero{padding-top:calc(var(--nav-h,80px) + 28px);padding-bottom:26px;}
 .ap-gallery-hero .section-title{font-size:clamp(68px,22vw,116px);line-height:.95;}
 .ap-gallery-tabs{margin:0 -16px 28px;padding:3px 16px 14px;gap:8px;scroll-padding-inline:16px;scroll-snap-type:x proximity;}
 .ap-gallery-tab{min-height:48px;padding:12px 19px;border-radius:6px;font-size:13px;scroll-snap-align:start;}
 .ap-gallery-album-header{align-items:center;gap:12px;margin-bottom:18px;}
 .ap-gallery-album-title{font-size:clamp(28px,8vw,40px);line-height:1.1;overflow-wrap:anywhere;min-width:0;}
 .ap-gallery-album-count{flex-shrink:0;font-size:11px;}
 .ap-gallery-album-count span{font-size:8px;letter-spacing:.04em;}
 .ap-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;grid-auto-flow:row;gap:10px;}
 .ap-gallery-card,.ap-gallery-card:nth-child(n){grid-column:span 1;grid-row:span 1;aspect-ratio:4/5;border-radius:6px;}
 .ap-gallery-card:first-child,.ap-gallery-card:nth-child(6n){grid-column:1/-1;aspect-ratio:3/2;}
 .ap-gallery-image img{object-fit:cover;}
 .ap-gallery-zoom{opacity:1;transform:none;width:30px;height:30px;right:9px;bottom:9px;background:rgba(20,20,18,.82);color:#f2e3b9;}
 .ap-gallery-zoom svg{width:15px;height:15px;}
 .ap-gallery-more{width:100%;min-height:48px;margin-top:24px;padding:13px 20px;border-radius:6px;}
 .ap-gallery-dialog{padding:calc(env(safe-area-inset-top,0px) + 72px) 12px calc(env(safe-area-inset-bottom,0px) + 100px);}
 .ap-gallery-full{width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 230px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));object-fit:contain;}
 .ap-gallery-close{top:calc(env(safe-area-inset-top,0px) + 16px);right:16px;width:48px;height:48px;}
 .ap-gallery-prev,.ap-gallery-next{width:48px;height:48px;bottom:calc(env(safe-area-inset-bottom,0px) + 20px);}
 .ap-gallery-prev{left:calc(50% - 60px);}.ap-gallery-next{right:calc(50% - 60px);}
 .ap-gallery-caption p{font-size:11px;letter-spacing:.03em;max-width:85vw;line-height:1.6;overflow-wrap:anywhere;}
}
@media(max-width:360px){
 .ap-gallery-page .container{width:calc(100% - 24px);}
 .ap-gallery-album-header{align-items:flex-start;flex-direction:column;gap:8px;}
 .ap-gallery-album-count span{display:inline;margin-left:10px;}
}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
 .ap-gallery-dialog{padding:16px 72px;}
 .ap-gallery-full{max-height:calc(100dvh - 65px);}
 .ap-gallery-viewer{gap:8px;}
 .ap-gallery-prev,.ap-gallery-next{top:calc(50% - 24px);bottom:auto;}
 .ap-gallery-prev{left:12px;}.ap-gallery-next{right:12px;}
}

/* Shortcode embeds: the gallery sits inside any page's content area. */
.ap-gallery-embed{padding:clamp(28px,4vw,56px) 0;margin:0 0 1.5em;}
.ap-gallery-embed + .ap-gallery-embed{margin-top:0;}
