/* ByHisWill - collections grid */
#grid{grid-template-columns:1fr;gap:14px}
@media (min-width:640px){#grid{grid-template-columns:repeat(2,1fr);gap:18px}}
@media (min-width:960px){#grid{grid-template-columns:repeat(3,1fr);gap:24px}}
@media (min-width:1500px){#grid{grid-template-columns:repeat(4,1fr)}}
#grid .tile{aspect-ratio:16/11;border-radius:22px;border:1px solid var(--line);isolation:isolate;
 background:radial-gradient(90% 80% at 80% 0,rgba(255,95,0,.28),rgba(255,95,0,0) 60%),linear-gradient(160deg,#1c1816,#0a0909);
 transition:transform .4s cubic-bezier(.2,.7,.2,1),border-color .25s,box-shadow .4s}
@media (min-width:960px){#grid .tile{aspect-ratio:4/5;border-radius:26px}}
/* no photo yet: brand watermark */
#grid .tile::before{content:"";position:absolute;inset:0;display:block;background:url(../photos/logo2.png) 50% 44%/58% auto no-repeat;opacity:.1;transform:none;transition:opacity .3s,transform .5s;color:transparent}
#grid .tile:hover::before{opacity:.2;transform:scale(1.05)}
#grid .tile.hi::before{display:none}
#grid .tile>img{transition:transform .9s cubic-bezier(.2,.7,.2,1),filter .4s;z-index:-1}
#grid .tile::after{z-index:0;background:linear-gradient(180deg,rgba(0,0,0,.35) 0,rgba(0,0,0,0) 32%,rgba(0,0,0,.2) 52%,rgba(0,0,0,.88) 100%)}
#grid .tile:hover{border-color:var(--o);box-shadow:0 22px 50px rgba(0,0,0,.45)}
#grid .tile:hover>img{transform:scale(1.07)}
#grid .tile:active{transform:scale(.985)}
/* title block */
#grid .tile .tl{left:16px;right:16px;bottom:24px;gap:12px;z-index:2;align-items:center;text-align:center}
#grid .tile b{order:2;width:100%;text-align:center;font-size:clamp(28px,8vw,36px);line-height:1;letter-spacing:-.01em;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.45)}
@media (min-width:960px){#grid .tile b{font-size:clamp(28px,2.6vw,40px)}}
#grid .tile em{order:1;width:fit-content;padding:6px 12px;border:1px solid rgba(255,255,255,.4);border-radius:99px;background:rgba(0,0,0,.35);
 -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;font:500 11px/1 var(--m);letter-spacing:.14em;text-transform:uppercase}
/* light mode: tiles without a photo follow the theme */
:root[data-theme=light] #grid .tile:not(.hi){background:radial-gradient(90% 80% at 80% 0,rgba(255,95,0,.22),rgba(255,95,0,0) 60%),linear-gradient(160deg,#fff,#e6dfd4)}
:root[data-theme=light] #grid .tile:not(.hi)::before{opacity:.14;filter:brightness(0) saturate(100%) invert(31%) sepia(98%) saturate(2800%) hue-rotate(10deg)}
:root[data-theme=light] #grid .tile:not(.hi):hover::before{opacity:.24}
:root[data-theme=light] #grid .tile:not(.hi)::after{background:none}
:root[data-theme=light] #grid .tile:not(.hi) b{color:#111;text-shadow:none}
:root[data-theme=light] #grid .tile:not(.hi) em{color:#111;border-color:rgba(0,0,0,.35);background:rgba(255,255,255,.6)}
:root[data-theme=light] #grid .tile:hover{box-shadow:0 22px 50px rgba(0,0,0,.18)}
@media (prefers-reduced-motion:reduce){#grid .tile,#grid .tile>img{transition:none}}
