/* Scoped styles: shared pages and the existing site navigation are not affected. */
.e5-looks, .e5-lightbox, .e5-looks *, .e5-lightbox * { box-sizing: border-box; }
.e5-looks { display: block; width: 100%; max-width: none; padding: 40px 3% 0; margin: 0; color: #111; font-family: Arial, "Helvetica Neue", "メイリオ", sans-serif; }
.e5-looks__title { margin: 0 0 23px; padding: 0; text-align: center; line-height: 1; }
.e5-looks__title img { display: inline-block; width: 302px; max-width: 100%; height: auto; }
.e5-looks__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 32px; margin: 0 0 32px; }
.e5-looks__tab { appearance: none; background: none; color: #666; padding: 8px 0 11px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; font: 12px/1.3 Arial, sans-serif; letter-spacing: .09em; cursor: pointer; }
.e5-looks__tab[aria-selected="true"] { color: #111; border-bottom-color: #111; }
.e5-looks__tab:hover { color: #111; }
.e5-looks__panel[hidden] { display: none !important; }
.e5-looks__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.e5-looks__item { margin: 0; padding: 0; min-width: 0; }
.e5-looks__link { display: block; overflow: hidden; cursor: zoom-in; background: #f2f3f2; }
.e5-looks__image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; transition: opacity .2s ease; }
.e5-looks__link:hover .e5-looks__image { opacity: .88; }
.e5-looks :focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.e5-looks__notice { text-align: center; padding: 30px; }
.e5-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; border: 0; padding: 0; margin: 0; overflow: hidden; color: #fff; background: rgba(15, 17, 18, .97); font-family: Arial, "メイリオ", sans-serif; }
.e5-lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.e5-lightbox[open] { display: flex; flex-direction: column; }
.e5-lightbox__toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; height: 66px; flex: 0 0 66px; }
.e5-lightbox__label { margin: 0; font-size: 11px; letter-spacing: .12em; }
.e5-lightbox button { appearance: none; border: none; border-radius: 0; color: inherit; background: transparent; cursor: pointer; width: 48px; height: 48px; padding: 0; }
.e5-lightbox button:hover { background: rgb(255 255 255 / .09); }
.e5-lightbox button:disabled { opacity: .22; cursor: default; background: transparent; }
.e5-lightbox :focus-visible { outline: 1px solid white; outline-offset: 2px; }
.e5-lightbox__close { position: relative; }
.e5-lightbox__close::before, .e5-lightbox__close::after { content: ""; width: 24px; height: 1px; background: currentColor; position: absolute; top: 24px; left: 12px; transform: rotate(45deg); }
.e5-lightbox__close::after { transform: rotate(-45deg); }
.e5-lightbox__stage { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 20px; align-items: center; flex: 1; min-height: 0; padding: 0 28px 28px; }
.e5-lightbox__figure { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; height: 100%; min-height: 0; margin: 0; pointer-events: none; }
.e5-lightbox__image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; pointer-events: auto; }
.e5-lightbox__prev, .e5-lightbox__next { font: 28px/1 Arial, sans-serif; }
.e5-lightbox__error { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; line-height: 2; pointer-events: auto; }
.e5-lightbox__error[hidden] { display: none; }
.e5-lightbox__error a { display: block; color: inherit; text-decoration: underline; }
@media (max-width: 800px) {
  .e5-looks { padding: 25px 16px 0; }
  .e5-looks__title { margin-bottom: 17px; }
  .e5-looks__title img { width: 270px; }
  .e5-looks__tabs { margin-bottom: 25px; gap: 8px 30px; }
  .e5-looks__tab { min-height: 44px; }
  .e5-looks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .e5-lightbox__toolbar { height: 60px; flex-basis: 60px; padding: 6px 12px; }
  .e5-lightbox__stage { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) 50px; gap: 6px; padding: 0 12px max(12px, env(safe-area-inset-bottom)); }
  .e5-lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .e5-lightbox__prev { grid-row: 2; justify-self: end; margin-right: 20px; }
  .e5-lightbox__next { grid-row: 2; justify-self: start; margin-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { .e5-looks__image { transition: none; } }


/* Allow for the theme's fixed navigation, independent of the preview shell. */
#e5-looks { padding-top: 120px; padding-bottom: 0; }
@media (max-width: 800px) { #e5-looks { padding-top: 102px; } }
