.gallery-photo-tile{position:relative}
.gallery-photo-year{top:.55rem!important;bottom:auto!important;left:.55rem!important;right:auto!important;border:1px solid rgba(255,255,255,.72)!important;background:rgba(251,248,241,.88)!important;color:#6f4934!important;box-shadow:0 3px 10px rgba(31,42,36,.18)!important}
.gallery-v33-desc-icon{position:absolute;left:.55rem;bottom:.55rem;z-index:3;display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:rgba(251,248,241,.86);color:#795238;font-size:1.15rem;box-shadow:0 2px 9px rgba(31,42,36,.16);pointer-events:none}
.gallery-v33-react-wrap{position:absolute;right:.55rem;bottom:.55rem;z-index:7}
.gallery-v33-heart{display:grid;place-items:center;width:2.25rem;height:2.25rem;padding:0;border:1px solid rgba(255,255,255,.72);border-radius:50%;background:rgba(251,248,241,.88);color:#81503d;font-size:1.55rem;line-height:1;box-shadow:0 3px 10px rgba(31,42,36,.2);cursor:pointer}
.gallery-v33-heart svg{display:block;width:1.35rem;height:1.35rem;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.gallery-v33-heart.selected{background:#dcae91;color:#713b31}
.gallery-v33-reaction-popover{position:absolute;right:0;bottom:calc(100% + .45rem);display:none;grid-template-columns:repeat(4,auto);gap:.25rem;padding:.38rem;border:1px solid rgba(161,105,66,.28);border-radius:999px;background:rgba(251,248,241,.96);box-shadow:0 10px 28px rgba(31,42,36,.22)}
.gallery-v33-reaction-popover.open{display:grid}
.gallery-v33-reaction-popover button,.gallery-v33-large-reactions button{border:0;background:transparent;border-radius:999px;cursor:pointer}
.gallery-v33-reaction-popover button{display:grid;place-items:center;width:2.35rem;height:2.35rem;padding:0;font-size:1.35rem}
.gallery-v33-reaction-popover button:hover,.gallery-v33-reaction-popover button.selected{background:#ead2bc}
.gallery-v33-lightbox-meta{display:grid;gap:.55rem;width:min(100%,760px);margin:.7rem auto 0;padding:.75rem 1rem;border-radius:16px;background:rgba(251,248,241,.9);color:#315d50}
.gallery-v33-description{margin:0;text-align:center;line-height:1.5;white-space:pre-wrap}
.gallery-v33-reaction-label{text-align:center;color:#7a746a;font-size:.86rem}
.gallery-v33-large-reactions{display:flex;justify-content:center;gap:.45rem;flex-wrap:wrap}
.gallery-v33-large-reactions button{display:flex;align-items:center;gap:.32rem;min-width:3.6rem;justify-content:center;padding:.42rem .65rem;border:1px solid rgba(161,105,66,.24);background:#fffaf2;font-size:1.28rem;color:#6f4934}
.gallery-v33-large-reactions button.selected{border-color:#bd8155;background:#ead2bc;box-shadow:0 0 0 2px rgba(189,129,85,.14)}
.gallery-v33-large-reactions strong{font-size:.92rem;font-weight:600}
.gallery-v33-toast{position:fixed;left:50%;bottom:1.5rem;z-index:11000;transform:translateX(-50%);max-width:min(90vw,520px);padding:.75rem 1rem;border-radius:999px;background:#315d50;color:#fff;text-align:center;box-shadow:0 12px 32px rgba(31,42,36,.28)}
@media(max-width:600px){
  .gallery-v33-desc-icon{width:1.8rem;height:1.8rem;font-size:1rem}
  .gallery-v33-heart{width:2rem;height:2rem;font-size:1.35rem}
  .gallery-v33-heart svg{width:1.2rem;height:1.2rem}
  .gallery-v33-reaction-popover{right:-.2rem}
  .gallery-v33-reaction-popover button{width:2.15rem;height:2.15rem;font-size:1.22rem}
  .gallery-v33-lightbox-meta{padding:.65rem .7rem}
}
@media(max-width:1000px) and (max-height:600px) and (orientation:landscape){
  .gallery-lightbox{padding:8px}
  .gallery-lightbox-card{--gallery-v33-landscape-panel:clamp(230px,32vw,300px);grid-template-columns:minmax(0,1fr) var(--gallery-v33-landscape-panel);grid-template-rows:minmax(0,1fr) auto;column-gap:10px;row-gap:6px;width:100%;height:calc(100vh - 16px);height:calc(100dvh - 16px)}
  .gallery-lightbox-card>img,.gallery-lightbox-card>video{grid-column:1;grid-row:1/3;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
  .gallery-v33-lightbox-meta{grid-column:2;grid-row:1;align-self:center;width:100%;margin:0;padding:.55rem .65rem;gap:.3rem;border-radius:14px}
  .gallery-v33-description{font-size:clamp(.9rem,2.4vw,1.15rem);line-height:1.25}
  .gallery-v33-reaction-label{font-size:.72rem}
  .gallery-v33-large-reactions{flex-wrap:nowrap;gap:.25rem}
  .gallery-v33-large-reactions button{flex:1 1 0;min-width:0;gap:.2rem;padding:.3rem .35rem;font-size:1rem}
  .gallery-v33-large-reactions strong{font-size:.78rem}
  .gallery-lightbox-card>div{grid-column:2;grid-row:2;align-self:start;gap:4px;font-size:10px}
  .gallery-lightbox-card>div span,.gallery-lightbox-card>div a{padding:5px 8px}
  .gallery-lightbox-next{right:calc(var(--gallery-v33-landscape-panel) + 14px)}
}
