.path-frontpage .layout-sidebar-first #block-rff2024-content,
.path-frontpage .layout-sidebar-first #block-rff2024-page-title {
    /* display: none; */
}


body {
  overflow: auto;
  background: url(../../images/background_turquoise.jpg);
  color: #363636;
}

.layout-container {
  background-color: #fff;
}

main {
  padding: 0 1em 1em;
}


/* Header */  

header {
  width: 100%;
  text-align: center;
}

header {
  background: url(../../images/background_turquoise.jpg);
  padding-top: 1em;
}

.site-slogan {
  color: #F9F8DA;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0 1em;
  font-size: 1em;
  margin-bottom: 1em;
  text-shadow: 1px 1px 1px #525252;
}

.region-footer {
  background: url(../../images/background_turquoise.jpg);
  padding: 2em;
}

#block-rff2024-sidfot li + li a {
  background: url(../../images/icons/instagram_white.svg) no-repeat 0px 0px;
  display: inline-block;
  width: 32px;
  height: 32px;
  background-size: cover;
  text-indent: -9999px;
  overflow: hidden;
  }

  #block-rff2024-sidfot li a {
  background: url(../../images/icons/facebook_white.svg) no-repeat;
  display: inline-block;
  width: 32px;
  height: 32px;
  background-size: cover;
  text-indent: -9999px;
  overflow: hidden;
}

  .region-footer #block-rff2024-sidfot li +li + li a {
  background: url(../../images/icons/twitter-x_white.svg) no-repeat 0px 0px;
  display: inline-block;
  width: 34px;
  height: 32px;
  background-size: cover;
  text-indent: -9999px;
  overflow: hidden;
  }

  .region-footer ul.menu {
    display: flex;
    justify-content: center; /* Centrerar <li>-elementen horisontellt */
    list-style: none; /* Tar bort standardpunktlistor */
    padding: 0; /* Tar bort eventuellt standardutfyllnad */
    margin: 0; /* Tar bort marginaler */
  }
  
  .region-footer li.menu-item {
    margin: 0 10px; /* Mellanrum mellan <li>-elementen */
  }

/* Modalsök */
.ui-dialog-title {
  text-transform: uppercase;
  font-size: 2em;
  color: #525252;
}

.ui-dialog .ui-dialog-title {
  overflow: inherit;
  opacity: .9;
}

.ui-dialog .ui-dialog-titlebar {
  background: #F9F8DA !important;
  border: none;
}

.ui-dialog .ui-dialog-titlebar-close {
  height: 2em;
  width: 2em;
  background-color: rgb(122, 167, 166);
  border-radius: 2em;
  border: none;
  top: 43%;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
  background-color: rgb(122, 167, 166);
}

.ui-dialog label,
.ui-dialog .search-help-link,
.search-help-link,
.ajax-progress-throbber {
  display: none;
}

.ui-widget-overlay,
.ui-dialog .search-results {
  background: #F9F8DA !important;
  opacity: .9 !important;
}

.ui-dialog-content div.item-list {
  display: none;
}

.ui-widget.ui-widget-content {
  background-color: #F9F8DA;
  border: 1px solid #000;
  padding-top: 0;
  opacity: .9 !important;
}

.ui-dialog .ui-widget-content {
  padding-top: 0;
}

.ui-dialog .ui-dialog-titlebar {
  padding-bottom: 0;
}

.ui-dialog .search-basic .form-search {
  border-color: none;
}

/* Search */

.form-type-search label {
  display: none;
}

ol.search-results {
  padding: 0;
}

.path-search ol {

}


/* Fonts and spacing */
body {
  font-size: 16px; /* Base font size */
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, Helvetica, sans-serif;
} 

p {
  letter-spacing: 0.02em;
  line-height: 1.7em;
}

#block-rff2024-primary-local-tasks a,
.layout-sidebar-first p a,
.layout-sidebar-first p a:visited {
color: #525252;
border-bottom: 1px dotted #525252;
text-decoration: unset;
}

h2 a {
  text-decoration: none;
  color: #525252;
}

.node__submitted {
  padding-bottom: 1em;
}


/* Reklambilder och metadata */

/*.image-style-ad-800,*/
.layout-sidebar-second img
   {
  width: 100%;
  height: auto;
}

.views-field-field-adimage .field-content,
.field--name-field-adimage .field__item {
  text-align: center;
}

.field--name-field-adimage img,
.views-field-field-adimage img {
  display: inline-block;
  height: auto;
  max-width: 100%;
}

.views-field-field-image-ad img,
.field--name-field-image-ad img {
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.node__metadata {
  margin-top: 1em;
}

.views-field-field-magazinecover {
  margin: 0 2em 1em 0;
}

div.coverimage {
  padding: 0.4em;
  z-index: 69;
  font-weight: 600;
  font-style: italic;
  position: relative;
  transform: rotate(-4deg);
  -ms-transform: rotate(-4deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=-4);
  margin-bottom: -.5em !important;
  text-indent: 0.8em;
  background: url(../../images/tape.png) no-repeat;
}

.views-field-field-magazinecover img {
  border: 1px solid #ccc;
  margin-top: 0.2em;
  margin-left: 0.8em;
  transform: rotate(3deg);
  -ms-transform: rotate(3deg);  
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
  padding: 0.1em;
}

.body-wrapper.node__metadata {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 2rem;
}

.body-wrapper.node__metadata .content-body {
  flex: 0 0 auto;
}

.body-wrapper.node__metadata .additional-info,
.body-wrapper.node__metadata .tags {
  flex: 1 1 auto;
}

.body-wrapper.node__metadata img {
  max-width: 100%;
  height: auto;
  display: block;
}


.field-node-field-tags a,
.views-field-field-etiketter a {
  display: inline-flex;
  margin: 0 .5em 1em 0; 
  color: #F9F8DA;
  background-color: #363636;
  border-radius: 2em;
  padding: 0.5em 1em;
  text-transform: uppercase;
  font-size: 0.8em;
  text-decoration: none;
}

.field-node-field-tags a:hover,
.views-field-field-etiketter a:hover {
  text-decoration: none;
  background-color: #87b9b8;
  color: #363636;
}

/* Google ads på front */ 
#ad-subnode {
  border-top: 1px dotted #000;
  border-bottom: 1px dotted #000;
  margin: 1.5em 0 2em 0;
  padding: 2em 0;
}

/* Liknande annonser */
.view-related-content .view-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px; /* Mellanrum mellan bilderna */
}

.view-related-content .views-row {
  flex: 1 1 23%; /* Gör att varje bild tar upp cirka 23% av bredden */
  max-width: 23%;
}

.view-related-content .views-field img {
  width: 100%; /* Gör bilderna responsiva inom sina container */
  height: auto; /* Bevara bildens proportioner */
}

/* Pager */

.pager ul {
  padding: 0;
  margin-top: 2em;
}

.pager li {
  padding: 0;
  background: #fff;
}

.pager li a,
.pager li a:hover,
.pager li.pager-ellipsis {
  background-color: #525252;
  color: #F9F8DA;
  padding: .7em;
  border-radius: 25px;
  border-bottom: none;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: none;
}

.pager li.pager-current {
  background-color: #fff;
  color: #525252;
  border: 1px solid #525252;
  padding: 1em;
  border-radius: 25px;
}

li.pager__item {
  margin: 0 1em;
}

/* When using mini-pager */
.pager__link--is-active {
  color: #fff;
}

/* Kommentarer och formulär */
.field--name-field-comments {
  display: block !important;
}

.comment-wrapper {
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 0.11em solid #525252;
}

.comment__pubdate {
  font-size: 75%;
  color: #bfbfbf;
}

.field-type-comment .indented {
  margin-left: .7rem; /** RESET **/
}

.indented {
  padding-left: 1rem;
  border-left: 4px dotted #525252;
}

img.align-left {
  margin: 0 1em 1em 0;
}

span.comment-reply__link-wrapper::before {
  font-family: FontAwesome,sans-serif;
  float: left;
  vertical-align: top;
  padding: 0 0.5rem 0 0;
  content: "";
  color: #525252;
}

ul.inline li a::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px; /* Mellanrum mellan ikonen och texten */
  background-image: url('../../images/icons/reply.svg');
  background-size: contain; /* Anpassar SVG:en till elementets storlek */
  background-repeat: no-repeat;
  vertical-align: middle; /* Justerar ikonen med texten */
}

ul.inline a {
  color: #525252;
  border-bottom: 1px dotted #525252;
  text-decoration: unset;
}

#edit-comment-body-0-format {
  display: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input#edit-homepage,
input#edit-name,
input#edit-mail,
input#edit-email,
input#edit-namn-first,
input#edit-e-post,
textarea, 
select {
  width: 98%;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: .5em;
}

textarea {
  width: 100%;
}

#edit-mail--description {
  font-size: 0.7em;
}

input#edit-actions-submit,
#edit-submit {
  color: #fcfcfc;
  background-color: #87b9b8;
  border: 1px #87b9b8 solid;    
  text-shadow: 1px 1px 2px #525252;
  padding: .4em 1em;
  border-radius: 5px;
}

.comment-form label {
  font-weight: bold;
  font-size: .9em;
}

/* BLOCKQUOTE */

blockquote {
  border: none !important;
  margin: 3rem auto;
  padding: 15px 23px 5px 90px !important;
  max-width: 70%;
  background: #525252 url("../../images/quotes.png") no-repeat 10px 10px !important;
}

blockquote p.quote {
  font-family: 'Courier New' !important;
  font-weight: bold;
  font-size: 1.4em;
  margin-bottom: 0.3em;
  color: #F9F8DA !important;
  line-height: 1.75rem;
}

blockquote p.source {
  font-family: 'Courier New' !important;
  font-style: italic;
  text-align: right;
  color: #F9F8DA !important;
  font-size: 1rem;
}

blockquote p:first-child:before {
  content: unset;
}

/* CTA */

p.cta {
  text-align: center;
}

p.cta a {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  padding: 16px 26px;
  border: 0px solid #c0081e;
  border-radius: 10px;
  background: #525252;
  font-size: 2em;
  color: #F9F8DA !important;
  text-decoration: none;
  margin: 10px 0;
}

#block-rff2024-primary-local-tasks {
  margin: 2em;
}

/* Mobil (upp till 480px) */
@media  screen and (max-width: 481px) {

  .pager ul {
    margin: 0 0 2em;
  }

}

/* Mobil (upp till 768px) */
@media  screen and (max-width: 768px) {

  main {
    display: block;
  }

  .layout-sidebar-first,
  .layout-sidebar-second {
    width: 100%;
  } 

  #block-rff2024-site-branding img {
    width: 92vw;
  }

  .messages--status {
    margin: 2em;
  }

}

/* Tablet (769px och uppåt) */
@media screen and (min-width: 769px) {

  .site-logo img {
    width: 75%;
  }

  main {
    display: flex;
    flex-wrap: nowrap;
  }

  .layout-sidebar-first {
    width: 75%;
    padding: 1em;
  }

  .path-galleri .layout-sidebar-first {
    width: 100%;
  }

  .path-galleri .masonry img {
    padding: 0;
    border: none;
  }

  .layout-sidebar-second {
    width: 25%;
    padding: 1em;
    flex-grow: 1; /* Tar upp resterande plats */
  }

  .views-field-field-image-ad img,
  .field--name-field-image-ad img {
  padding: 1em;
  }

  .messages--status {
    margin: 3em;
  }

  /* Menu */

  nav#block-rff2024-main-menu {
    background-color: #525252;
    margin-top: 1.5em;
  }
  
  #block-rff2024-main-menu .menu {
    display: flex;
    gap: 20px; /* Mellanrum mellan meny-elementen */
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  #block-rff2024-main-menu .menu-item {
    list-style: none;
    padding-top: 0 !important;
  }
  
  #block-rff2024-main-menu  ul.menu {
    text-transform: uppercase;
    padding: .7em;
  }
  
  #block-rff2024-main-menu ul.menu li a {
    font-weight: 500;
    text-decoration: none;
    color: #F9F8DA;
    padding: .7em;
    letter-spacing: .12em;
  }
  
  #block-rff2024-main-menu ul.menu li a.is-active {
    background: #fff;
    font-weight: bold;
    color: #525252;
  }

}

/* Desktop (1025px och uppåt) */
@media  screen and (min-width: 1025px) {

  .layout-container {
    max-width: 1200px;
    margin: 0 auto; /* Center content */
  }

  .messages--status {
    margin: 3em;
  }

}

/* Specialare för menyn */
@media  screen and (max-width: 1025px) {

  #block-rff2024-main-menu {
    display: none;
  }

}
