/* Approved single-photo brand detail, 2026-10-22.
   Brand photo layout and booking links; the story retains its existing layout. */
#detail-dialog.brand-photo-dialog {
  width: min(1140px, calc(100vw - 64px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #555 #141414;
}
.brand-photo-dialog::backdrop { background: rgb(0 0 0 / 88%); }
.brand-photo-dialog .dialog-inner { padding: 48px 52px 52px; }
.brand-photo-dialog .dialog-close, #brand-photo-viewer .dialog-close {
  top: 12px; right: 16px; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0;
  font-family: Arial, sans-serif; font-size: 32px; font-weight: 300; line-height: 1;
  transition: color .2s ease;
}
.brand-photo-dialog .dialog-close:hover, #brand-photo-viewer .dialog-close:hover { color: var(--accent); }
.brand-photo-dialog .dialog-close:focus-visible, #brand-photo-viewer .dialog-close:focus-visible { outline-offset: 0; }
.brand-photo-dialog .brand-gallery-heading { padding-right: 26px; margin-bottom: 34px; }
.brand-photo-dialog .dialog-kicker { margin: 0 0 15px; font-size: 15px; letter-spacing: .025em; line-height: 1.6; color: #bdbcb8; }
.brand-photo-dialog h2 { margin: 0; font-size: 38px; line-height: 1.4; font-weight: 500; letter-spacing: -.025em; }
.brand-gallery-composition { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.brand-gallery-photo {
  display: block; width: 100%; margin: 0; padding: 0; border: 0;
  background: #262421; cursor: zoom-in; aspect-ratio: 16 / 9; overflow: hidden;
  transition: box-shadow .2s ease;
}
.brand-gallery-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.brand-carousel { min-width: 0; }
.brand-carousel-viewport {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; border: 1px solid #393939;
}
.brand-carousel-viewport::-webkit-scrollbar { display: none; }
.brand-carousel-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.brand-carousel-viewport.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.brand-carousel-viewport.is-dragging .brand-gallery-photo { cursor: grabbing; }
.brand-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 4px; position: relative; min-height: 52px; padding-top: 8px; }
.brand-carousel-arrow, .brand-carousel-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #c9c8c4; cursor: pointer; }
.brand-carousel-arrow { font-family: Arial, sans-serif; font-size: 28px; line-height: 1; }
.brand-carousel-arrow:hover { color: var(--accent); }
.brand-carousel-dots { display: flex; }
.brand-carousel-dot { width: 28px; }
.brand-carousel-dot::after { content: ''; width: 6px; height: 6px; border: 1px solid #a5a49f; border-radius: 50%; }
.brand-carousel-dot[aria-pressed='true']::after { background: var(--accent); border-color: var(--accent); }
.brand-carousel-count { position: absolute; right: 0; font-size: 12px; letter-spacing: .06em; color: #bdbcb8; font-variant-numeric: tabular-nums; }
.brand-carousel :focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .brand-gallery-photo:hover { box-shadow: 0 0 0 1px #888; }
}
.brand-gallery-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.brand-photo-dialog .dialog-lead { font-size: 23px; font-weight: 400; line-height: 1.6; margin: -5px 0 18px; color: #f1f0ec; }
.brand-photo-dialog .brand-description { font-size: 15px; line-height: 1.95; margin: 0; color: #bdbcb8; }
.brand-representative-hotels { width: 100%; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog-inner .brand-representative-hotels h3 { margin: 0 0 10px; font-size: 15px; font-weight: 500; line-height: 1.6; }
.dialog-inner .brand-representative-hotels ul { list-style: none; margin: 0; padding: 0; color: #bdbcb8; font-size: 13px; line-height: 1.85; }
.brand-representative-hotels li { overflow-wrap: anywhere; }
.brand-representative-hotels li + li { margin-top: 8px; }
.brand-hotel-experience { display: block; margin-top: 4px; }
.dialog-inner .brand-booking-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; padding: 6px 0;
  border: 0; background: none; color: var(--accent);
  font-size: 14px; font-weight: 400; line-height: 1.5; transition: color .2s ease;
}
.dialog-inner .brand-booking-link:hover { color: #ff9147; }
#brand-photo-viewer { position: fixed; width: min(1320px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 56px 16px 16px; overflow-y: auto; }
#brand-photo-viewer::backdrop { background: rgb(0 0 0 / 92%); }
#brand-photo-viewer img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 114px); object-fit: contain; }
@media (max-width: 1000px) {
  .brand-photo-dialog .dialog-inner { padding: 44px 36px 40px; }
  .brand-gallery-composition { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
  .brand-photo-dialog h2 { font-size: 34px; }
  .brand-photo-dialog .dialog-lead { font-size: 21px; }
  .brand-photo-dialog .brand-description { font-size: 14px; }
}
@media (max-width: 760px) {
  #detail-dialog.brand-photo-dialog { width: calc(100vw - 28px); max-height: calc(100dvh - 28px); }
  .brand-photo-dialog .dialog-inner { padding: 52px 24px 30px; }
  .brand-photo-dialog .dialog-close, #brand-photo-viewer .dialog-close { right: 8px; top: 8px; }
  .brand-photo-dialog .brand-gallery-heading { padding-right: 0; margin-bottom: 25px; }
  .brand-photo-dialog .dialog-kicker { font-size: 12px; margin-bottom: 13px; letter-spacing: .01em; }
  .brand-photo-dialog h2 { font-size: clamp(24px, 5.8vw, 32px); line-height: 1.45; }
  .brand-gallery-composition { grid-template-columns: 1fr; gap: 25px; }
  .brand-photo-dialog .dialog-lead { font-size: 20px; margin: 0 0 15px; }
  .brand-photo-dialog .brand-description { font-size: 14px; line-height: 1.95; }
  .brand-photo-dialog .brand-booking-link { margin-top: 23px; }
  #brand-photo-viewer { width: calc(100vw - 20px); padding: 54px 8px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-gallery-photo, .dialog-inner .brand-booking-link, .brand-photo-dialog .dialog-close, #brand-photo-viewer .dialog-close { transition: none; }
}
