/**
 * SilverTeam/GastRock módosítás – 2026-06-02
 * Nagymama és Bence kalandjai – egyedi bejegyzés sablon.
 * Mesekönyves manga layout, intro kép, manga olvasó/lightbox és tanulságkártyák.
 */

.gastrock-story-single-page {
  --story-black: #11110f;
  --story-red: #f33f68;
  --story-pink: #ff6fa0;
  --story-yellow: #ffe24d;
  --story-green: #79b343;
  --story-blue: #2091d5;
  --story-cream: #fff6dc;
  --story-paper: #fffdf3;
  overflow: hidden;
  background:
    radial-gradient(circle at 8px 8px, rgba(0,0,0,.045) 1.1px, transparent 1.3px) 0 0/18px 18px,
    linear-gradient(90deg, rgba(255,226,77,.15) 0 10px, transparent 10px 22px),
    #fffaf0;
  color: var(--story-black);
}

.gastrock-story-single-page .container {
  max-width: 1220px;
}

.gastrock-story-single-hero {
  position: relative;
  padding: 48px 0 64px;
  border-bottom: 6px solid var(--story-black);
  background:
    linear-gradient(102deg, transparent 0 57%, #ff8d68 57% 100%),
    radial-gradient(circle at 12px 12px, rgba(0,0,0,.07) 1.2px, transparent 1.4px) 0 0/18px 18px,
    repeating-linear-gradient(90deg, rgba(255,226,77,.18) 0 18px, rgba(255,255,255,.55) 18px 36px),
    #fff8e8;
}

.gastrock-story-single-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from -18deg at 42% 52%, rgba(0,0,0,.08) 0 4deg, transparent 4deg 13deg);
  opacity: .55;
  pointer-events: none;
}

.gastrock-story-single-hero:after {
  content: "";
  position: absolute;
  right: -6vw;
  top: 0;
  bottom: -6px;
  width: 44vw;
  height: auto;
  transform: skewX(-10deg);
  transform-origin: bottom left;
  background:
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.22), transparent 45%),
    linear-gradient(160deg, #ff2e62, #ff8f4d);
  border-left: 7px solid var(--story-black);
  z-index: 0;
}

.gastrock-story-single-hero .container {
  position: relative;
  z-index: 1;
}

.gastrock-story-single-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin-bottom: 34px;
  padding: 12px 20px;
  border: 4px solid var(--story-black);
  border-radius: 999px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--story-black);
  font-weight: 800;
  font-size: 13px;
}

.gastrock-story-single-breadcrumb a {
  color: var(--story-black);
  text-decoration: none;
}

.gastrock-story-single-breadcrumb span {
  color: var(--story-red);
  font-weight: 900;
}

.gastrock-story-single-breadcrumb strong {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gastrock-story-single-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(290px, .78fr);
  gap: 34px;
  align-items: center;
}

.gastrock-story-single-copy {
  position: relative;
  padding: clamp(28px, 4vw, 54px) clamp(28px, 4.5vw, 72px) clamp(32px, 4.2vw, 58px);
  border: 7px solid var(--story-black);
  border-radius: 24px 38px 22px 34px;
  background:
    radial-gradient(circle at 14px 14px, rgba(0,0,0,.035) 1px, transparent 1.3px) 0 0/14px 14px,
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,250,222,.96));
  box-shadow: 12px 14px 0 var(--story-black), 18px 20px 0 rgba(255,63,104,.8);
}

.gastrock-story-single-copy:before,
.gastrock-story-single-copy:after {
  content: "";
  position: absolute;
  width: 76px;
  height: 44px;
  border: 4px solid var(--story-black);
  background: var(--story-yellow);
  transform: rotate(8deg);
}

.gastrock-story-single-copy:before {
  right: -28px;
  top: 26px;
}

.gastrock-story-single-copy:after {
  left: 28px;
  bottom: -26px;
  background: var(--story-pink);
  transform: rotate(-7deg);
}

.gastrock-story-single-kicker {
  display: inline-flex;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  padding: 8px 22px;
  border: 4px solid var(--story-black);
  border-radius: 999px;
  background: var(--story-yellow);
  box-shadow: 5px 5px 0 var(--story-pink);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .04em;
  font-size: 13px;
}

.gastrock-story-single-copy h1 {
  margin: 0 0 18px;
  max-width: 10.5ch;
  font-size: clamp(42px, 5.45vw, 78px);
  line-height: .92;
  color: var(--story-black);
  text-shadow: 4px 4px 0 var(--story-yellow), 8px 8px 0 var(--story-pink);
}

.gastrock-story-single-lead {
  margin: 0;
  max-width: 720px;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  font-weight: 800;
}

.gastrock-story-single-mini-lesson {
  display: inline-block;
  margin-top: 24px;
  padding: 15px 20px;
  border: 4px solid var(--story-black);
  border-radius: 18px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--story-yellow);
  transform: rotate(-1deg);
}

.gastrock-story-single-mini-lesson span {
  display: block;
  margin-bottom: 4px;
  color: var(--story-red);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
}

.gastrock-story-single-mini-lesson strong {
  font-size: 18px;
  line-height: 1.25;
}

.gastrock-story-single-featured {
  position: relative;
  width: 100%;
  max-width: 505px;
  justify-self: end;
  margin: 0;
  transform: rotate(2.4deg);
  z-index: 2;
}

.gastrock-story-single-featured-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 7px solid var(--story-black);
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 14px 16px 0 var(--story-black), -12px -12px 0 var(--story-yellow);
  cursor: zoom-in;
}

.gastrock-story-single-featured img {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.gastrock-story-single-bubble {
  position: absolute;
  right: -4px;
  top: -44px;
  max-width: 255px;
  padding: 16px 24px;
  border: 5px solid var(--story-black);
  border-radius: 24px 24px 24px 8px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--story-black);
  transform: rotate(-4deg);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
}

.gastrock-story-single-bubble:after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: -20px;
  width: 26px;
  height: 26px;
  background: #fff;
  border-right: 5px solid var(--story-black);
  border-bottom: 5px solid var(--story-black);
  transform: rotate(45deg);
}

.gastrock-story-single-content-section {
  padding: 64px 0 34px;
  background:
    radial-gradient(circle at 10px 10px, rgba(0,0,0,.045) 1px, transparent 1.3px) 0 0/17px 17px,
    #fffdf4;
}

.gastrock-story-single-content-panel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px);
  border: 6px solid var(--story-black);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(255,226,77,.11) 0 12px, transparent 12px 24px),
    #fff;
  box-shadow: 12px 12px 0 var(--story-black);
}

.gastrock-story-single-content-label {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 20px;
  border: 4px solid var(--story-black);
  border-radius: 999px;
  background: var(--story-pink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--story-yellow);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .04em;
}

.gastrock-story-single-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.9;
  font-weight: 700;
  letter-spacing: .01em;
  color: #292424;
}

.gastrock-story-single-content > *:first-child:first-letter {
  float: left;
  margin: 7px 10px 0 0;
  font-size: 3.3em;
  line-height: .82;
  font-weight: 900;
  color: var(--story-red);
  text-shadow: 2px 2px 0 var(--story-yellow);
}

.gastrock-story-single-content p {
  margin: 0 0 1.05em;
  text-wrap: pretty;
}



.gastrock-story-reader-section {
  padding: 62px 0;
  background:
    linear-gradient(135deg, rgba(255,226,77,.22), rgba(255,111,160,.16)),
    radial-gradient(circle at 12px 12px, rgba(0,0,0,.055) 1px, transparent 1.25px) 0 0/16px 16px,
    #fff3d4;
  border-top: 5px solid var(--story-black);
  border-bottom: 5px solid var(--story-black);
}

.gastrock-story-reader-heading {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.gastrock-story-reader-heading span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 22px;
  border: 4px solid var(--story-black);
  border-radius: 999px;
  background: var(--story-yellow);
  box-shadow: 5px 5px 0 var(--story-pink);
  text-transform: uppercase;
  font-weight: 900;
}

.gastrock-story-reader-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: .95;
  text-shadow: 3px 3px 0 #fff, 7px 7px 0 var(--story-blue);
}

.gastrock-story-reader-heading p {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.gastrock-story-reader-frame {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(10px, 1.6vw, 20px);
  border: 7px solid var(--story-black);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10px 10px, rgba(255,255,255,.5) 1px, transparent 1.4px) 0 0/16px 16px,
    #fff;
  box-shadow: 14px 16px 0 var(--story-black), 20px 22px 0 var(--story-red);
  transform: rotate(-.35deg);
}

.gastrock-story-reader-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gastrock-story-reader-main img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.gastrock-story-reader-zoom-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 4px solid var(--story-black);
  border-radius: 50%;
  background: #fff;
  box-shadow: 5px 5px 0 var(--story-red);
  font-size: 26px;
}

.gastrock-story-reader-zoom-button {
  position: absolute;
  right: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 4px solid var(--story-black);
  border-radius: 999px;
  background: var(--story-yellow);
  box-shadow: 5px 5px 0 var(--story-red);
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: zoom-in;
}

.gastrock-story-reader-zoom-button span {
  font-size: 18px;
}

.gastrock-story-reader-thumbs {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.gastrock-story-reader-thumbs button {
  position: relative;
  width: 98px;
  height: 98px;
  padding: 0;
  border: 4px solid var(--story-black);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 5px 5px 0 var(--story-black);
  cursor: zoom-in;
}

.gastrock-story-reader-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gastrock-story-reader-thumbs span {
  position: absolute;
  left: 6px;
  top: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 3px solid var(--story-black);
  border-radius: 999px;
  background: var(--story-yellow);
  font-weight: 900;
}

.gastrock-story-cards-section {
  padding: 58px 0 78px;
  background:
    radial-gradient(circle at 10px 10px, rgba(0,0,0,.04) 1px, transparent 1.25px) 0 0/18px 18px,
    #fffdf4;
}

.gastrock-story-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.gastrock-story-info-card {
  position: relative;
  min-height: 230px;
  padding: 28px 26px;
  border: 6px solid var(--story-black);
  border-radius: 24px;
  background: #fff;
  box-shadow: 10px 10px 0 var(--story-black);
  overflow: hidden;
}

.gastrock-story-info-card:before {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(243,63,104,.18) 0 8deg, transparent 8deg 16deg);
}

.gastrock-story-info-card-tip {
  background: linear-gradient(135deg, #fff, #fff0f6);
}

.gastrock-story-info-card-mission {
  background: linear-gradient(135deg, #fff, #fff7c8);
}

.gastrock-story-info-card-learned {
  background: linear-gradient(135deg, #fff, #ecfff0);
}

.gastrock-story-card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border: 4px solid var(--story-black);
  border-radius: 50%;
  background: var(--story-yellow);
  box-shadow: 4px 4px 0 var(--story-red);
  font-size: 22px;
  font-weight: 900;
}

.gastrock-story-info-card h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(25px, 2.8vw, 38px);
  line-height: 1;
  color: var(--story-red);
  text-shadow: 2px 2px 0 #fff;
}

.gastrock-story-info-card p {
  position: relative;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 800;
}

.gastrock-story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 68px 84px;
  background: rgba(0,0,0,.88);
}

.gastrock-story-lightbox.is-open {
  display: flex;
}

.gastrock-story-lightbox figure {
  margin: 0;
  max-width: min(96vw, 1500px);
  max-height: 84vh;
  overflow: hidden;
  padding: 8px;
  touch-action: none;
  user-select: none;
}

.gastrock-story-lightbox img {
  display: block;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  max-width: min(90vw, 1380px);
  margin: 0 auto;
  border: 6px solid #fff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 14px 14px 0 rgba(255,226,77,.9);
  transform-origin: center center;
  transition: transform .18s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: zoom-in;
}


.gastrock-story-lightbox.is-zoomed figure {
  cursor: grab;
}

.gastrock-story-lightbox.is-zoomed img {
  cursor: grab;
}

.gastrock-story-lightbox.is-zoomed img:active {
  cursor: grabbing;
}

.gastrock-story-lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.gastrock-story-lightbox button {
  border: 4px solid #fff;
  background: var(--story-yellow);
  color: var(--story-black);
  box-shadow: 5px 5px 0 var(--story-red);
  font-weight: 900;
  cursor: pointer;
}

.gastrock-story-lightbox-toolbar {
  position: absolute;
  top: 24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
}

.gastrock-story-lightbox-toolbar button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.gastrock-story-lightbox-toolbar button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.gastrock-story-lightbox-zoom-level {
  min-width: 56px;
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.gastrock-story-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.gastrock-story-lightbox-prev,
.gastrock-story-lightbox-next {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 74px;
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 58px;
  line-height: .7;
}

.gastrock-story-lightbox-prev { left: 24px; }
.gastrock-story-lightbox-next { right: 24px; }

body.gastrock-story-lightbox-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .gastrock-story-single-hero {
    padding: 36px 0 48px;
  }

  .gastrock-story-single-hero:after {
    width: 54vw;
    opacity: .72;
  }

  .gastrock-story-single-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .gastrock-story-single-featured {
    max-width: 560px;
    justify-self: center;
    margin: 0 auto;
  }

  .gastrock-story-cards-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .gastrock-story-single-breadcrumb {
    font-size: 12px;
    padding: 10px 14px;
    box-shadow: 5px 5px 0 var(--story-black);
  }

  .gastrock-story-single-breadcrumb strong {
    max-width: 150px;
  }

  .gastrock-story-single-copy {
    padding: 26px 20px 32px;
    box-shadow: 8px 10px 0 var(--story-black), 12px 14px 0 rgba(255,63,104,.8);
  }

  .gastrock-story-single-copy h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .gastrock-story-single-copy:before,
  .gastrock-story-single-copy:after {
    width: 52px;
    height: 32px;
  }

  .gastrock-story-single-featured-button {
    box-shadow: 8px 10px 0 var(--story-black), -8px -8px 0 var(--story-yellow);
  }

  .gastrock-story-single-featured img {
    min-height: auto;
  }

  .gastrock-story-single-bubble {
    right: 8px;
    top: -34px;
    max-width: 210px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .gastrock-story-single-content-section,
  .gastrock-story-reader-section,
  .gastrock-story-cards-section {
    padding-left: 0;
    padding-right: 0;
  }

  .gastrock-story-single-content-panel {
    padding: 24px 18px;
    box-shadow: 8px 8px 0 var(--story-black);
  }

  .gastrock-story-single-content {
    font-size: 17px;
    line-height: 1.82;
  }

  .gastrock-story-single-content > *:first-child:first-letter {
    margin-top: 5px;
    font-size: 2.8em;
  }

  .gastrock-story-reader-frame {
    border-width: 5px;
    box-shadow: 8px 10px 0 var(--story-black), 12px 14px 0 var(--story-red);
  }

  .gastrock-story-reader-thumbs {
    display: none;
  }

  .gastrock-story-info-card {
    min-height: 0;
    padding: 24px 20px;
    box-shadow: 7px 7px 0 var(--story-black);
  }

  .gastrock-story-lightbox {
    padding: 64px 14px 28px;
  }

  .gastrock-story-lightbox img {
    max-width: 100%;
    border-width: 4px;
    box-shadow: 7px 7px 0 rgba(255,226,77,.9);
  }

  .gastrock-story-reader-zoom-button {
    top: 12px;
    right: 12px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .gastrock-story-reader-zoom-badge {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .gastrock-story-lightbox-prev,
  .gastrock-story-lightbox-next {
    top: auto;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 44px;
    transform: none;
  }

  .gastrock-story-lightbox-prev { left: 22px; }
  .gastrock-story-lightbox-next { right: 22px; }
}

/* ========================================================================
 * SILVERTEAM / GASTROCK NOTE – 2026-06-05
 * Nagymama és Bence lightbox: eltérő képarányú mangaoldalak teljes illesztése.
 *
 * A rövidebb / kevesebb panelből álló mangaoldalaknál a korábbi szabály csak
 * a szélességet korlátozta. Emiatt bizonyos képaránynál a kép magassága
 * túlnyúlhatott a lightbox látható területén, és az alapállapot nem mutatta a
 * teljes képet. Az új szabály egyszerre korlátozza a szélességet és a
 * magasságot, ezért minden mangaoldal 100%-os zoomon teljes egészében látszik.
 * A nagyítás és a nagyított kép húzása változatlanul működik.
 * ======================================================================== */
.gastrock-story-lightbox img {
  max-width: min(90vw, 1380px);
  max-height: calc(84vh - 28px);
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .gastrock-story-lightbox img {
    max-width: 100%;
    max-height: calc(100dvh - 118px);
  }
}


/* =========================================================
 * SILVERTEAM / GASTROCK NOTE – 2026-06-08
 * Mobil lightbox gesztusok: pinch zoom, húzás, swipe lapozás.
 * ========================================================= */
.gastrock-story-lightbox figure,
.gastrock-story-lightbox img {
  touch-action: none !important;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.gastrock-story-lightbox img {
  transform-origin: center center;
  will-change: transform;
}
.gastrock-story-lightbox.is-zoomed figure,
.gastrock-story-lightbox.is-zoomed img { cursor: grab; }
.gastrock-story-lightbox figure.is-dragging,
.gastrock-story-lightbox img.is-dragging { cursor: grabbing !important; }
