@font-face {
  font-family: 'Resavska';
  src: url('https://repozitorijum.tesla-museum.org/fonts/resavska.otf');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Resavska-italic';
  src: url('https://repozitorijum.tesla-museum.org/fonts/resavska-italic.otf');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Resavska-bold';
  src: url('https://repozitorijum.tesla-museum.org/fonts/resavska-bold.otf');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Resavska-bold-italic';
  src: url('https://repozitorijum.tesla-museum.org/fonts/resavska-bold-italic.otf');
  font-weight: normal;
  font-style: normal;
}

/*---HEADER & FOOTER*/

/*header container*/
header {
   background-color: #1f303a;
}

/*header menu*/
.top-bar {
   background-color: transparent;
   max-width: 1300px;
   margin: auto;
   padding: 16px 15px;
}
.top-bar ul {
   background-color: transparent;
}
.site-title img {
   max-height: 48px;
}
.dropdown.menu > li > a {
  font-family: 'Resavska';
   color: #ffffff;
font-size: 16px;
  letter-spacing: 0.2px;
  padding: 12px 12px 11px 12px;
  text-transform: uppercase;
}
.dropdown.menu > li > a:hover {
   color: #c1d3df;
}
.menu .active > a {
   background: transparent;
}
.button {
   background-color: #d9e1e6;
   color: #1a3444;
}
.button:hover {
   background-color: #2f4e61;
   color: #ffffff;
}
.top-bar input {
   border: 0;
}

/*footer container*/
footer {
   max-width: 1300px;
   text-align: center;
   color: #AAAAAA;
}

/*---GLOBAL PAGE SETTINGS---*/

/*page content width*/
body:not(.browse) #content {
   max-width: 1300px;
}

body:not(.browse) #content {
   padding: 1.5rem 0;
}

@media print, screen and (min-width: 40em) {
  body:not(.browse) #content {
   padding-right: 0;
    padding-left: 0;
   }
}

/*document type label next to the title*/
.label {
   display: none;
}

/*50/50 columns in item page*/
.grid-margin-x > .medium-4 {
   width: calc(50% - 1.875rem);
}
.grid-margin-x > .medium-8 {
   width: calc(50% - 1.875rem);
}


/*---TYPOGRAPHY---*/

/*reduce font boldness in firefox*/
html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  font-weight: 400;
}

@-moz-document url-prefix() {
  body {
    font-weight: lighter !important;
  }
} 

h1 {
    font-size: 46px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 35px;
    line-height: 1.15;
    letter-spacing: -0.2px;
}

h3 {
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

h4 {
    font-size: 21px;
    line-height: 1.2;
    font-family: 'resavska-bold' !important;
}

p {
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: 0px;
}

h1, .h1, h2, .h2, h3, .h3, h4, .resource-meta .resource-link .resource-name, h1.site-title, .h4, h5, .h5, h6, .h6 {
   color: #1a3444;
   font-family: 'Resavska';
}

body {
   color: #1a3444;
   font-family: 'Resavska';
}

/* Pregled inventara */
.resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin: 0;
}
.resource-grid .resource {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
}

.resource-grid .resource-meta {
    height: 100%;
}

.resource-grid .resource-link {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-grid .resource-link img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    border: none;
    box-shadow: none;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    height: auto;
    width: 80%;
}

.resource-grid .resource-name {
    font-family: "Resavska" !important;
    font-size: 1.2rem !important;
}

.resource-grid .description {
    display: none;
}


/*---CUSTOM  ELEMENTS---*/
.pocetna_header {
   align-content: center;
}

.arhiva-50-50 {
   align-content: center;
}

.cta-button {
color: #1a3444;
   min-width: 140px;
  padding: 13px 19px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background-color: #d1dfe7 !important;
}

/* Naslov na napredna pretraga stranici */
.item.resource.browse #content h2::after {
    content: 'Преглед инвентара';
    font-size: 46px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.item.resource.browse #content h2 span {
    display: none;
}

/* Kontrole na stranici napredna pretraga */
.item.resource.browse #content .browse-controls {
    margin: 40px 0 10px 0;
}
.item.resource.browse #content .browse-controls .advanced-search {
    display: none;
}
.item.resource.browse #content .browse-controls .sorting {
    margin-right: 0;
}


/* Item stranica */

.item.resource.show #content .resource-title {
    margin-top: 20px;
}
.item.resource.show #content .resource-title span {
    font-size: 46px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.item.resource.show #content .right-sidebar > dl {
    border: 1px solid #ddd;
    padding: 20px;
}
.item.resource.show #content .right-sidebar > dl .property {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.item.resource.show #content .right-sidebar > dl .property:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.item.resource.show #content .main-with-sidebar .media-list {
    border: 1px solid #ddd;
    padding: 20px;
}
.item.resource.show #content .main-with-sidebar .media-list .property {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.item.resource.show #content .main-with-sidebar .media-list .property > dt {
    grid-column: 1/3;
    margin-bottom: 19px;
}