:root{
  /* végleges háttérszín */
  --resp-gal-bg: rgba(255,255,204,0.9);
  --resp-gal-ui-size: 56px;
}

/* Galéria overlay */
.resp-gal {
  position: fixed;
  inset: 0;
  background: var(--resp-gal-bg);
  display: none; /* show with .open */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}
.resp-gal.open { display: flex; }

/* slide track */
.resp-gal-track {
  display:flex;
  width:100%;
  height:100%;
  transition: transform 360ms cubic-bezier(.2,.9,.2,1);
  will-change: transform;
  touch-action: pan-y;
}
.resp-gal-slide {
  flex: 0 0 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
  box-sizing: border-box;
}
.resp-gal-slide img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .25s ease;
  cursor: grab;
}
.resp-gal-slide img:active { transform: scale(.995); cursor: grabbing; }

/* UI gombok – egységes narancssárga stílus */
.resp-gal-btn {
  position: absolute;
  height: var(--resp-gal-ui-size);
  width: var(--resp-gal-ui-size);
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background-color: #FD9500;
  color: #FFFFFF;
  border: none;
  cursor:pointer;
  transition: background-color 0.25s ease;
}
.resp-gal-btn:hover { background-color: #e08300; }

.resp-gal-btn svg {
  stroke: #FFFFFF;
  width: 24px;
  height: 24px;
}

/* Fókusz kezelés */
.resp-gal-btn:focus {
  outline: none; /* ne legyen kék */
}
.resp-gal-btn:focus-visible {
  outline: 2px solid #fff;  /* billentyűzettel látszik */
  outline-offset: 2px;
}

/* Pozíciók */
.resp-gal-close { top: 18px; right: 18px; z-index: 10; }
.resp-gal-prev  { left: 18px; top: 50%; transform: translateY(-50%); z-index: 10; }
.resp-gal-next  { right: 18px; top: 50%; transform: translateY(-50%); z-index: 10; }

/* számláló */
.resp-gal-counter {
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  color: #000;
  font-size: 14px;
  opacity: 0.9;
  z-index: 10;
  background: rgba(255,255,255,0.6);
  padding:6px 10px;
  border-radius: 999px;
}

/* thumbnail sor */
.resp-gal-thumbs {
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 78px;
  display:flex;
  gap:8px;
  z-index: 10;
}
.resp-gal-thumbs button{
  width:48px;
  height:48px;
  padding:0;
  border-radius:6px;
  border:none;
  cursor:pointer;
  background:rgba(0,0,0,0.08);
  overflow:hidden;
}
.resp-gal-thumbs button:hover { background: rgba(0,0,0,0.15); }
.resp-gal-thumbs img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* mobil */
@media (max-width:640px) {
  .resp-gal-thumbs{bottom: 92px;}
  .resp-gal-slide img{ max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); }
  .resp-gal-btn { width:40px;height:40px; }
  .resp-gal-btn svg { width:20px; height:20px; }
}

/* accessibility helper */
.visually-hidden {
  position:absolute!important;
  clip:rect(1px,1px,1px,1px);
  padding:0;
  border:0;
  height:1px;
  width:1px;
  overflow:hidden;
  white-space:nowrap;
}
