@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Fonts */
@font-face {
  font-family: "SuisseScreen_Light";
  src: url("/wp-content/themes/overtone/fonts/SuisseScreen-Light.woff") format("woff");
}




/* Scroll */
html {
    scroll-behavior: smooth;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

body,
html {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Sitewide */

* {
    min-width: 0;
}

body {
    margin: 0;
    padding-top: 0;
    font-family: "Roboto";
    background-color: #e8edf1;
}

img,svg, video {
    max-width: 100%;
    width: 100%;
    display: block;
    height: auto;
}

h1,h2,h3,h4,h5,h6,p,a,span {
    display: block;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: normal;
}

p, li {
    margin-bottom: 1em;
}

figure {
    display: block;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

a {
    text-decoration: none;
    color: inherit;
}


ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0;
}

.hidden {
    display: none!important;
}

.main_width {
    padding-top: 37px;
}

.template_home {
    padding-top: 31px;
}

/* Header */
.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 16px;
    padding-left: 28px;
    padding-right: 32px;
    
}

.logo h1{
    color: #1c1c1c;
    font-size: 20px;
    line-height: 24px;
}

.logo h1:hover {
    opacity: 0.7;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: default;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    color: #1c1c1c;
    padding-bottom: 6px;
}

.dropdown-toggle svg {
    width: 24px;
    padding-top: 2px;
    margin-left: 4px;
}

.dropdown-toggle svg path {
    fill: #1c1c1c;
}


/*.dropdown-toggle::after {
    content: "▾"; 
    margin-left: 6px;
    font-size: 16px;
}*/

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #e8edf1;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
    min-width: 240px;
}

.dropdown-menu a {
    color: #1c1c1c;
    padding: 16px;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

.dropdown-menu a:hover {
    background-color: #d0d5d9;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


/* Home */
.projectGrid {
    display: flex;
    flex-wrap: wrap;
    width: 90vw;
    max-width: 1272px;
    margin: auto;
    justify-content: space-between;
}

.project {
    max-width: 293px;
    width: 20vw;
    margin-bottom: 61px;
}

.project:hover {
    opacity: 0.7;
}

.projectImage {
    width: 20vw;
    margin-bottom: 1vw;
    max-width: 293px;
}

.projectImage img {
    object-fit: cover;
    height: 100%;
    aspect-ratio: 1/1;
}

.projectTitle h2 {
    color: #1c1c1c;
    font-family: "Roboto";
    font-size: 16px;
    line-height: 20px;
    padding-left: 5px;
}

.homeLinks {
    padding-bottom: 5vw;
    display: flex;
    width: 90vw;
    max-width: 1272px;
    justify-content: space-between;
    margin: auto;
}

.homeLink {
    max-width: 293px;
    width: 20vw;
    height: 10vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homeLink:hover {
    opacity: 0.7;
}

.homeLink:nth-child(1) {
    background-color: #8d2f2f;
}

.homeLink:nth-child(2) {
    background-color: #cdaa52;
}

.homeLink:nth-child(3) {
    background-color: #2e6a31;
}

.homeLink:nth-child(4) {
    background-color: #223891;
}

.homeLink span {
    color: #e6e6e6;
    font-size: 20px;
    letter-spacing: 0.1px;
}

/* Single */
.singleContent {
    width: 90vw;
    max-width: 1272px;
    margin: auto;
}

.wp-block-image img {
    margin-bottom: 10px;
}

.singleTitle h2 {
    color: #1c1c1c;
    font-family: "Roboto";
    font-size: 16px;
    text-align: center;
    margin-bottom: 60px;
}

figcaption {
    color: #1c1c1c;
    font-family: "Roboto";
    font-size: 15px;
    text-align: center;
}

/* Slider */
.wp-block-gallery {
  position: relative;
  overflow: hidden;
}

.wp-block-gallery .wp-block-image {
  display: none;
}

.wp-block-gallery .wp-block-image.active {
  display: block;
}

.slider-nav-button {
    display: none;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background-color: #202124;
  border-radius: 100%;
  padding: 7px;
  border: 0;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
}

.wp-block-gallery:hover .slider-nav-button {
    display: block;
}

.slider-nav-button:hover {
    opacity: 0.5;
}


.slider-nav-button.prev {
  left: 10px;
}

.slider-nav-button.next {
  right: 10px;
}

.slider-nav-button svg path {
    color: #e8eaed;
}

/* Arhiv */
.template_arhiv .singleTitle h2 {
    text-align: left;
    text-transform: uppercase;
    margin-left: -20px;
}

.template_arhiv .wp-block-gallery {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 33px;
    margin-bottom: 33px;
}

.template_arhiv .wp-block-gallery .wp-block-image {
    display: block;
    margin-bottom: 15px;
    max-width: 400px;
    width: 400px;
    max-height: 290px;
    height: 290px;
}

.template_arhiv .wp-block-image img {
    margin-bottom: 0;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Video */
.template_video p {
    font-size: 16px;
    line-height: 24px;
}

.template_video .singleContent p:nth-child(2) {
    margin-bottom: 56px;
}

.template_video .wp-block-embed {
    margin-bottom: 48px;
}

.template_video .wp-block-embed iframe {
    width: 620px;
    height: 420px;
}

/* Tekst */
.template_text {
    padding-bottom: 200px;
}

.template_text p {
    font-size: 16px;
    line-height: 24px;
}

.template_text a {
    display: inline;
    text-decoration: underline;
}

.langChange {
    text-align: right;
    margin-bottom: 72px;
}

.langChangeButton {
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.marginBig {
    margin-bottom: 70px;
}

@media (max-width: 768px) {
    .main_width {
        padding-top: 10vw;
    }
    
    .projectGrid {
        flex-direction: column;
    }
    
    .project {
        width: 90vw;
        height: auto;
        margin-bottom: 6vw;
    }
    
    .projectImage {
        width: 90vw;
        height: auto;
        margin-bottom: 3vw;
    }
    
    .projectTitle h2,
    figcaption{
        font-family: "Roboto";
        font-size: 3.6vw;
        line-height: 4vw;
        text-align: center;
    }
    
    .header {
        padding-top: 2vw;
        padding-left: 4vw;
        padding-right: 8vw;
    }
    
    .wp-block-image {
        margin-bottom: 10vw;
    }
    
    .wp-block-image img {
        margin-bottom: 3vw;
    }
    
    .logo h1 {
        font-size: 6vw;
    }
    
    .dropdown {
        font-size: 3.6vw;
    }
    
    .dropdown-toggle {
        padding: 3vw;
        padding-bottom: 2vw;
    }
    
    .dropdown-toggle::after {
        margin-left: 1.5vw;
        font-size: 3.6vw;
    }
    
    .dropdown-menu {
        min-width: 30vw;
    }
    
    .dropdown-menu a {
        padding: 3vw;
    }

    .homeLinks {
        padding-top: 10vw;
        padding-bottom: 10vw;
        width: 90vw;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: auto;
    }
    
    .homeLink {
        width: 42.5vw;
        height: 20vw;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 5vw;
    }
    
    .homeLink span {
        font-size: 3.6vw;
    }
    
    .singleTitle h2 {
        font-size: 3.8vw;
        line-height: 4.5vw;
        margin-bottom: 5vw;
    }

}

