/* =========================================================
   style.css – Stugbokningen (Base UI, mobile-first)
   Shared across sites, overridden by site css.
   ---------------------------------------------------------
   INNEHÅLL
   1) Tokens / variables
   2) Base / reset
   3) Layout (container, header)
   4) Forms / buttons
   5) Cabin cards (listor)
   6) visa_stuga helpers (gallery / info)
   7) Shared errors / notices
   8) Booking calendar layout + summary card
   9) Booking calendar day states (occupied / checkout / disabled)
   10) Booking calendar selection + hover preview
   11) Step2 legacy (id-baserad)
   12) Step2 modern (s2_*)
   13) FIX: jQuery UI theme overlay (viktigt, ska ligga sist)
   14) Gallery
   ========================================================= */

/* =========================================================
   1) Tokens / variables
   ========================================================= */
:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --card: #ffffff;

  --accent: #6699CC;     /* fallback, site css overrides */
  --accent-2: #5588BB;

  --shadow: 0 8px 28px rgba(2,6,23,.08);
  --shadow-soft: 0 4px 16px rgba(2,6,23,.06);

  --radius: 16px;
  --radius-sm: 12px;

  --container: 880px;

  /* Booking calendar states (can be overridden by brand css) */
  --bk-occupied-bg:#e9e9e9;
  --bk-occupied-text:#777;

  --sel-bg: var(--accent);
  --sel-text:#fff;
  --sel-border: var(--accent);
}

/* =========================================================
   2) Base / reset
   ========================================================= */
*,
*::before,
*::after{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
  overflow-x:hidden;
}

/* A11y */
:focus-visible{
  outline: 3px solid rgba(102,153,204,.35);
  outline-offset: 2px;
}

/* Global img safety (iframe-friendly) */
img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   3) Layout
   ========================================================= */
.container{
  width:100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px;
}
@media (min-width: 720px){
  .container{ padding: 22px; }
}

.header{
  background: var(--accent);
  color: #fff;
  padding: 14px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
}
@media (min-width: 720px){
  .header{ padding: 16px 18px; font-size: 22px; }
}

.intro{
  margin: 14px 0 0 0;
  color: var(--muted);
}

/* =========================================================
   4) Forms / buttons
   ========================================================= */
.search-form{ margin-top: 16px; }

.search-form form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 620px){
  .search-form form{
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

.search-form input[type="date"],
.search-form input[type="text"],
.search-form input[type="email"],
.search-form input[type="tel"]{
  width:100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
}

.search-form input[type="date"]:focus,
.search-form input[type="text"]:focus,
.search-form input[type="email"]:focus,
.search-form input[type="tel"]:focus{
  outline:none;
  border-color: rgba(102,153,204,.6);
  box-shadow: 0 0 0 4px rgba(102,153,204,.18);
}

/* Inline validation highlight (Step2 modern uses this) */
.s2_bad input,
.s2_bad select,
.s2_bad textarea{
  border-color:#b00000 !important;
  box-shadow: 0 0 0 4px rgba(176,0,0,.12);
}

/* Primary button */
.search-form input[type="submit"],
.button,
a.button{
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(2,6,23,.12);
  transition: transform .06s ease, filter .15s ease;
  width: 100%;
}

@media (min-width: 620px){
  .search-form input[type="submit"]{ width:auto; white-space: nowrap; }
}

.search-form input[type="submit"]:hover{ filter: brightness(.97); }
.search-form input[type="submit"]:active{ transform: translateY(1px); }

.stuga-list{ margin-top: 16px; }

/* =========================================================
   5) Cabin cards
   ========================================================= */
.stuga{
  display:flex;
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}

.stuga:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(102,153,204,.35);
}

.stuga img{
  width: 170px;
  height: 140px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  border-right: 1px solid rgba(0,0,0,.06);
}

.stuga-text{
  flex: 1;
  padding: 14px 14px 12px 14px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.stuga-heading{
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.stuga-text p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.stuga-text p strong{ color: var(--text); }

.stuga a{
  margin-top: auto;
  display:inline-block;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.stuga a:hover{ text-decoration: underline; }

@media (max-width: 600px){
  .stuga{ display:block; }
  .stuga img{
    width: 100%;
    height: 210px;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .stuga-text{ padding: 14px; }
  .stuga a{
    width: 100%;
    text-align: center;
  }
  .stuga-heading{ font-size: 17px; }
}

/* =========================================================
   6) visa_stuga helpers (gallery / info layout)
   ========================================================= */
.link{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px 0;
}

.link a{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.link a:hover{
  border-color: rgba(102,153,204,.35);
  box-shadow: var(--shadow-soft);
}

.content{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

/* KRITISK FIX: låt grid-barn krympa (annars kan "långa" flex-rader spränga kolumnen) */
.content > *{ min-width: 0; }

@media (min-width: 860px){
  .content{
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
  }
}

.info{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.info h3{ margin: 6px 0 10px 0; }
.info p{ margin: 0 0 10px 0; color: var(--muted); }
.info b{ color: var(--text); }

.booking{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
  margin-top: 14px;
}

/* =========================================================
   7) Shared errors / notices
   ========================================================= */
.error{ color:#b00000; font-weight: 800; }

.notice{
  margin: 10px 0 12px 0;
  padding: 12px;
  border:1px solid #e0b4b4;
  background:#fff6f6;
  color:#9f3a38;
  border-radius:12px;
  font-size:14px;
  line-height:1.35;
}

/* =========================================================
   8) Booking calendar layout + summary card
   ========================================================= */
.bk_wrap{ display:block; }

@media (min-width: 860px){
  .bk_wrap{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    align-items:flex-start;
  }
}

/* Calendar column */
.bk_cal{
  width:100%;
  max-width:520px;
  margin:0 auto;
}
@media (min-width: 860px){
  .bk_cal{ margin:0; }
}

/* Make jQuery UI datepicker fill the calendar column */
.bk_cal .ui-datepicker{ width:100% !important; }
.bk_cal .ui-datepicker table{ width:100% !important; }

/* Two months: split 50/50 on wider screens */
.bk_cal .ui-datepicker-multi .ui-datepicker-group{ width:50% !important; }
.bk_cal .ui-datepicker-multi .ui-datepicker-group-first{ padding-right:10px; }
.bk_cal .ui-datepicker-multi .ui-datepicker-group-last{  padding-left:10px; }

/* Mobile: stack months */
@media (max-width: 720px){
  .bk_cal .ui-datepicker-multi .ui-datepicker-group{
    width:100% !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
}

/* Booking summary card */
#bk_minbokning{
  border:1px solid #a6c9e2;
  padding:12px;
  border-radius:10px;
  max-width:520px;
  margin:14px auto 0 auto;
  background:#fff;
}
@media (min-width: 860px){
  #bk_minbokning{ margin:0; width:420px; }
}

#bk_minbokning .formrow{ clear:both; padding-top:8px; }
#bk_minbokning .formlabel{ font-size:13px; font-weight:bold; color:#666; margin-bottom:4px; }
#bk_minbokning .formcontent{ width:100%; }

#bk_minbokning .formcontent input{
  width:100%;
  padding:10px;
  border:1px solid #ccc;
  border-radius:8px;
  font-size:16px;
  height:auto;
}

/* Book button */
#bk_minbokning .formbutton input,
#bk_minbokning .formbuttondisable input{
  margin-top:12px;
  width:100%;
  height:44px;
  padding:10px;
  border:none;
  border-radius:10px;
  font-size:16px;
  font-weight: 800;
}

#bk_minbokning .formbutton input{
  color:#fff;
  background: var(--accent);
  cursor:pointer;
}

#bk_minbokning .formbuttondisable input{
  color:#eee;
  background:#ccc;
}

/* Notice (click to dismiss) */
#bk_notice{
  display:none;
  margin: 8px 0 10px 0;
  padding: 12px;
  border:1px solid #e0b4b4;
  background:#fff6f6;
  color:#9f3a38;
  border-radius:10px;
  font-size:14px;
  line-height:1.35;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   9) Booking calendar day states
   ========================================================= */

/* Occupied (booked nights) */
.ui-datepicker td.bk-occupied a,
.ui-datepicker td.bk-occupied span{
  background: var(--bk-occupied-bg) !important;
  color: var(--bk-occupied-text) !important;
  border-color: #d0d0d0 !important;
  text-decoration: line-through;
  opacity: 0.9;
}

/* Checkout-only (booking's arrival date = allowed as end date) */
.ui-datepicker td.bk-checkout a,
.ui-datepicker td.bk-checkout span{
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  border-color:#e5e7eb !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

.ui-datepicker td.bk-checkout a{
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

/* Invalid end dates after chosen start (optional helper class) */
.ui-datepicker td.bk-disabled-after a,
.ui-datepicker td.bk-disabled-after span{
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

/* If a cell ever ends up with both classes, checkout should win visually */
.ui-datepicker td.bk-occupied.bk-checkout a,
.ui-datepicker td.bk-occupied.bk-checkout span{
  text-decoration: none !important;
}

/* =========================================================
   10) Selection + hover preview
   IMPORTANT: style both a + span (selectable/unselectable)
   ========================================================= */

/* Selected range */
.ui-datepicker td.sel-mid a,
.ui-datepicker td.sel-mid span{
  background: var(--sel-bg) !important;
  border-color: var(--sel-border) !important;
  color: var(--sel-text) !important;
  text-decoration:none !important;
  opacity: 1 !important;
}

.ui-datepicker td.sel-start a,
.ui-datepicker td.sel-start span,
.ui-datepicker td.sel-end a,
.ui-datepicker td.sel-end span{
  background: var(--sel-bg) !important;
  border-color: var(--sel-border) !important;
  color: var(--sel-text) !important;
  font-weight:bold;
  text-decoration:none !important;
  opacity: 1 !important;
}

/* Hover preview */
.ui-datepicker td.sel-hov-mid a,
.ui-datepicker td.sel-hov-mid span{
  background: var(--sel-bg) !important;
  border-color: var(--sel-border) !important;
  color: var(--sel-text) !important;
  opacity: 0.85 !important;
  text-decoration:none !important;
}

.ui-datepicker td.sel-hov-end a,
.ui-datepicker td.sel-hov-end span{
  background: var(--sel-bg) !important;
  border-color: var(--sel-border) !important;
  color: var(--sel-text) !important;
  font-weight: bold;
  opacity: 0.95 !important;
  text-decoration:none !important;
}

/* Ensure selection/hover wins even if td has checkout/occupied */
.ui-datepicker td.bk-checkout.sel-start a,
.ui-datepicker td.bk-checkout.sel-start span,
.ui-datepicker td.bk-checkout.sel-mid a,
.ui-datepicker td.bk-checkout.sel-mid span,
.ui-datepicker td.bk-checkout.sel-end a,
.ui-datepicker td.bk-checkout.sel-end span,
.ui-datepicker td.bk-checkout.sel-hov-mid a,
.ui-datepicker td.bk-checkout.sel-hov-mid span,
.ui-datepicker td.bk-checkout.sel-hov-end a,
.ui-datepicker td.bk-checkout.sel-hov-end span{
  background: var(--sel-bg) !important;
  border-color: var(--sel-border) !important;
  color: var(--sel-text) !important;
  opacity: 1 !important;
  text-decoration:none !important;
}

.ui-datepicker td.bk-occupied.sel-end a,
.ui-datepicker td.bk-occupied.sel-end span,
.ui-datepicker td.bk-occupied.sel-hov-end a,
.ui-datepicker td.bk-occupied.sel-hov-end span{
  background: var(--sel-bg) !important;
  border-color: var(--sel-border) !important;
  color: var(--sel-text) !important;
  opacity: 1 !important;
  text-decoration:none !important;
}

/* =========================================================
   11) Step2 legacy layout (if any old include still uses these ids)
   ========================================================= */
#minaval,
#minakontaktuppgifter{
  border: 1px solid #a6c9e2;
  padding: 10px;
  max-width: 520px;
  border-radius: 12px;
  background: #fff;
}

#minaval .formrow,
#minakontaktuppgifter .formrow{ clear: both; padding-top: 6px; }

#minaval .formlabel,
#minakontaktuppgifter .formlabel{
  padding-top: 8px;
  font-size: 13px;
  font-weight: bold;
  width: 160px;
  color: #666;
  float: left;
}

#minaval .formcontent,
#minakontaktuppgifter .formcontent{
  vertical-align: top;
  width: 320px;
  float: left;
}

#minakontaktuppgifter .formcontent input,
#minakontaktuppgifter textarea,
#minaval select{
  width: 300px;
  padding: 4px;
  border: 1px solid #ccc;
  margin: 4px 0;
  height: 26px;
}

#minakontaktuppgifter textarea{ height: 90px; }
#divlabeltotalpris{ font-weight:bold; }

/* =========================================================
   12) Step2 modern (s2_* version)
   ========================================================= */
.s2_wrap{ max-width: 760px; margin: 0 auto; }
.s2_title{ margin: 0 0 10px 0; font-size: 18px; font-weight: 800; }
.s2_sub{ margin: 16px 0 8px 0; font-size: 16px; font-weight: 800; }

.s2_card{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

.s2_grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 860px){
  .s2_grid.two{ grid-template-columns: 1fr 1fr; }
}

.s2_field label{
  display:block;
  font-size: 13px;
  font-weight: 800;
  color: #555;
  margin: 0 0 6px 0;
}

.s2_field input[type="text"],
.s2_field input[type="email"],
.s2_field textarea,
.s2_field select{
  width:100%;
  padding: 11px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.2;
  background: #fff;
}

.s2_field textarea{ min-height: 110px; resize: vertical; }

.s2_check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafafa;
}

.s2_check input{ margin-top: 3px; }
.s2_check small{ display:block; color:#666; margin-top:2px; }

.s2_pricebox{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding: 12px;
  border-radius: 12px;
  background:#f7f7f7;
  border: 1px solid #e8e8e8;
  font-weight:800;
}

.s2_error{
  display:none;
  margin: 10px 0 12px 0;
  padding: 12px;
  border:1px solid #e0b4b4;
  background:#fff6f6;
  color:#9f3a38;
  border-radius:12px;
  font-size:14px;
  line-height:1.35;
  cursor:pointer;
}

.s2_error ul{ margin: 6px 0 0 18px; padding:0; }
.s2_error li{ margin: 4px 0; }

.s2_payment{
  margin-top:18px;
  margin-bottom:12px;
  padding:14px;
  background:#f7f7f7;
  border-radius:8px;
}

.s2_payoption{
  display:block;
  margin-bottom:8px;
  font-size:15px;
}

.s2_payoption input{
  margin-right:8px;
}

.s2_btn{
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 10px 20px rgba(2,6,23,.12);
}

.s2_btn:disabled{
  background:#cfcfcf;
  cursor:not-allowed;
}

/* =========================================================
   13) FIX: jQuery UI theme overlay on selected/hover cells
   - removes gradient/opacity/filter from ui-state-* classes
   - VIKTIGT: ska ligga sist i filen
   ========================================================= */

/* 13.1 Ta bort theme “glass/gradient” på alla våra states */
.ui-datepicker td.sel-start a,
.ui-datepicker td.sel-mid a,
.ui-datepicker td.sel-end a,
.ui-datepicker td.sel-hov-mid a,
.ui-datepicker td.sel-hov-end a,
.ui-datepicker td.bk-checkout.sel-start a,
.ui-datepicker td.bk-checkout.sel-mid a,
.ui-datepicker td.bk-checkout.sel-end a,
.ui-datepicker td.bk-checkout.sel-hov-mid a,
.ui-datepicker td.bk-checkout.sel-hov-end a{
  background-image: none !important;
  filter: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* 13.2 Om temat lägger ui-state-active/ui-state-hover på <a> */
.ui-datepicker td.sel-start a.ui-state-active,
.ui-datepicker td.sel-end a.ui-state-active,
.ui-datepicker td.sel-mid a.ui-state-active,
.ui-datepicker td.sel-hov-end a.ui-state-hover,
.ui-datepicker td.sel-hov-mid a.ui-state-hover,
.ui-datepicker td.bk-checkout.sel-end a.ui-state-active,
.ui-datepicker td.bk-checkout.sel-hov-end a.ui-state-hover{
  background-image: none !important;
  filter: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* 13.3 Safety: checkout-only ska aldrig se “overlay/halvtransparent” ut */
.ui-datepicker td.bk-checkout a{
  opacity: 1 !important;
  background-image: none !important;
  filter: none !important;
  text-shadow: none !important;
}

.ui-datepicker .ui-state-highlight,
.ui-datepicker .ui-widget-content .ui-state-highlight,
.ui-datepicker .ui-widget-header .ui-state-highlight {
  border: 1px solid #bcd3f2 !important;
  background: #eaf3ff !important;
  color: #2b4a6b !important;
  background-image: none !important;
}

/* =========================================================
   14) GALLERY (robust, spränger aldrig layouten)
   ========================================================= */

.g_wrap{
  margin-bottom: 10px;
  min-width: 0;  /* viktigt i grid-kolumn */
}

/* Stage */
.g_stage{
  position: relative;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

/* Track */
.g_track{
  display:flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  height: clamp(240px, 52vw, 440px);

  overflow-x:auto;
  overflow-y:hidden;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  background:#f8fafc;
  scrollbar-width: none;
}
.g_track::-webkit-scrollbar{ display:none; }

/* Slides */
.g_slide{
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;

  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8fafc;
}

/* Large image */
.g_slide img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

/* Counter */
.g_counter{
  position:absolute;
  right:10px;
  bottom:10px;
  background: rgba(15,23,42,.78);
  color:#fff;
  padding:6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  z-index: 40;
}

/* Dots (mobil) */
.g_dots{
  display:flex;
  gap:6px;
  justify-content:center;
  margin:10px 0 0 0;
}
.g_dots button{
  width:8px;
  height:8px;
  border-radius:999px;
  border:0;
  background: rgba(15,23,42,.25);
  cursor:pointer;
}
.g_dots button.is-active{ background: rgba(15,23,42,.85); }

/* Thumbs: alltid 1 rad + scroll (spränger aldrig kolumnen) */
.g_thumbs{
  width: 100%;
  max-width: 100%;
  min-width: 0;

  display:flex;
  flex-wrap: nowrap;
  gap:10px;
  margin-top:10px;

  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;

  padding:2px 2px 8px 2px;

  scrollbar-width: thin;           /* Firefox */
  scroll-snap-type: x proximity;
}

/* WebKit scrollbar (Chrome/Edge/Safari) */
.g_thumbs::-webkit-scrollbar{ height: 10px; }
.g_thumbs::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.20);
  border-radius: 999px;
}
.g_thumbs::-webkit-scrollbar-track{
  background: rgba(0,0,0,.06);
  border-radius: 999px;
}

/* Thumb button */
.g_thumb{
  flex:0 0 auto;
  width:84px;
  height:84px;
  scroll-snap-align: start;

  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
  background:transparent;
  border:0;
  padding:0;
  line-height:0;
}

/* Thumb image: ALLA samma höjd */
.g_thumb img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  display:block !important;

  object-fit:cover !important;
  object-position:center !important;

  border:2px solid transparent !important;
  box-shadow:0 1px 6px rgba(2,6,23,.10) !important;
  background:#f1f5f9 !important;
}

@media (min-width: 860px){
  .g_thumb{ width:92px; height:92px; }
}

.g_thumb.is-active img{
  border-color: rgba(15,23,42,.85) !important;
}

/* Arrows */
.g_nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(2,6,23,.18);
  cursor: pointer;

  display:none; /* visas från 500px */
  align-items: center;
  justify-content: center;

  font-size: 26px;
  line-height: 1;
  user-select: none;
  z-index: 45;
}
.g_prev{ left: 10px; }
.g_next{ right: 10px; }

@media (min-width: 500px){
  .g_nav{ display:flex; }
}

/* Om bara 1 bild: dölj "navigerings-UI" (moderna browsers) */
.g_wrap:not(:has(.g_slide:nth-child(2))) .g_thumbs,
.g_wrap:not(:has(.g_slide:nth-child(2))) .g_dots,
.g_wrap:not(:has(.g_slide:nth-child(2))) .g_nav,
.g_wrap:not(:has(.g_slide:nth-child(2))) .g_counter{
  display:none !important;
}
