.gallery-archive-v208b {
  padding: clamp(20px, 4vw, 56px) 0 clamp(44px, 7vw, 90px);
  background: #fffaf3;
}
.gallery-archive-v208b__inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.gallery-archive-v208b__head { margin-bottom: 22px; }
.gallery-archive-v208b__head h1 {
  margin: 0 0 10px;
  max-width: 16ch;
  text-wrap: balance;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.gallery-archive-v208b__head p { margin: 0; color: #665749; }
.gallery-archive-v208b__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
.gallery-archive-v208b__filter {
  appearance: none;
  border: 1px solid rgba(105, 70, 34, .24);
  border-radius: 999px;
  background: #fff;
  color: #21160f;
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  scroll-margin-top: calc(var(--header, 100px) + 22px);
}
.gallery-archive-v208b__filter[aria-pressed="true"] { background: #6c451c; border-color: #6c451c; color: #fff; }
.gallery-archive-v208b__count { min-height: 1.5em; margin: 0 0 12px; color: #665749; font-size: .9rem; }
.gallery-archive-v208b__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery-archive-v208b__card {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  background: #eadfce;
  cursor: zoom-in;
}
.gallery-archive-v208b__card img { transition: transform .24s ease; }
.gallery-archive-v208b__card[data-category="banketi"] img { object-position: center 54%; }
@media (hover: hover) {
  .gallery-archive-v208b__card:hover img { transform: scale(1.025); }
}
.gallery-archive-v208b :is(button):focus-visible { outline: 3px solid #aa702e; outline-offset: 3px; }
.gallery-archive-v208b [hidden],
.gallery-archive-v208b__card[data-beyond-preview] { display: none; }
.gallery-archive-v208b__actions { display: flex; justify-content: center; margin-top: 24px; }
@media (max-width: 920px) {
  .gallery-archive-v208b__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .gallery-archive-v208b__inner { width: calc(100% - 24px); }
  .gallery-archive-v208b__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery-archive-v208b__card { border-radius: 12px; }
  .gallery-archive-v208b__filter { padding-inline: 10px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-archive-v208b__card img { transition: none; }
}

html:has(.am-inline-gallery[open]) { overflow: hidden; }
dialog.am-inline-gallery {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 32px));
  max-width: none;
  height: min(90dvh, 960px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #d8c8b3;
  border-radius: 22px;
  background: #fffaf3;
  color: #17100c;
  overscroll-behavior: contain;
  overflow: auto;
}
.am-inline-gallery::backdrop { background: rgb(23 16 12 / 64%); }
.am-inline-gallery__bar {
  position: sticky;
  z-index: 1;
  top: 0;
  display: grid;
  place-items: center;
  min-height: 66px;
  padding: 8px 64px;
  border-bottom: 1px solid #e8dccb;
  background: #fffaf3;
}
.am-inline-gallery .am-inline-gallery__bar h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
}
.am-inline-gallery__close {
  position: absolute;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d8c8b3;
  border-radius: 50%;
  background: #fff;
  color: #21160f;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.am-inline-gallery .gallery-archive-v208b { padding: clamp(16px, 3vw, 30px) 0 34px; }
.am-inline-gallery .gallery-archive-v208b__filters { justify-content: center; }
.am-inline-gallery .gallery-archive-v208b__count { text-align: center; }
.am-inline-gallery :is(button):focus-visible {
  outline: 3px solid #aa702e;
  outline-offset: 3px;
}
body:has(.am-inline-gallery[open]) #am1co-photo-viewer :is(.pswp__button--p43-original, .p13-pending a) { display: none; }
@media (max-width: 620px) {
  dialog.am-inline-gallery { width: calc(100% - 12px); height: calc(100dvh - 12px); border-radius: 16px; }
  .am-inline-gallery__bar { min-height: 58px; }
  .am-inline-gallery__close { inset-inline-end: 9px; }
}

@media (scripting: enabled) {
  .gallery-archive-v208b[aria-labelledby="gallery-photo-heading"] .gallery-archive-v208b__filters[hidden] {
    display: flex !important;
    visibility: hidden;
  }
  .gallery-archive-v208b[aria-labelledby="gallery-photo-heading"] .gallery-archive-v208b__count[hidden] {
    display: block !important;
    visibility: hidden;
  }
}
