/**
 * @file
 * Subtheme specific CSS.
 */

body {
  min-height: 100vh;
  overflow-y: scroll;
}

html,
body {
  overscroll-behavior-y: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
}

footer {
  display: none;
}

label {
  font-size: 0.9rem;
  margin-left: 0.2rem;
}

table,
table *,
table tr th,
table tr th a,
table tr th a:hover,
table tr td,
table thead tr {
  font-size: unset;
  background: transparent;
  border: none;
  color: inherit;
  font-weight: inherit;
}

.label-capital {
  text-transform: uppercase;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.05em;
}

h1 {
  font-size: calc(38px + (48 - 38) * ((100vw - 300px) / (1600 - 300)));
}

a {
  overflow-wrap: break-word;
}

input,
input:focus,
select,
select:focus {
  box-shadow: none !important;
  border: solid 1px #bebebe !important;
  border-radius: 1rem !important;
  background-color: #fff;
  margin-top: 0 !important;
}

#main-wrapper {
  min-height: calc(100vh - 330px);
}

#content {
  margin-bottom: 100px;
  z-index: 2;
}

.content {
  /*font-size: calc([minimum size] + ([maximum size] - [minimum size]) * ((100vw - [minimum viewport width]) / ([maximum viewport width] - [minimum viewport width])));*/
  font-size: calc(14px + (17 - 14) * ((100vw - 300px) / (1600 - 300)));
}

.title {
  font-size: calc(30px + (40 - 30) * ((100vw - 300px) / (1600 - 300)));
  margin: 1.4rem 0;
}

.text-col-wrapper,
.block-field-blocknodepagebody {
  width: 100%;
  max-width: 860px;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metadata-grid-template {
  grid-template-columns: 28% 68%;
  column-gap: 4%;
  row-gap: 0.4rem;
  padding: 0.5rem 0;
}
.metadata-box {
  margin: 1rem 0;
  padding-top: 0.5rem;
  overflow: auto;
}
.metadata-box > div:empty {
  display: none;
}
.metadata-box-header {
  padding: 0.4rem 0;
  border-bottom: 1px solid #bebebe;
  font-weight: bold;
  color: #a5a2a2;
}
.metadata-table {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent;
}
.metadata-table thead tr {
  border-bottom: 1px solid #bebebe;
}
.metadata-table thead tr th {
  padding-left: 0.5rem;
}
.metadata-table tbody tr td:first-child {
  font-weight: 600;
  width: 31%;
}

#navbar-top,
#navbar-top * {
  padding: 0 !important;
  --bs-gutter-x: 0;
}

#navbar-main {
  height: 80px;
  border-bottom: 1px solid #bebebe;
  z-index: 999;
}

.nav-link {
  font-size: 18px;
  white-space: nowrap;
}

.nav-link,
nav a {
  text-decoration: none;
}

.navbar-brand {
  padding-left: 20px;
  width: 100%;
  max-width: 250px;
  font-size: 26px;
  font-weight: 700;
}

.site-name {
  float: left;
  color: #3b3b3b;
  font-family: "EB Garamond";
  text-transform: uppercase;
  font-size: 30px;
  line-height: 2;
  padding-left: 5px;
}

.navbar-collapse > div,
.navbar-collapse > nav {
  margin: 0 20px;
}

.navbar-brand > img {
  float: left;
  height: 40px;
  margin-right: 10px;
}

.nav-item {
  font-weight: 400;
  font-size: 1.1rem;
}

.navbar {
  --bs-navbar-nav-link-padding-x: 0.8rem;
}

.navbar-nav {
  flex-wrap: nowrap;
  justify-content: space-around;
}

.navbar-toggler {
  margin-right: 10px;
}
.navbar-toggler-icon {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 30, 30, 30.249%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler:focus {
  box-shadow: none !important;
  border: none !important;
}

.dropdown-toggle::after {
  display: none;
  margin-right: 10px;
}

.dropdown-menu {
  position: absolute !important;
  display: block;
  visibility: visible;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s linear;
}

.dropdown-menu.show {
  visibility: visible;
  opacity: 1;
}

.offcanvas {
  justify-content: flex-end;
}

.offcanvas-body {
  align-items: center;
  gap: calc(1vw * 3);
  justify-content: end;
  padding-right: 2vw !important;
}

/* SEARCH */
#edit-search-api-fulltext {
  background-color: transparent;
}

#views-exposed-form-search-page-1 > .row {
  flex-wrap: nowrap;
  justify-content: center;
  margin: 0;
}
#views-exposed-form-search-page-1 > .row > .js-form-item {
  width: 80%;
  padding: 0;
  margin-bottom: 0 !important;
}
#views-exposed-form-search-page-1 .button {
  background: transparent;
  border: none;
  margin: 0;
}
#views-exposed-form-search-page-1 .form-actions {
  position: relative;
  padding: 0;
  width: 0;
}
#views-exposed-form-search-page-1 label {
  display: none;
}
#views-exposed-form-search-page-1 .exposed-form-wrapper {
  align-items: center;
}

.view-search {
  margin-top: 30px;
}

.icon--search {
  content: url("../search-light.png");
  position: absolute;
  bottom: -5px;
  right: 10px;
  height: 22px;
  vertical-align: middle;
}

.pagination {
  margin-top: 20px;
}

/*---------------------*/

.views-label {
  font-weight: 600;
}

/* Image gallery */
#imgFrame {
  width: 100%;
  height: auto;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background-color: #393939;
  padding: 8px;
}

#imgFrame a {
  display: block;
  flex-grow: 1;
  flex-basis: 45%;
}

#imgFrame img {
  width: 100%;
}

/* Map */
#map {
  height: calc(100vh - 80px);
}
#map-small {
  aspect-ratio: 1 / 1;
  border: 1px solid #bebebe;
}
.leaflet-top,
.leaflet-bottom {
  z-index: 998 !important;
}
.map-label {
  color: #ffffff;
  text-shadow: 0 0 4px #000000;
  position: absolute;
  top: -30px;
  left: 26px;
  white-space: nowrap;
  font-size: 1rem;
}

.bef-exposed-form form > div {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: 1rem;
}
.bef-exposed-form .js-form-item {
  flex-basis: 12.6rem;
}

.bef-exposed-form input,
.bef-exposed-form select {
  font-size: 0.9rem;
}

.bef-exposed-form .form-actions {
  display: none;
}

.view-browse-textiles table,
.view-browse-cordage table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.view-browse-textiles table th,
.view-browse-cordage table th {
  border-bottom: 1px solid #767676;
  position: relative;
  padding-right: 14px;
}
.view-browse-textiles table th,
.view-browse-textiles table th a,
.view-browse-cordage table th,
.view-browse-cordage table th a {
  background-color: #9c9c9c;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.view-browse-textiles table tr td,
.view-browse-cordage table tr td {
  border-left: 1px solid #bebebe;
  border-right: 1px solid #bebebe;
}
.view-browse-textiles table tr td:first-child,
.view-browse-textiles table tr td:last-child,
.view-browse-cordage table tr td:first-child,
.view-browse-cordage table tr td:last-child {
  border-left: none;
  border-right: none;
}

.view-header {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.views-view-table thead tr th:not(.is-active) a::after {
  position: absolute;
  bottom: 0;
  right: 2px;
  width: 12px;
  height: 24px;
  opacity: 0.7;
  content: "";
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24'%3e%3cpath fill='%23ffffff' d='M2.611 7.607c-.17.216-.084.393.191.393h10.397c.275 0 .361-.177.191-.393l-5.08-6.464c-.17-.216-.452-.216-.622 0l-5.077 6.464z'/%3e%3cpath fill='%23ffffff' d='M2.611 16.393c-.17-.216-.084-.393.191-.393h10.397c.275 0 .361.177.191.393l-5.08 6.464c-.17.216-.452.216-.622 0l-5.077-6.464z'/%3e%3c/svg%3e")
    no-repeat 50% 50%;
  background-size: auto;
  background-size: contain;
}

.tablesort {
  position: absolute;
  bottom: 0;
  right: 2px;
}

.btn-export {
  font-size: 1rem;
  font-weight: bold;
  background-color: #d1901e;
  padding: 0 1rem;
  color: white;
  border-radius: 1rem;
}

.btn-export:hover,
.btn-export:focus {
  background-color: #c1841a;
  color: white;
}

/* LANGUAGE SWITCHER ------------------------ */
/* Dropdown Button */
.dropbtn {
  background-color: transparent;
  width: 60px;
  height: 45px;
  font-size: 16px;
  border: none;
  border-radius: 1rem;
  font-weight: bold;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: flex;
  justify-content: space-around;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s linear;
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  background-color: white;
  border: none;
  border-radius: 1rem;
  z-index: 999;
  text-align: center;
  font-weight: bold;
}

/* Links inside the dropdown */
.dropdown-content a {
  text-decoration: none;
  display: block;
  font-size: 16px;
  padding: 10px 10px;
}

.dropdown-content a:hover {
  color: #662d91;
  font-weight: bold;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 991px) {
  .dropbtn {
    display: none !important;
  }
  .dropdown-content {
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    background-color: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: space-between !important;
  }
  .dropdown-content a {
    padding-left: 0;
  }
}

.offcanvas.show .dropdown-menu {
  top: 4px;
  left: 100px;
}
.offcanvas.show .dropdown-item {
  padding: 6px 14px;
  background: transparent;
}
.offcanvas.show .dropdown-item a {
  color: #3b3b3b;
  font-size: 16px;
}
.offcanvas.show li a:focus,
.offcanvas.show li a:active {
  outline: none;
  box-shadow: none;
  border: none;
}
.offcanvas.show #edit-search-api-fulltext {
  color: #212529;
}

/* END LANGUAGE SWITCHER ------------------------ */

/* FRONT PAGE ------------------------ */
body.path-frontpage {
  background: rgb(43, 60, 90);
  background: linear-gradient(126deg, rgb(57 82 127) 0%, rgb(16 16 16) 100%);
  color: rgb(227, 227, 227);
}

.path-frontpage #main-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.path-frontpage #navbar-main {
  background: transparent;
  border: none;
  box-shadow: none;
  justify-content: end;
}
.path-frontpage .dropbtn {
  color: rgb(227, 227, 227);
  font-weight: normal;
}
.path-frontpage .offcanvas.show .dropbtn {
  color: rgb(44, 44, 44);
  font-weight: normal;
}
.dropdown-content a:hover {
  color: rgb(43, 60, 90);
}

.path-frontpage .region-secondary-menu .navbar-nav {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-top: 30px;
}
.path-frontpage .region-secondary-menu .nav-link {
  color: rgb(227, 227, 227);
  font-size: calc(15px + (18 - 15) * ((100vw - 300px) / (1600 - 300)));
}
.path-frontpage .region-secondary-menu .nav-link:hover,
.path-frontpage .region-secondary-menu .nav-link:focus {
  color: #ffaa26;
}
.path-frontpage .navbar-toggler {
  border: 1px solid #acacac8b;
}
.path-frontpage .navbar-toggler-icon {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'><path stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}
.path-frontpage .dropdown-menu,
.offcanvas.show .dropdown-menu {
  background: transparent;
  border: none;
  transition: visibility 0s, opacity 0.3s linear;
  padding: 0;
}
.path-frontpage .dropdown-item {
  padding: 6px 0;
  background: transparent;
}
.path-frontpage .dropdown-item a {
  color: rgb(227, 227, 227);
}
.path-frontpage .dropdown-item a:hover {
  color: #ffaa26;
}

.path-frontpage .container {
  max-width: 1600px;
}

.front-page-content-wrapper {
  min-height: 540px;
}

.path-frontpage #content {
  margin-bottom: 0;
}

.path-frontpage .layout__region--content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
}

.path-frontpage .site-name-slogan {
  font-size: calc(26px + (32 - 26) * ((100vw - 300px) / (1600 - 300)));
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: #ffaa26;
}

.path-frontpage .main-section {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.path-frontpage #edit-search-api-fulltext {
  color: rgb(227, 227, 227, 1);
}

.path-frontpage .slider-caption {
  max-width: 680px;
  display: block;
  color: white;
  font-size: 1rem;
}

.path-frontpage .vvjs-item-inner {
  animation: opac 2s ease-out;
}

.path-frontpage .content {
  font-size: calc(15px + (18 - 15) * ((100vw - 300px) / (1600 - 300)));
  margin-right: 10px;
}

/* NEWS ARTCLE ------------------------ */
.article-thumb-date {
  text-transform: uppercase;
  font-weight: bold;
  color: #a32121;
  font-size: 0.9rem;
}
.article-thumb-title {
  max-width: 300px;
  margin: 10px 0;
}
.article-thumb-title a {
  font-size: 18px;
  text-decoration: none;
  color: #3b3b3b;
}
.article-date {
  text-transform: uppercase;
  font-weight: bold;
  color: #a32121;
  font-size: 1rem;
}

/* GLOSSARY ------------------------ */
.view-id-glossary_view {
  display: flex;
  gap: 4rem;
}
.view-id-glossary_view #views-exposed-form-glossary-view-block-1 {
  width: 280px;
}
.view-id-glossary_view .exposed-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.view-id-glossary_view .bef-exposed-form .js-form-item {
  flex-basis: auto;
  padding: 0;
}
.view-id-glossary_view
  #edit-field-glossary-index-letters-target-id--wrapper
  .form-checkbox {
  display: none;
}
.view-id-glossary_view
  #edit-field-glossary-index-letters-target-id--wrapper
  label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  text-align: center;
  margin: 0.2em;
  border-radius: 0.5em;
  background: #eee;
  color: #333;
  font-weight: bold;
  border: 2px solid #ccc;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.view-id-glossary_view
  #edit-field-glossary-index-letters-target-id--wrapper
  input:checked
  ~ label {
  background: #ffaa26;
  color: #fff;
  border-color: #ffaa26;
}
#edit-field-glossary-index-letters-target-id .form-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.view-id-glossary_view #edit-field-glossary-tag-target-id--wrapper .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.view-id-glossary_view #edit-field-glossary-tag-target-id--wrapper input {
  margin: 0;
  width: 1.2rem;
  height: 1.2rem;
}

.view-id-glossary_view .view-content {
  max-height: calc(100vh - 200px);
  max-width: 70%;
  min-width: 300px;
  overflow: auto;
  align-content: flex-start;
  padding: 20px;
  background: #e5e5e5;
}
.view-id-glossary_view .view-content .list-title {
  display: none;
}
.view-id-glossary_view .view-content .views-row {
  margin-bottom: 20px;
}
.view-id-glossary_view .view-content .views-field-title-1 {
  margin-bottom: 15px;
}

/* IMAGE GALLERY ------------------------ */
.view-browse-images .views-view-responsive-grid__item {
  padding: 12px;
  box-shadow: 2px 2px 6px 2px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}
.view-browse-images .views-view-responsive-grid__item img {
  width: 100%;
  height: auto;
}
.view-browse-images .image-gallery-title {
  font-size: 1rem!important;
  text-wrap: balance;
  font-weight: 600;
  margin-top: 0.6rem;
}
