html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  background-color: #fff;
  
  color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
}


.home-page {
    overflow: hidden;
}

main {
  overflow: hidden;
}


/* Bootstrap-standard */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #35af2c;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* ------------------------------
   GEMENSAM DESIGN
-------------------------------- */

.page-title {
  margin: 0 0 50px;

  font-family: "Times New Roman", Times, serif;
  font-size: 50px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;

  text-align: center;
  color: #111;
}




/* ------------------------------
   HEADER startsida
-------------------------------- */


/* dölj header loggan på startsidan*/
.home-page .header-logo-link {
    display: none;
}
/* Länken runt Galleriets logga */
.brand-logo {
  display: block;
  text-decoration: none;
}

/* Galleriets riktiga logga */
.galleriet-logo {
  display: block;

  width: 350px;
  height: auto;

  margin: 0 auto;
}

/* SECOND HAND under loggan */
.brand-subtitle {
  display: block;

  margin-top: 6px;

  font-size: 15px;
  font-weight: 300;

  text-transform: uppercase;
  letter-spacing: 8px;

  color: #555;
}




/* ------------------------------
   HEADER UNDERSIDOR
-------------------------------- */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 14px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
 
  
}

.header-left {
  justify-self: start;
  align-self: center;
}

.header-center {
  text-align: center;
}

/* Svart logga i header på undersidor*/
.header-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-logo {
    width:220px;
    height: auto;
    display:block;
   
}

/* SECOND HAND SVART - LOGGA under Galleriet*/
.header-sublogo {
    width: 120px;
    height: auto;
    display: block;

    margin-top: -45px;
    transform: translate(-6px);
    
}


/* Sociala medier till höger */
.header-right {
  justify-self: end;
  align-self: center;
  padding: 15px;

  display: flex;
  align-items: center;
  gap: 20px;

  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-right a {
  color: #222;
  text-decoration: none;
}

.header-right a:hover {
  opacity: 0.5;
}


/* Hamburgerknapp */
.menu-button {
  padding: 0;

  background: none;
  border: none;

  color: #111;

  font-size: 30px;

  cursor: pointer;
}


/* ------------------------------
   STARTSIDA - HEADER OVANPÅ BILD
-------------------------------- */

.home-page .site-header {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  z-index: 10;

  padding: 28px 60px;

  background-color: transparent;
}

/* Vit text endast på startsidan */

.home-page .brand-subtitle,
.home-page .menu-button,
.home-page .header-right,
.home-page .header-right a {
  color: white;
}


/* ------------------------------
   SIDOMENY
-------------------------------- */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;

  width: 390px;
  max-width: 88%;
  height: 100vh;

  display: flex;
  flex-direction: column;

  padding: 110px 45px 40px;
  background-color: #fff;

  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  padding: 13px 0;

  color: #181818;
  text-decoration: none;
  text-transform: uppercase;

  font-size: 13px;
  font-weight: 300;
  letter-spacing: 2.5px;
}

.mobile-menu a:hover {
  opacity: 0.5;
}


/* Stängknapp i menyn */
.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;

  background: none;
  border: none;

  font-size: 27px;
  font-weight: 200;

  cursor: pointer;
}


/* Mörk bakgrund bakom hamburgermenyn */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 8;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}


/* STARTSIDA */

.frontpage-images {
    position: relative;
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: #1a1a1a;
    overflow: hidden;
}

/* Vänster och höger halva */
.image-side {
    position: relative;
    width: 50%;
    height: 100vh;
    overflow: hidden;
}

/* Bilderna i varje halva */
.slideshow-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bilden som visas just nu */
.active-image {
    z-index: 1;
    opacity: 1;
}

/* Nästa bild ligger ovanpå men är först osynlig */
.next-image {
    z-index: 2;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.2, 0, 0.1, 1);
}

    /* Tonar mjukt fram nästa bild */
    .next-image.show {
        opacity: 1;
    }

/* Mörka sidan som inte är aktiv */
.image-side {
    transition: filter 1s ease;
}

.frontpage-images.left-active #rightSide {
    filter: brightness(55%);
}

.frontpage-images.right-active #leftSide {
    filter: brightness(55%);
}

.hero-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-galleriet-logo {
  width: 500px;
  height: auto;
  display: block;
}

.hero-subtitle {
  margin-top: -70px;

  color: white;

  font-size: 13px;
  font-weight: 300;

  text-transform: uppercase;
  letter-spacing: 5px;
}


/* ------------------------------
   GEMENSAM LAYOUT FÖR SIDOR MED BILDER ("editorial")
-------------------------------- */

.editorial-page {
  position: relative;
  overflow: hidden;
}

.editorial-background {
  position: absolute;
  inset: -8% 0;

  display: flex;

  width: 100%;
  height: 116%;

  z-index: 0;

  will-change: transform;
}

.editorial-background img {
  width: 50%;
  height: 100%;

  object-fit: cover;
}

.editorial-content {
  position: relative;
  z-index: 1;

  width: 75%;
  max-width: 1000px;
  margin: 60px auto;

  margin: 60px auto;
  padding: 55px;

  background-color: rgba(255, 255, 255, 0.94);
}

/* ------------------------------
   SÄLJ HOS OSS
-------------------------------- */


.sell-intro {
  max-width: 720px;
  margin: 0 auto 55px;

  text-align: center;
}


.sell-intro p {
  max-width: 620px;
  margin: 0 auto;

  font-size: 15px;
  line-height: 1.9;

  color: #444;
}

.sell-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  width: 100%;
  margin: 0 auto;
  opacity: 0.80;

  border-top: 1px solid #ddd;
}

.sell-step {
  min-height: 280px;

  padding: 35px 38px;

  background-color: #fff;

  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.sell-step:nth-child(3n) {
  border-right: none;
}

.sell-step span {
  display: block;
  margin-bottom: 30px;

  font-size: 15px;
  letter-spacing: 3px;

  color: #777;
}

.sell-step h2 {
  margin-bottom: 18px;

  font-size: 17px;
  font-weight: 300;

  text-transform: uppercase;
  letter-spacing: 2px;
}

.sell-step p {
  margin: 0;

  font-size: 13px;
  line-height: 1.8;

  color: #555;
}


/* OM OSS */

.about-intro {
  max-width: 720px;
  margin: 0 auto;

  text-align: center;
}

.about-intro p:not(.page-label) {
  margin-bottom: 28px;

  font-size: 15px;
  line-height: 1.95;

  color: #444;
}

.mirror-image {
  transform: scaleX(-1);
}


/* KONTAKT */

.contact-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.contact-list {
  max-width: 700px;
  margin: 0 auto;
  border-top: 1px solid #ddd;
}

.contact-item {
  padding: 27px 0;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.contact-item h2 {
  margin: 0 0 12px;

  font-size: 13px;
  font-weight: 300;

  text-transform: uppercase;
  letter-spacing: 2px;
}

    .contact-item p {
        font-size: 12px;
        white-space: nowrap;
    }

.contact-item p {
  margin: 0;

  font-size: 14px;
  line-height: 1.9;

  color: #555;
}

.contact-item a {
  color: #1a1a1a;
  text-decoration: none;
}

.contact-item a:hover {
  opacity: 0.5;
}


/* ------------------------------
   FAQ
-------------------------------- */


.faq-intro {
  max-width: 800px;
  margin: 0 auto 75px;

  text-align: center;
}



.faq-list {
  max-width: 850px;
  margin: 0 auto;

  border-top: 1px solid #ddd;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-item summary {
  padding: 27px 0;

  list-style: none;
  cursor: pointer;

  font-size: 13px;
  font-weight: 300;

  text-transform: uppercase;
  letter-spacing: 2px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;

  font-size: 18px;
  font-weight: 200;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 680px;

  margin: 0;
  padding: 0 0 30px;

  font-size: 14px;
  line-height: 1.9;

  color: #555;
}

.faq-dropin {
    white-space: nowrap;
}


/* ------------------------------
   VILLKOR
-------------------------------- */

.terms-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 75vh;
}

.terms-split.reverse .terms-image {
  order: 2;
}

.terms-split.reverse .terms-text {
  order: 1;
}

.terms-image {
  overflow: hidden;
}

.terms-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terms-text {
  display: flex;
  flex-direction: column;

  /* Innehållet börjar högre upp */
  justify-content: flex-start;

  padding: 70px 80px;

  background-color: #fefefe;
}

.terms-intro {
  margin-bottom: 35px;
  text-align: left;
}

.terms-intro h2 {
  margin: 0 0 8px;

  font-family: "Bodoni Moda", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.terms-date {
  margin: 0;

  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: #777;
}

.terms-section {
  padding: 25px 0;
  border-top: 1px solid #ddd;
}

.terms-section h3 {
  margin: 0 0 14px;

  font-family: "Bodoni Moda", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.terms-section p,
.terms-section li {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
}

.terms-section ul {
  margin: 12px 0 18px;
  padding-left: 20px;
}
.terms-section h3 {
  margin-bottom: 14px;
  font-family: "Bodoni Moda", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}
.terms-company {
 text-align:center;
 margin-top: 30px;
}

/* Sälj hos oss - mellanläge */
@media (min-width: 769px) and (max-width: 1050px) {

    .sell-steps {
        grid-template-columns: 1fr 1fr;
    }

    .sell-step {
        min-height: auto;
        padding: 36px 28px;
    }

    .sell-step:nth-child(3n) {
        border-right: 1px solid #ddd;
    }

    .sell-step:nth-child(2n) {
        border-right: none;
    }
}

/* ------------------------------
   MOBILANPASSNING
-------------------------------- */

@media (max-width: 768px) {



  /* Header */
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    padding: 18px 20px;
  }

  .header-right {
    display: none;
  }

  .galleriet-logo {
  width: 145px;
}

  .brand-subtitle {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .page-title {
  font-size: 38px;
  margin-bottom: 35px;
}

  /* Sidomeny */
  .mobile-menu {
    width: 67%;
    padding: 95px 28px 35px;
  }

    /* Startsida */
    .frontpage-images {
        position: relative;
        display: block;
        width: 100%;
        height: 100svh;
        overflow: hidden;
    }

    /* Vänster sida fyller hela mobilskärmen */
    #leftSide {
        width: 100%;
        height: 100svh;
    }

    /* Dölj högra sidan på mobil */
    #rightSide {
        display: none;
    }

    /* Bilden fyller hela skärmen */
    #leftSide .slideshow-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #leftSide .slideshow-image {
        display: none;
    }

    #leftSide {
        background-image: url('/images/galleriet 1.JPG');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

  /* Sälj hos oss - mobil */


.sell-content {
    width: calc(100% - 24px);
    margin: 18px auto;
    padding: 32px 18px;
}

.sell-intro {
    margin-bottom: 30px;
}

.sell-intro p {
    font-size: 14px;
    line-height: 1.7;
}

.sell-steps {
    grid-template-columns: 1fr;
}

.sell-step {
    min-height: auto;
    padding: 28px 20px;
    border-right: none;
}

.sell-step span {
    margin-bottom: 18px;
}

.sell-step h2 {
    margin-bottom: 12px;
    font-size: 15px;
}

.sell-step p {
    font-size: 13px;
    line-height: 1.7;
}

  /* Om oss */

  .about-intro p:not(.page-label) {
    font-size: 14px;
    line-height: 1.9;
  }


 /* Kontakt */

.contact-intro {
  margin-bottom: 50px;
}


.contact-item {
  padding: 22px 0;
}

.contact-item h2 {
  font-size: 12px;
  letter-spacing: 1.5px;
}

  /* FAQ */
 
  .faq-intro {
    margin-bottom: 50px;
  }


  .faq-item summary {
    padding: 22px 0;

    font-size: 12px;
    letter-spacing: 1.5px;
  }

.hero-galleriet-logo {
  width: 280px;
}

.hero-subtitle {
  margin-top: -40px;
  font-size: 14px;
  letter-spacing: 3px;
}

.hero-brand {
  top: 50vh;
}

.editorial-background {
    transform: none !important;
    inset: 0;
    height: 100%;
  }

  .faq-dropin {
    white-space: nowrap;
}

  
/* Villkor - mobil */
.terms-split {
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.terms-split.reverse .terms-image,
.terms-split.reverse .terms-text {
    order: initial;
}

.terms-image {
    height: 45vh;
    min-height: 300px;
}

.terms-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terms-text {
    padding: 38px 24px 48px;
}

.terms-intro {
    margin-bottom: 28px;
}

.terms-intro h2 {
    font-size: 24px;
}

.terms-section {
    padding: 22px 0;
}

.terms-section h3 {
    font-size: 18px;
}

.terms-section p,
.terms-section li {
    font-size: 14px;
    line-height: 1.75;
}

}


/* Admin - slideshow images */

.admin-image-count {
    margin: 24px 0 16px;
    font-size: 14px;
}

.admin-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0 40px;
}

.admin-image-card {
    border: 1px solid #d8d8d8;
    background: #fff;
    padding: 10px;
}

.admin-image-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f3f3;
}

    .admin-image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.admin-delete-button {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid #222;
    background: transparent;
    cursor: pointer;
}

    .admin-delete-button:hover {
        background: #222;
        color: #fff;
    }

@media (max-width: 900px) {
    .admin-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .admin-images {
        grid-template-columns: 1fr;
    }
}
/* Admin - image upload */

.admin-upload-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.admin-file-input {
    display: none;
}

.admin-file-button,
.admin-upload-button {
    padding: 11px 20px;
    border: 1px solid #111;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-file-button {
    background: transparent;
    color: #111;
}

.admin-upload-button {
    background: #111;
    color: #fff;
}

.admin-file-button:hover {
    background: #111;
    color: #fff;
}

.admin-upload-button:hover {
    background: #333;
}

.admin-file-name {
    font-size: 13px;
    color: #666;
}

/* Admin - page layout */

.admin-page {
    padding-left: 30px;
    padding-right: 30px;
    font-family: "Times New Roman", Times, serif;
}

    .admin-page h1,
    .admin-page p,
    .admin-page button,
    .admin-page label,
    .admin-page span,
    .admin-page a {
        font-family: "Times New Roman", Times, serif;
    }
/* Admin - main page */

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid #111;
    background: transparent;
    color: #111;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

    .admin-action-button:hover {
        background: #111;
        color: #fff;
    }
/* Admin - opening hours */

.admin-hours-form {
    max-width: 650px;
    margin: 30px 0 35px;
}

    .admin-hours-form h2 {
        margin-top: 30px;
        margin-bottom: 15px;
        font-size: 22px;
        font-weight: normal;
    }

    .admin-hours-form > div {
        display: grid;
        grid-template-columns: 90px 1fr 60px 1fr;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .admin-hours-form label {
        font-size: 15px;
    }

    .admin-hours-form input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #aaa;
        background: #fff;
        font-family: "Times New Roman", Times, serif;
        font-size: 15px;
    }

        .admin-hours-form input:focus {
            outline: 1px solid #111;
            border-color: #111;
        }

    .admin-hours-form .admin-upload-button {
        margin-top: 20px;
    }

@media (max-width: 600px) {
    .admin-hours-form > div {
        grid-template-columns: 1fr;
    }

    .admin-hours-form label {
        margin-top: 5px;
    }
}

/* Admin - centered home */

.admin-home {
    text-align: center;
}

    .admin-home .admin-actions {
        justify-content: center;
    }

.admin-welcome {
    margin-top: 8px;
    font-size: 18px;
}
.admin-back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    border: 1px solid #111;
    color: #111;
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

    .admin-back-button:hover {
        background: #111;
        color: #fff;
    }

/* trigger deploy */