/*
---------------------------------------------------------
ARKIVLISTNING
---------------------------------------------------------*/

/* Rubrik och meny */

#lp-our-archives {
  -webkit-box-align: start;
  align-items: flex-start;
  display: -webkit-box;
  display: flex;
  margin: 20px 0 0;
}

#lp-our-archives h2.subheading {
  font-family: 'playfair display',georgia,serif;
  font-size: 2.2rem;
  font-weight: normal;
  margin: 1px 10px 0 0;
  white-space: nowrap;
}

#lp-our-archives ul {
  display: -webkit-box;
  display: flex;
  list-style-type: none;
  margin: 3px 0 0;
  padding: 0;

  flex-wrap: wrap;
}

#lp-our-archives li {
  -webkit-box-align: center;
  align-items: center;
  border-left: 2px solid #d19700;
  color: #000;
  display: -webkit-box;
  display: flex;
  font-weight: bold;
  margin: 4px 0;
  padding: 0 10px;
}

#lp-our-archives li a {
  color: #555;
  font-weight: normal;
  text-decoration: none;
}

#lp-our-archives li a:hover,
#lp-our-archives li a:focus {
  color: #000;
  text-decoration: underline;
}

/* Bläddringen */

.c-pattern-viewer__inner {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.c-pattern-viewer__scrollable {
  overflow-x: auto;
  overflow-y: hidden;

  -webkit-overflow-scrolling: touch;
}

.c-pattern-viewer__list {
  -webkit-box-align: center;
  align-items: center;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  list-style: none;
  margin: 20px 0 30px;
  overflow: hidden;
  padding: 0;

  -webkit-box-pack: start;
  flex-flow: row;
  justify-content: flex-start;
}

.c-pattern-viewer__item {
  background-color: #555;
  background-position: 50% 0;
  background-repeat: no-repeat;
  box-shadow: 0 0 35px 5px rgba(0,0,0,0.3);
  height: 400px;
  margin-left: 0;
  overflow: hidden;
  padding-left: 0;
  position: relative;
  transition: all 0.5s ease;
  width: 10%;

  -webkit-box-flex: 1;
  flex: 1 1 auto;
}


.c-pattern-viewer__item.c-pattern-viewer__item--active {
  background-position: 50% 0;
  width: 35%;
}

.c-pattern-viewer__link {
  display: block;
  height: 100%;
  position: relative;
  width: 100%;
}

.c-pattern-viewer__link a {
  color: #fff;
  text-decoration: none;
}

li.lp-clickable-area:hover .c-pattern-viewer__link a {
  text-decoration: none !important;
}

.c-pattern-viewer__details {
  background: rgba(0,0,0,0.7);
  font-size: 1.3rem;
  left: 0;
  line-height: 225%;
  opacity: 0;
  padding: 10px 0;
  position: absolute;
  top: 0;
  transform: rotate(180deg);
  transition: opacity 0.5s ease,left 0.5s ease;
  -ms-writing-mode: tb-rl;
  z-index: 1;

  writing-mode: vertical-rl;
}

.viewer__list {
  min-width: 100%;
}

.c-pattern-viewer__item--active .c-pattern-viewer__details {
  opacity: 1;
}


/*
---------------------------------------------------------
TILLGÄNGLIGHETSFÖRBÄTTRINGAR
---------------------------------------------------------*/

.c-pattern-viewer__item a {
  color: #fff;
  outline-offset: -3px;
  text-decoration: none;
}

.c-pattern-viewer__image {
  height: 100%;
  width: 100%;

  object-fit: none;
  object-position: 50% 0;
}

/*--- Fokus/hover --- */

.c-pattern-viewer__item.lp-clickable-area:hover,
.c-pattern-viewer__item:has(:focus-visible) {
  width: 35%;
}

.c-pattern-viewer__item a:hover .c-pattern-viewer__details,
.c-pattern-viewer__item a:focus-visible .c-pattern-viewer__details {
  opacity: 1;
  text-decoration: none;
}
