/*
============================================================

	Theme Name: F-Archiv
	Theme URI: https://farchiv.apollo1.cz
	Author: Apollo1 – Aleš Loziak
	Author URI:
	Description:
	Version: 1.0
	Text Domain: farchiv

============================================================
*/


/*************************************
+ Grid & Flex
*************************************/
/* ------------------ ––– ------------------ */

:root {
  --grid-gutter-width: 20px;
  --grid-gutter-width-side: 10px;
  --grid-gutter-width-side-minus: -10px;

  --spacer: 20px;
  --c-black: #111;
}

.container {
	position: relative;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--grid-gutter-width-side);
  padding-left: var(--grid-gutter-width-side);
  width: 100%;
}

.jumbotron {

}

/* ------------------ video & iframe responsive ------------------ */
.video-container,
.iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 100%;
    height: auto;
}

.video-container iframe,
.video-container object,
.video-container embed,
.iframe-container iframe {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}


/*************************************
 +Body & Html
*************************************/
html {
  background-color: var(--c-black);
  overflow-x: hidden;
}

body {
	font-family: arial, helvetica, sans-serif;
	font-size: 100%;
	line-height: 1.7em;
	color: #000;
	padding: 0;
	margin: 0;
	background-color: #eee;
	/* background-position: center center;
	background-size: 100%;
	background-attachment: fixed; */

  /* -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale; */
}


/*************************************
 +(X)HTML / HTML 5 Containers
*************************************/

/*************************************
 +(X)HTML / HTML 5 Containers
*************************************/

strong, b { font-weight: bold; }
em, i { font-style: italic; }
small { font-size: smaller }

p, ul, ol, table {
  margin: 0;
  margin-bottom: var(--grid-gutter-width-side);
}

ul, menu, dir {
  display: block;
  list-style-type: disc;
  -webkit-margin-before: 0px;
  -webkit-margin-after: 0px;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
  -webkit-padding-start: 0px;
}

ul li { list-style:disc; list-style-position: outside; margin: 0 0 0 16px; }
ol li { list-style:decimal; list-style-position: outside; margin: 0 0 0 20px; }

sup {
	vertical-align: super;
	font-size: smaller;
	line-height: 0;
}

mark {
	background: #222;
	color: #fff;
	padding: 2px 4px;
}

hr {
	width: 100%;
	border: none;
	border-bottom: 1px solid #ccc;
	-webkit-margin-start: 0;
	-webkit-margin-end: 0;
}


/* ------------------ +A ------------------ */
a {
	color: var(--c-black);
	text-decoration: underline;
}

a:hover, a.post-link {
	text-decoration: none;
  color: var(--c-black);
}

/* ------------------ +img, figure ------------------ */
img {
  max-width: 100%;
}

figure {
	-webkit-margin-before: 0;
  -webkit-margin-after: 0;
  -webkit-margin-start: 0;
  -webkit-margin-end: 0;
}

figcaption {
	font-size: 0.875em;
  line-height: 1.4;
  margin: 10px 0 0;
}


/* ------------------ table ------------------ */
table {
	width: 100%;
	border-top: 1px solid #aaa;
}

	td, th {
		border-bottom: 1px solid #aaa;
		padding: 8px 12px;
	}

  th {
    font-weight: 600;
  }

	tfoot {}

		tfoot td,
		tfoot th {
			border: none;
		}


/* ------------------ forms ------------------ */
form {

}

input, select, textarea {
	background-color: transparent;
	border: none;
  font-size: 1.1em;
	font-weight: 400;
	border: 1px solid #000;
  padding: 8px;
}

label {

}

input[type="submit"] {
	padding: 10px 20px;
	/* text-transform: uppercase; */
  background-color: #000;
  color: #fff;

}

	input[type="submit"]:hover {
		cursor: pointer;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
	}

	select:hover {
		cursor: pointer;
	}


button, .button, .btn, input[type="submit"] {
  display: inline-block;

  border: 2px solid var(--c-black);
  background-color: #fff;
  color: var(--c-black);
  -webkit-font-smoothing: inherit;
  padding: 9px 16px 7px;
  border-radius: 0px;
  text-transform: lowercase;
  font-size: 14px;
  font-weight: normal;

  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  transition: none;

  margin: .375rem 0;
}

  .btn:hover, .btn:focus, .btn:active {
    -webkit-box-shadow: none;
    box-shadow: none;
  }

  .btn-primary {}

    .btn-primary:hover {
      background-color: #000;
      color: #fff;
    }


.spinner-wrapper {
  display: none !important;
  position: fixed;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background-color: rgba(255,255,255,.8);
}

  .spinner-wrapper.is-active {
    display: flex !important;
  }

  .spinner-border {
    position: relative;
    /* left: 50vw; */
    top: 40vh;
    border-width: .35em;
  }

  .spinner-wrapper .sr-only {
    display: none;
  }


/* ------------------ +Hn ------------------ */
h1, h2, h3, h4 {
	line-height: normal;
	font-weight: normal;
	-webkit-margin-before: 0;
  -webkit-margin-after: 0;
}

h1 {
	font-size: 2em;
  -webkit-margin-before: 0em;
	-webkit-margin-after: 0em;
  text-transform: uppercase;
}

  h1 a {
    display: block;
    width: 160px; height: 90px;
    background-size: 100%;
    background-position: left top;
    background-repeat: no-repeat;
    background-image: url('images/h1.png');
  }

    h1 a:hover {
      color: #888
    }

    h1 a span {
    	display: none;
    }

h2 {
	font-size: 28px;
  line-height: 1.25em;
  margin-top: calc(var(--spacer) * 3);
  margin-bottom: calc(var(--spacer) * 1);
  text-transform: lowercase;


  text-transform: uppercase;
}

h3 {
	font-size: 20px;
	-webkit-margin-before: var(--grid-gutter-width-side);
  -webkit-margin-after: var(--grid-gutter-width-side);
}

h4 {
	font-size: 1.3em;
  margin: 40px 0 10px;
}






/*************************************
+General layout elements
*************************************/
.wrapper {
  position: relative;
	width: 100%;
  max-width: 1024px;
  margin: 0 auto;
	padding-left: 0;
	padding-right: 0;
  font-size: 1.5em;
	line-height: 1.4em;
  background: #fff;

  max-width: 100%;
  min-width: 320px;
}

  /* ------------------ header.site-header ------------------ */
	header.site-header {
		border-bottom: 1px solid var(--c-black);
    padding-top: calc(1.5 * var(--spacer));
    padding-bottom: calc(1.5 * var(--spacer));
		margin-bottom: calc(1 * var(--spacer));
    text-transform: lowercase;
	}





/*************************************
 +Menu
*************************************/

/* ------------------ menu-primary ------------------ */
.navbar {
	text-transform: lowercase;
  /* font-size: 1.0625em; */
  text-align: left;
  padding: 0;

  -webkit-box-shadow: none;
  box-shadow: none;
}

.navbar .navbar-toggler {
  color: #000;
  border-radius: 0;
}

  .navbar .nav-link {
    padding: 2px 0 !important;
    margin: 0 17px 0 0;
    display: inline-block !important;
  }

  .navbar-brand {
    /* font-size: 1.375em; */
    text-transform: uppercase;
    padding-top: 2px;
    padding-bottom: 2px;
  }

    .navbar-brand a {
      text-decoration: none;
    }

	.navbar ul {}

		.navbar ul li {
      list-style: none;
      margin: 0;
		}

			.navbar ul li a {
        text-decoration: none;
        border-bottom: 1px solid transparent;
			}

				.navbar ul li a:hover,
        .navbar ul li.current-menu-item a,
        .navbar ul li.current_page_item a {
          border-bottom: 1px solid var(--c-black);
				}

  .hamburger {
    padding: 2px;
    margin-right: -2px;
    height: 28px;
  }

    .hamburger-box {
      width: 32px;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
      width: 30px;
      height: 3px;
      border-radius: 0;
    }

    .hamburger-inner::before {
      top: -9px;
    }

    .hamburger-inner::after {
      bottom: -9px;
    }



  #main-nav {
    text-align: right;
  }

    #main-nav {
      margin-top: calc(1 * var(--spacer));
    }

      #main-nav ul {

      }

        #main-nav ul li {

        }

          #main-nav ul li .nav-link {
            margin: 0 0 10px;
          }







/* ------------- search-form ------------- */
.search-form {
  max-width: 480px;
  top: 0;
  margin: calc(var(--spacer) * .25) auto 30px;
}

  .search-form form {
    max-width: 480px;
  }

  .search-form #searchsubmit {

    letter-spacing: 1px;
    width: 80px;
  }

  .search-form input#s {
    width: calc(100% - 84px);
    text-align: center;
  }

.search-results {
 margin: 60px 0 0;
}


/* ------------------ filter  ------------------ */
#filter {
  text-align: center;
  margin: calc(var(--spacer) * 2) auto;
}


/* ------------------ slider-range  ------------------ */
#slider-range {
  width: 92%;
  position: relative;
  /* max-width: 640px; */
  margin: 0 auto 60px;
  /* margin-left: 1em; */
}

  #slider-range.ui-slider-horizontal {
      height: 3px;
      border-radius: 0;
      border: none;
      background-color: #eee;
  }

    #slider-range .ui-slider-range {
      border-radius: 0;
      background-color: var(--c-black);
      /* top: 2px; */
    }

  #slider-range .ui-slider-handle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border-color: var(--c-black);
    background-color: var(--c-black);
  }

    #slider-range .ui-slider-handle {
      top: -6px;
    }

      #slider-range .ui-slider-handle:hover {
        cursor: pointer;
      }

  #min, #max {
    position: relative;
    top: 22px !important;
    width: 50px;
    text-align: center;
    color: var(--c-black);
    font-size: 1.125em;
  }


/*************************************
+Menu
*************************************/

/* ------------- menu-primary-container ------------- */
.menu-primary-container {
  margin-top: 10px;
}


/*************************************
 +Footer
*************************************/
footer {
  margin-top: 60px;
  border-top: 1px solid #111;
  background-color: #111;
  padding: var(--grid-gutter-width) 0;

  font-size: 13px;
}

  footer, footer * {
    color: #ddd;
  }

    footer a:hover {
      color: #ddd;
      text-decoration: underline;
    }


/*************************************
+
*************************************/

/* ------------------ acf form front-end  ------------------ */
.acf-form {
  width: calc(100% + 24px);
  margin-left: -12px;
}

  .acf-form-fields {}

    .acf-field {}

      .acf-fields>.acf-field {
        padding: 25px 12px;
      }

  .acf-form-submit {
    padding: 15px 12px;
  }


  .acf-form .acf-form-submit {
    margin: 15px 0;
  }

    .acf-form .acf-form-submit input[type="submit"] {

    }


  .acf-form .acf-label {}

    .acf-form .acf-label .description {
      font-size: 13px;
    }



  .acf-form .acf-field--post-title {}

    .acf-form .acf-field--post-title .acf-input-wrap,
    .acf-form .acf-field--post-title .acf-input-wrap input {
      height: auto;
    }

      .acf-form .acf-field--post-title .acf-input-wrap input {
        padding: 6px 8px;
        font-size: 20px;
      }

  .acf-form .acf-field-image {}

    .acf-form .acf-field-image .acf-image-uploader .acf-button {
      margin-left: 16px;
    }


  .acf-form .acf-field-taxonomy {}

    .acf-form .acf-field-taxonomy ul {}

      .acf-form .acf-field-taxonomy ul li {
        display: inline-block;
        margin-right: 12px;
      }


/*************************************
 +FF Archive Page
*************************************/

.ffarchive {
  margin: 0;
}

  .ffarchive h3 {
    font-size: 24px;
    border-bottom: 1px solid;
    border-top: 1px solid;
    padding: 10px 0;
    text-align: center;
  }

  .ffarchive .meta-load-ajax button {
    margin: 0 auto;
    display: block;
  }

  /* .ffarchive .isotope {
    margin-bottom: 40px;
  } */

  .ffarchive-grid {
    /* margin: 0 auto;
    display: flex;
    flex-wrap: wrap; */
  }

  .ffarchive-grid:after {
    content: '';
    display: block;
    clear: both;
  }

  .ffarchive-item {
    width: 100%;

    display: block;
    text-decoration: none;
    text-align: left;

    float: left;
    margin: 20px 7px;
    /* border: 1px solid #eee; */
    box-sizing: content-box;
    overflow: hidden;
    position: relative;

  }

    .ffarchive-item figure {
      display: block;
    }

      .ffarchive-item figure a {
        display: inline-block;
        margin: 0 auto;
      }

        .ffarchive-item figure a img {
          display: block;
          /* width: auto;
          height: 100%; */
          /* max-width: none; */
        }

        .ffarchive-item figure .ffarchive-title,
        .ffarchive-item figure .ffarchive-date {
          display: block;
        }

        .ffarchive-item figure .ffarchive-title {
          height: 36px;
          overflow-y: hidden;
        }

    .ffarchive__image_description {
      margin-top: 5px;
      display: block;
    }


    .meta-show-all-pictures {
      margin: 10px auto;
      display: block;
      text-align: center;
    }

      .meta-show-all-pictures a {

      }

    .ffarchive-item .meta-download {
      margin: 0;
      position: relative;
      top: -4px;
    }

    .ffarchive-item .meta-load-ajax {
      margin: 0 auto;
      display: block;
    }


    /* ------------------ ffarchive-donors  ------------------ */
    .ffarchive-donors-wrapper {
      margin-top: calc(var(--spacer) * 2);
    }

      .ffarchive-donors-list {
        width: 33.3333%;
        display: inline-block;
        vertical-align: top;
        margin-bottom: calc(var(--spacer) * 3);
      }

        .ffarchive-donors-list h3 {
          margin-bottom: calc(var(--spacer) * 1);
          font-weight: 600;
        }

        .ffarchive-donors-list ul {}

          .ffarchive-donors-list ul li {
            list-style: none;
            margin: 2px 0;
          }

            .ffarchive-donors-list ul li a {
              text-decoration: none;
              border-bottom: 1px solid transparent;
            }

            .ffarchive-donors-list ul li a:hover {
              border-bottom: 1px solid var(--c-black);
            }

/*************************************
 +FFArchive Single
*************************************/
.entry-header {
  margin-bottom: calc(2 * var(--spacer));
}

/*************************************
 +FFArchive Map Page
*************************************/
#map-list,
#gm-venue {
  margin: calc(1 * var(--spacer)) 0 calc(2 * var(--spacer));
  min-height: 600px;
}

  .gm-style {}

    .gm-style-iw-d {}

      .gm-style-iw-d .infowindow {
        margin: 0 0 15px;
      }

      .gm-style-iw-d h1 {
        font-size: 1rem;
        margin: 5px 0 10px;
      }

      .gm-style-iw-d .marker-link,
      .gm-style-iw-d .marker-year {
        margin: 6px 0 0;
      }





/*************************************
 +Plugins
*************************************/
/* ------------------ slick  ------------------ */
.slick {}

/* ------------------ GSC  ------------------ */

/* ------------------ fancybox  ------------------ */
.fancybox-custom-layout {

}

  .fancybox-caption-hide {
    opacity: 0;
  }

  /* Change color for backdrop */
  .fancybox-custom-layout .fancybox-bg {

  }

  .fancybox-custom-layout.fancybox-is-open .fancybox-bg {
    opacity: 1;
  }

  /* Move caption area to the right side */
  .fancybox-custom-layout .fancybox-caption {
    display: block;
    opacity: 1;
    background: #333;
    bottom: 0;
    left: auto;
    padding: 62px 24px;
    right: 0;
    top: 0;
    width: 272px;
    text-align: left;
  }

  /* Remove gradient from caption*/
  .fancybox-custom-layout .fancybox-caption::before {
      display: none;
  }

  /* Adjust content area position */
  .fancybox-custom-layout .fancybox-stage {
      right: 342px;
      left: 60px;
  }


  /* Align buttons at the right side  */
  .fancybox-custom-layout .fancybox-toolbar {
      right: 282px;
  }

  /* Remove background from all buttons */
  .fancybox-custom-layout .fancybox-button {
      background: transparent;
  }

  /* Navigation arrows */
  .fancybox-custom-layout .fancybox-navigation .fancybox-button div {
      padding: 2px;
  }

  /* Reposition right arrow */
  .fancybox-custom-layout .fancybox-button--arrow_right {
      right: 282px;
  }

  /* Slide imprint */
  .fancybox-slide-imprint {}

    .fancybox-slide-title {
      margin-bottom: calc(1 * var(--spacer) );
      line-height: 1.3;
    }

    .fancybox-slide-description,
    .fancybox-slide-year,
    .fancybox-slide-author,
    .fancybox-slide-origin,
    .fancybox-slide-keywords {
      margin-bottom: calc(2 * var(--spacer) );
      line-height: 1.3;
    }

    .fancybox-slide-author {}

    .fancybox-slide-origin {}



  /* Caption sidebar  */
  .fancybox-custom-layout.fancybox-hide-sidebar .fancybox-caption {
    display: none;
  }

  .fancybox-custom-layout.fancybox-hide-sidebar .fancybox-stage {
    right: 50px;
  }

  .fancybox-custom-layout.fancybox-hide-sidebar .fancybox-button--arrow_right {
    right: 0;
  }

  .fancybox-custom-layout.fancybox-hide-sidebar .fancybox-toolbar {
    right: 37px;
  }





/* ------------------ ACF + SELECT2  ------------------ */
.select2-results__option {
  font-size: 13px;
  list-style: none;

}

.select2-selection__choice {
  margin: 0;
}






/*************************************
 +Misc
*************************************/
.clearfix:after,
.row:after,
.row:before {
	content: " ";
	visibility: hidden;
	display: block;
	height: 0;
	clear: both;
}

.clearfix:before,
.row:before {
	display: table;
  content: " ";
}

.hidden { display: none !important; }
