.s19-gallery {
  width: 100%;
  scroll-margin-bottom: max(104px, env(safe-area-inset-bottom, 0px) + 88px);
  min-width: 0;
  margin: clamp(24px, 4vw, 42px) 0;
  color: inherit;
}
.s19-gallery h2 {
  margin: 0 0 14px;
  font: 500 clamp(22px, 2.5vw, 30px)/1.25 var(--font-serif, "Noto Serif KR", Georgia, serif);
  color: inherit;
}
.s19-vg-field { position: relative; }
.s19-vg-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 2.55;
  gap: clamp(4px, .6vw, 8px);
  overflow: hidden;
  border-radius: 8px;
}
.s19-vg-grid[data-vg-layout="1"] { grid-template-columns: 1fr; aspect-ratio: 2.4; }
.s19-vg-grid[data-vg-layout="2"],
.s19-vg-grid[data-vg-layout="3"] { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.s19-vg-tile {
  position: relative;
  min-height: 0;
  min-width: 0;
  display: block;
  overflow: hidden;
  background: #252321;
}
.s19-vg-tile:first-child, .s19-vg-grid[data-vg-layout="2"] .s19-vg-tile,
.s19-vg-grid[data-vg-layout="4"] .s19-vg-tile:nth-child(2) { grid-row: span 2; }
.s19-vg-grid[data-vg-layout="4"] { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.15fr) minmax(0, 1fr); }
.s19-vg-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s19-vg-details { display: block; }
.s19-vg-details summary {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  box-sizing: border-box;
  border: 1px solid #ffffff85;
  border-radius: 6px;
  color: #fff;
  background: #111214e8;
  font: 600 13px/1.4 system-ui, sans-serif;
  cursor: pointer;
  list-style: none;
  scroll-margin-block: 96px;
}
.s19-vg-details summary::-webkit-details-marker { display: none; }
.s19-vg-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  box-sizing: border-box;
  border: 1.3px solid currentColor;
  box-shadow: 7px 0 0 -1px #212224, 7px 0 0 0 currentColor, 0 7px 0 -1px #212224, 0 7px 0 0 currentColor, 7px 7px 0 -1px #212224, 7px 7px 0 0 currentColor;
  margin: -7px 7px 0 0;
}
.s19-vg-details[open] summary { position: static; margin: 8px 0; }
.s19-vg-details ol { display: flex; flex-wrap: wrap; gap: .4em 1.6em; margin: 6px 0; padding-inline-start: 1.6em; }
.s19-vg-details ol a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.s19-gallery :focus-visible { outline: 3px solid #fff; outline-offset: -4px; box-shadow: inset 0 0 0 7px #111; }
.s19-vg-open { overflow: hidden; }

dialog.s19-vg-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  overflow: hidden;
  box-sizing: border-box;
  border: 0;
  background: #101010;
  color: #f8f8f6;
  color-scheme: dark;
  font: 500 15px/1.5 system-ui, sans-serif;
}
.s19-vg-dialog::backdrop { background: #101010; }
.s19-vg-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px clamp(12px, 2vw, 28px);
  flex: none;
}
.s19-vg-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}
.s19-vg-status {
  margin-left: auto;
  white-space: nowrap;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.s19-vg-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.s19-vg-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  object-fit: contain;
}
.s19-vg-control, .s19-vg-rail button {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
}
.s19-vg-control {
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #ffffff85;
  border-radius: 50%;
  background: #131313df;
  color: white;
  width: 44px;
  height: 44px;
}
.s19-vg-control span { display: block; font: 300 29px/1 Arial, sans-serif; }
.s19-vg-stage .s19-vg-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.s19-vg-control[data-vg-action="prev"] { left: clamp(8px, 2vw, 28px); }
.s19-vg-control[data-vg-action="next"] { right: clamp(8px, 2vw, 28px); }
.s19-vg-rail {
  display: flex;
  align-self: center;
  flex: none;
  position: relative;
  gap: 8px;
  padding: 10px 3px;
  max-width: min(90%, 650px);
  box-sizing: border-box;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #686868 #222;
}
.s19-vg-rail button {
  display: block;
  position: relative;
  width: 66px;
  height: 46px;
  flex: none;
  overflow: hidden;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #2a2a2a;
  opacity: .7;
}
.s19-vg-rail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s19-vg-rail [aria-current="true"] { border-color: #fff; opacity: 1; }
.s19-vg-dialog button:focus-visible { outline: 2px solid white; outline-offset: 1px; }
@media (hover: hover) {
  .s19-vg-details summary:hover, .s19-vg-control:hover { background: #373636; }
  .s19-vg-rail button:hover { opacity: 1; }
}
@media (max-width: 699px) {
  .s19-gallery { margin: 22px 0; }
  .s19-gallery h2 { margin-bottom: 10px; }
  .s19-vg-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: 2fr 1fr; aspect-ratio: 1.27; }
  .s19-vg-grid[data-vg-layout="1"] { grid-template-rows: 1fr; aspect-ratio: 1.55; }
  .s19-vg-grid[data-vg-layout="2"] { grid-template-rows: 1fr; grid-template-columns: 1.4fr 1fr; aspect-ratio: 1.6; }
  .s19-vg-grid[data-vg-layout="3"], .s19-vg-grid[data-vg-layout="4"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .s19-vg-grid .s19-vg-tile:first-child { grid-column: 1/-1; grid-row: auto; }
  .s19-vg-grid[data-vg-layout="2"] .s19-vg-tile,
  .s19-vg-grid[data-vg-layout="4"] .s19-vg-tile:nth-child(2) { grid-column: auto; grid-row: auto; }
  .s19-vg-tile:nth-child(n+4) { display: none; }
  .s19-vg-details summary { bottom: 8px; right: 8px; padding: 0 11px; }
  .s19-vg-top { gap: 10px; }
}
@media (max-height: 460px) and (orientation: landscape) {
  .s19-vg-rail { display: none; }
  .s19-vg-top { padding-block: 1px; }
}
.s19-vg-credit {
  padding: 2px 16px;
  color: #d6d6d6;
  font-size: 12px;
  text-align: center;
}
.s19-vg-credit a { color: inherit; text-underline-offset: 2px; }
.s19-vg-rail button { color: #fff; }
