.lp-wrap { box-sizing: border-box; width: 100%; padding: 4rem 3rem; background: var(--lp-bg, #121212); font-family: "Montserrat", sans-serif; }
.lp-wrap *, .lp-wrap *::before, .lp-wrap *::after { box-sizing: border-box; }
.lp-wrap .lp-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }

.lp-wrap .lp-tools { display: flex; justify-content: flex-end; gap: 0.75rem; }
.lp-wrap .lp-tools button {
  padding: 0.6rem 1.1rem; background: transparent; color: #C5A059; border: 1.5px solid #C5A059; border-radius: 8px;
  font: 700 0.8rem "Montserrat", sans-serif; text-transform: uppercase; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lp-wrap .lp-tools button:hover, .lp-wrap .lp-tools button:focus-visible { background: #C5A059; color: #121212; }

.lp-wrap details.lp-panel { background: #1F3B2C; border: 2px solid #C5A059; border-radius: 12px; interpolate-size: allow-keywords; }
.lp-wrap details.lp-panel > summary {
  display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: 1.1rem 1.5rem; cursor: pointer;
  list-style: none; color: #C5A059; font-weight: 800; font-size: 1.75rem; line-height: 1.2;
}
.lp-wrap details.lp-panel > summary::-webkit-details-marker { display: none; }
.lp-wrap details.lp-panel > summary:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -4px; border-radius: 10px; }
.lp-wrap .lp-name { flex: 1; }
.lp-wrap .lp-count { font-size: 0.8rem; font-weight: 500; color: #FFFFFF; opacity: .8; }
.lp-wrap .lp-chev { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: #C5A059; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.lp-wrap details.lp-panel[open] .lp-chev { transform: rotate(180deg); }

@supports selector(::details-content) {
  .lp-wrap details.lp-panel::details-content { block-size: 0; overflow: clip; transition: block-size .3s ease, content-visibility .3s ease allow-discrete; }
  .lp-wrap details.lp-panel[open]::details-content { block-size: auto; }
}

.lp-wrap .lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; padding: 0 1.5rem 1.5rem; }
.lp-wrap .lp-item { display: block; overflow: hidden; border-radius: 8px; border: 1px solid rgba(197,160,89,.4); background: #121212; line-height: 0; transition: border-color .2s ease; }
.lp-wrap .lp-item:hover { border-color: #C5A059; }
.lp-wrap .lp-item:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.lp-wrap .lp-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #1F3B2C; transition: transform .3s ease; }
.lp-wrap .lp-item:hover img { transform: scale(1.04); }
.lp-wrap .lp-grid.lp-square .lp-item img { aspect-ratio: 1 / 1; }

.lp-wrap dialog.lp-box { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,10,.95); color: #FFFFFF; }
.lp-wrap dialog.lp-box[open] { display: flex; align-items: center; justify-content: center; }
.lp-wrap .lp-box figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: 92vw; }
.lp-wrap .lp-box figure img { display: block; width: auto; height: auto; max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lp-wrap .lp-box figcaption { font: 500 0.95rem "Montserrat", sans-serif; color: #FFFFFF; text-align: center; }
.lp-wrap .lp-box .lp-nav {
  position: absolute; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: #121212; border: 1.5px solid #C5A059; border-radius: 50%; transition: background-color .2s ease;
}
.lp-wrap .lp-box .lp-nav svg { width: 22px; height: 22px; fill: none; stroke: #C5A059; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lp-wrap .lp-box .lp-nav:hover, .lp-wrap .lp-box .lp-nav:focus-visible { background: #1F3B2C; }
.lp-wrap .lp-box .lp-close { top: 1rem; right: 1rem; }
.lp-wrap .lp-box .lp-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lp-wrap .lp-box .lp-next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 767px) {
  .lp-wrap { padding: 2.5rem 1rem; }
  .lp-wrap details.lp-panel > summary { padding: 1rem 1.1rem; font-size: 1.4rem; min-height: 56px; }
  .lp-wrap .lp-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; padding: 0 1.1rem 1.1rem; }
  .lp-wrap .lp-tools { justify-content: stretch; }
  .lp-wrap .lp-tools button { flex: 1; }
  .lp-wrap .lp-box .lp-prev, .lp-wrap .lp-box .lp-next { top: auto; bottom: 1.25rem; transform: none; }
  .lp-wrap .lp-box .lp-prev { left: 1.25rem; }
  .lp-wrap .lp-box .lp-next { right: 1.25rem; }
  .lp-wrap .lp-box figure img { max-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-wrap details.lp-panel::details-content, .lp-wrap .lp-chev, .lp-wrap .lp-item img { transition: none; }
  .lp-wrap .lp-item:hover img { transform: none; }
}
