[data-example][hidden], #profile-photo-note[hidden], [data-owner-link][hidden], [data-sticky-cta][data-at-contact] { display: none !important; }
.gallery-open { overflow: hidden; }

.photo-dialog {
  width: min(38rem, calc(100% - 2rem));
  max-width: 100%;
  max-height: min(92dvh, 62rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #2f2a24;
  background: #faf7f1;
  border: 1px solid #bcb09d;
  border-radius: .9rem;
  box-shadow: 0 24px 100px #19130f45;
}
.photo-dialog::backdrop { background: rgb(28 23 18 / 67%); }
.gallery-top, .gallery-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
}
.gallery-top h2, .gallery-top p, .gallery-figure, .gallery-figure p { margin: 0; }
.gallery-top h2 { font-family: var(--serif, Georgia, serif); font-size: clamp(2rem, 6vw, 3rem); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; }
.gallery-top .gallery-kicker { margin-bottom: .4rem; color: #705b43; font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
.gallery-close, .gallery-nav, .gallery-enquire, .week-button, .diary-retry { cursor: pointer; }
.gallery-close {
  width: 2.75rem;
  height: 2.75rem;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid #d0c6b8;
  color: #3f372d;
  background: transparent;
  font: 300 1.8rem/1 sans-serif;
}
.gallery-close:hover, .gallery-nav:hover { background: #e5dccd; }
.gallery-figure > img {
  display: block;
  width: 100%;
  max-height: 49dvh;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #e8e1d6;
}
.gallery-figure figcaption { padding: 1rem 1.35rem 0; }
.gallery-figure .gallery-detail { color: #65543f; font-size: .86rem; letter-spacing: .025em; font-weight: 650; }
.gallery-figure .gallery-caption { margin-top: .4rem; font-size: 1rem; line-height: 1.55; }
.gallery-controls { display: flex; align-items: center; gap: .55rem; }
.gallery-nav {
  min-height: 2.75rem;
  padding: .45rem .6rem;
  border: 1px solid #d0c6b8;
  border-radius: .4rem;
  color: #44382b;
  background: transparent;
  font: inherit;
  font-size: .9rem;
}
.gallery-count { color: #675b4d; font-size: .85rem; font-variant-numeric: tabular-nums; }
.gallery-enquire {
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid #59442d;
  border-radius: .4rem;
  color: #fffaf2;
  background: #59442d;
  font: inherit;
  font-weight: 650;
  font-size: .9rem;
}
.gallery-enquire:hover { background: #392e23; }

#diary-weeks {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .15rem 0 1.1rem;
}
.week-button {
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border: 1px solid #c6baa7;
  border-radius: 2rem;
  background: transparent;
  color: #534839;
  font: inherit;
  font-size: .9rem;
  line-height: 1.2;
}
.week-button:hover { border-color: #67513b; }
.week-button[aria-pressed="true"] { color: #fffaf2; background: #42372c; border-color: #42372c; }
.diary-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-top: 1px solid #cfc5b6;
  border-bottom: 1px solid #cfc5b6;
}
.diary-date {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 4.5rem;
  aspect-ratio: 1;
  color: #564331;
  background: #e9dfd0;
  border-radius: .35rem;
}
.diary-date span { text-transform: uppercase; font-weight: 650; font-size: .75rem; letter-spacing: .13em; }
.diary-date strong { font: 500 1.8rem/1.1 var(--serif, Georgia, serif); }
.diary-entry .diary-range { margin: 0 0 .45rem; color: #6c5945; font-size: .82rem; font-weight: 650; letter-spacing: .04em; }
.diary-entry .diary-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -.035em; line-height: 1.12; }
.diary-entry .diary-note, .diary-entry .diary-empty, .diary-entry .diary-error { margin: .5rem 0 0; line-height: 1.5; }
.diary-entry .diary-empty { color: #6a6054; font-size: .9rem; }
.diary-retry { padding: 0; border: 0; background: transparent; font: inherit; text-decoration: underline; color: inherit; }
.diary-images { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr)); gap: .65rem; }
.diary-photo { position: relative; max-width: 22rem; padding: 0; overflow: hidden; border: 0; border-radius: .5rem; background: #d9cebd; color: #fff; text-align: left; cursor: zoom-in; }
.diary-photo img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.diary-photo span { position: absolute; bottom: .5rem; left: .5rem; padding: .2rem .5rem; border-radius: .25rem; background: #2a211ce0; font-size: .82rem; font-weight: 600; }
.photo-dialog button:focus-visible, #diary-weeks button:focus-visible, .diary-photo:focus-visible { outline: 3px solid #916233; outline-offset: 3px; }
[data-form-status][data-state="error"] { color: #8b321d; }
[data-form-status][data-state="success"] { color: #3f603e; }
@media (max-width: 39rem) {
  .diary-entry { gap: .85rem; padding: 1.2rem 0; }
  .diary-date { width: 3.5rem; }
  .diary-images { grid-column: 1 / -1; }
  .gallery-top, .gallery-bottom { padding: .85rem 1rem; }
  .gallery-bottom { flex-wrap: wrap; }
  .gallery-figure figcaption { padding: .75rem 1rem 0; }
  .week-button { flex: 0 0 auto; padding-inline: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-dialog, .photo-dialog::backdrop { animation: none !important; }
}

.gallery-filter { display: flex; align-items: center; gap: .75rem; padding: 0 1.35rem .8rem; }
.gallery-filter label { color: #65543f; font-size: .87rem; font-weight: 600; }
.gallery-filter select {
  min-height: 2.6rem;
  padding: .4rem 2.1rem .4rem .7rem;
  border: 1px solid #c8bcaa;
  border-radius: .35rem;
  color: #40382e;
  background: linear-gradient(45deg, transparent 50%, #624f38 50%) right .85rem center / .34rem .34rem no-repeat,
    linear-gradient(135deg, #624f38 50%, transparent 50%) right .53rem center / .34rem .34rem no-repeat, #fffaf2;
  font: inherit;
  font-size: .9rem;
  appearance: none;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  margin-top: 1.4rem;
}
.contact-methods .contact-whatsapp { margin-bottom: .3rem; }
.contact-methods .contact-detail {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  color: #654b2d;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.contact-methods .contact-detail:hover { color: #302921; }
