
:root {
  --primary: #8ec3eb;		/* svetlo plava */
  --accent: #db9833;		/* zlato rjava */
  --secondary: #2a6592;		/* temno modra */
  --warning: #f6d8ac;		/* bež */
  --info: #9E8139;			/* rjava */
  --danger: #E5811F;		/* oranžna */
  --success: #54D342;		/* zelena */
  --dark: #343542;			/* temno siva */
  --light: #f8f9fa;			/* skoraj bela */
  --cs: #5B5355;			/* rjavo siva */
  --grey: #c0c0c0;			/* svetlo siva */
}

body {
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.5;
  color: #343542;
}

a {
  color: #07be94;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  color: #03a882;
  text-decoration: underline;
}


.text-xs {
  font-size: 12px !important;
}

.text-sm {
  font-size: 14px !important;
}

.text-md {
  font-size: 1rem !important;
}

.text-lg {
  font-size: 18px !important;
}

.text-xl {
  font-size: 20px !important;
}
/*
@media screen and (max-width: 600px) {
  .text-xl {
    font-size: 10px;
  }
}
*/
.text-justify {
  text-align: justify;
  text-justify: inter-word;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}



/* Color systems */
.bg-primary {
  background-color: #8ec3eb !important;
}

a.bg-primary:hover, a.bg-primary:focus {
  background-color: #07be94 !important;
}

.bg-accent {
  background-color: #DB9833 !important;
}

a.bg-accent:hover, a.bg-accent:focus {
  background-color: #e93577 !important;
}

.bg-secondary {
  background-color: #2a6592 !important;
}

a.bg-secondary:hover, a.bg-secondary:focus {
  background-color: #3d49f0 !important;
}

.bg-success {
  background-color: #54D342 !important;
}

a.bg-success:hover, a.bg-success:focus {
  background-color: #80b12d !important;
}

.bg-info {
  background-color: #9E8139 !important;
}

a.bg-info:hover, a.bg-info:focus {
  background-color: #07a2c8 !important;
}

.bg-warning {
  background-color: #F6D8AC !important;
}

a.bg-warning:hover, a.bg-warning:focus {
  background-color: #d3bf0d !important;
}

.bg-danger {
  background-color: #E5811F !important;
}

a.bg-danger:hover, a.bg-danger:focus {
  background-color: #e73832 !important;
}

.bg-grey {
  background-color: #c0c0c0 !important;
}

a.bg-grey:hover, a.bg-grey:focus {
  background-color: #62726d !important;
}

.bg-light {
  background-color: #F8F9FA !important;
}

a.bg-light:hover, a.bg-light:focus {
  background-color: #E1EBE8 !important;
}

.bg-dark {
  background-color: #343542 !important;
}

a.bg-dark:hover, a.bg-dark:focus {
  background-color: #1e1f1c !important;
}

.text-primary {
  color: #8ec3eb !important;
}

a.text-primary:hover, a.text-primary:focus {
  color: #07be94 !important;
}

.text-accent {
  color: #db9833 !important;
}

a.text-accent:hover, a.text-accent:focus {
  color: #f8f9fa !important;
}

.text-secondary {
  color: #2a6592 !important;
}

a.text-secondary:hover, a.text-secondary:focus {
  color: #db9833 !important;
}

.text-success {
  color: #54D342 !important;
}

a.text-success:hover, a.text-success:focus {
  color: #80b12d !important;
}

.text-info {
  color: #9E8139 !important;
}

a.text-info:hover, a.text-info:focus {
  color: #07a2c8 !important;
}

.text-warning {
  color: #F6D8AC !important;
}

a.text-warning:hover, a.text-warning:focus {
  color: #d3bf0d !important;
}

.text-danger {
  color: #E5811F !important;
}

a.text-danger:hover, a.text-danger:focus {
  color: #e73832 !important;
}

.text-grey {
  color: #c0c0c0 !important;
}

a.text-grey:hover, a.text-grey:focus {
  color: #62726d !important;
}

.text-light {
  color: #F8F9FA !important;
}

a.text-light:hover, a.text-light:focus {
  color: #E1EBE8 !important;
}

.text-dark {
  color: #343542 !important;
}

a.text-dark:hover, a.text-dark:focus {
  color: #1e1f1c !important;
}

.text-body {
  color: #252921 !important;
}


.border-primary {
  border-color: #8ec3eb !important;
}

.border-secondary {
  border-color: #DB9833 !important;
}

.border-success {
  border-color: #54D342 !important;
}

.border-info {
  border-color: #9E8139 !important;
}

.border-warning {
  border-color: #F6D8AC !important;
}

.border-danger {
  border-color: #E5811F !important;
}

.border-grey {
  border-color: #c0c0c0 !important;
}

.border-light {
  border-color: #F8F9FA !important;
}

.border-dark {
  border-color: #343542 !important;
}




.btn {
  padding: 8px 24px;
}
.btn-tel {
  color: #2a6592;
  background-color: #8ec3eb;
  border-color: transparent;
}
.btn-tel:hover {
  color: #db9833;
  background-color: #8ec3eb;
  border-color: transparent;
}

.breadcrumb {
  background-color: #f8f9fa;
}

.breadcrumb-dark .breadcrumb-item a {
  color: #8ec3eb;
}

.breadcrumb-dark .breadcrumb-item a:hover {
  color: #07be94;
  text-decoration: none;
}

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
  display: inline-block;
  padding-right: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  content: "/";
}

.breadcrumb-dark .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.8);
}


.navbar {
  min-height: 70px;
}

.navbar-brand {
  font-weight: 600;
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar-nav {
  margin-top: 10px;
  border-top: 1px solid #E8EEE4;
  flex-shrink: 0;
}

.navbar-nav .nav-link {
  transition: all .2s ease;
}

.navbar-nav .btn {
  font-size: 14px;
}

.navbar-light .navbar-nav .nav-link {
  color: rgba(192, 192, 192, 0.8);
}

.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
  color: #c0c0c0;
}

.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active {
  font-weight: 500;
  color: #8ec3eb;
}


@media (min-width: 576px) {
  .navbar-expand-sm .navbar-nav {
    margin-top: 0;
    border-top: none;
  }
  .navbar-expand-sm .navbar-nav .nav-link {
    padding-right: 16px;
    padding-left: 16px;
  }
  .navbar-expand-sm .navbar-nav {
    align-items: center;
  }
}

@media (min-width: 768px) {
  .navbar-expand-md .navbar-nav {
    margin-top: 0;
    border-top: none;
  }
  .navbar-expand-md .navbar-nav .nav-link {
    padding-right: 16px;
    padding-left: 16px;
  }
  .navbar-expand-md .navbar-nav {
    align-items: center;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    margin-top: 0;
    border-top: none;
  }
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 16px;
    padding-left: 16px;
  }
  .navbar-expand-lg .navbar-nav {
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .navbar-expand-xl .navbar-nav {
    margin-top: 0;
    border-top: none;
  }
  .navbar-expand-xl .navbar-nav .nav-link {
    padding-right: 16px;
    padding-left: 16px;
  }
  .navbar-expand-xl .navbar-nav {
    align-items: center;
  }
}

.page-link {
  margin-left: 5px;
  min-width: 40px;
  color: #c0c0c0;
  border: 1px solid #dee6e5;
  text-align: center;
  border-radius: 4px;
}

.page-link:hover {
  color: #2D3B38;
  background-color: #E1EBE8;
  border-color: #dee6e4;
}

.page-link:focus {
  box-shadow: none;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #8ec3eb;
  border-color: #8ec3eb;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  cursor: auto;
  background-color: #fff;
  border-color: #dee2e6;
}

.pagination-lg .page-link {
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.pagination-lg .page-item:first-child .page-link {
  border-top-left-radius: 0.3rem;
  border-bottom-left-radius: 0.3rem;
}

.pagination-lg .page-item:last-child .page-link {
  border-top-right-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
}

.pagination-sm .page-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.pagination-sm .page-item:first-child .page-link {
  border-top-left-radius: 0.2rem;
  border-bottom-left-radius: 0.2rem;
}

.pagination-sm .page-item:last-child .page-link {
  border-top-right-radius: 0.2rem;
  border-bottom-right-radius: 0.2rem;
}


.img-place {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  text-align: center;
  overflow: hidden;
}

.img-place > img {
  width: 100%;
  height: 100%;
}

.bg-image {
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-image-parallax {
  background-attachment: fixed;
}

.bg-image-overlay-dark {
  position: relative;
}

.bg-image-overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  background-color: #343542;
}

.bg-image > * {
  position: relative;
  z-index: 10;
}

.informacija {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(221, 221, 221, 0.7);
  visibility: hidden;
  cursor: pointer;
  transition: all .2s ease;
  z-index: 1100;
}

.back-to-top::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: -4px auto;
  width: 12px;
  height: 12px;
  border-top: 2px solid #555;
  border-right: 2px solid #555;
  -webkit-transform: rotate(-45deg);
     -moz-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

.back-to-top:hover {
  background: #8ec3eb;
}

.back-to-top:hover::after {
  border-color: #fff;
}


.page-section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}

.page-hero {
  position: relative;
  height: 550px;
  z-index: 10;
}

.page-banner {
  position: relative;
  height: 300px;
  z-index: 10;
}

.page-hero.overlay-dark::before,
.page-banner.overlay-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(52, 53, 66, 0.4);
  z-index: 1;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
  font-size: 14px;
}

.hero-section,
.banner-section {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100%;
  color: #ffffff;
  z-index: 10;
}

.hero-section .subhead {
  text-transform: uppercase;
  letter-spacing: 4px;
}

.hero-section h1 {
  margin-bottom: 32px;
}


.card-logotipi {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 20px;
  margin: 0 auto;
  width: 100%;
  height: 100px;
  font-size: 20px;
  line-height: normal;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(192, 192, 192, 0.2);
}

.card-logotipi p {
  margin-top: 10px;
  margin-left: 32px;
}


.krog {
  flex-shrink: 0;
  padding: 0;
  width: 60px;
  height: 60px;
  line-height: 64px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
}
 
.card-navodila {
  display: block;
  margin: 15px auto;
  width: 100%;
  max-width: 240px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(192, 192, 192, 0.2);
  overflow: hidden;
}
.card-navodila-mid {
  display: block;
  margin: 15px auto;
  width: 100%;
  max-width: 380px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(192, 192, 192, 0.2);
  overflow: hidden;
}
.card-navodila .text-xl {
  font-weight: 500;
}

.card-navodila .header {
  position: relative;
  width: 100%;
  max-height: 260px;
  overflow: hidden;
}

.card-navodila .header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(52, 53, 66, 0.36);
  opacity: 0;
  transition: opacity .2s linear;
}

.card-navodila:hover .header::before {
  opacity: 1;
}


.card-navodila .header img {
  width: 100%;
}


@media (min-width: 768px) {
  .card-logotipi {
    width: 260px;
  }
}


.card-cenik {
  position: relative;
  display: block;
  max-width: 464px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #E5E5E5;
  overflow: hidden;
}

.card-cenik .header {
  width: 100%;
  height: 280px;
  background-color: #c0c0c0;
  overflow: hidden;
}

.card-cenik .header .post-thumb {
  position: relative;
  overflow: hidden;
}

.card-cenik .header .post-thumb img {
  width: 100%;
  transition: transform .2s linear;
}

.card-cenik .header .post-thumb:hover img {
  transform: scale(1.2);
}

.card-cenik .body {
  padding: 15px 20px;
}

.card-cenik .post-category {
  position: absolute;
  top: 15px;
  left: 20px;
  z-index: 9;
}

.card-cenik .post-category a {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  background-color: #2a6592;
  color: #fff;
  border-radius: 40px;
}

.card-cenik .post-category a:hover {
  text-decoration: none;
}

.card-cenik .post-title,
.card-cenik .post-title a {
  color: #343542;
}

.card-cenik .post-title:hover,
.card-cenik .post-title a:hover {
  text-decoration: none;
  color: #8ec3eb;
}

.card-cenik .site-info {
  margin-top: 12px;
  font-size: 12px;
  color: #2a6592;
}



.firma-blok {
  position: relative;
  display: block;
}

.firma-blok .firma-slika {
  position: relative;
  display: block;
  margin-bottom: 32px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.firma-blok .post-title {
  margin-bottom: 24px;
  font-weight: 400;
}

.firma-blok .post-content {
  font-size: 18px;
  line-height: 1.7;
  color: #c0c0c0;
}

.firma-blok .firma-slika img {
  width: 100%;
}




/* parametri za servisni modul */
.servis-text12 {
  font-size: 18px;
  line-height: 1.7;
  text-align: justify;
  color: #343542;
}
.servis-slika img {
  width: 100%;
}
.servis-slika {
  position: relative;
  display: block;
  margin-bottom: 32px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}


.servis-blok {
  position: relative;
  display: block;
  padding: 15px 24px;
  margin-bottom: 32px;
  background-color: #f8f9fa;   /*skoraj bela */
  border-radius: 8px;
  border: 1px solid #5B5355;   /* temno siva */
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.2);
}

.servis-blok::after {
  display: block;
  clear: both;
  content: "";
}

.servis-blok-naslov {
  font-weight: 600;
  margin-bottom: 24px;
  color: #2a6592;      /* temno modra */
}

.servis-blok-naslov::after {
  content: '';
  display: block;
  margin-top: 10px;
  width: 80px;
  height: 3px;
  background-color: #8ec3eb;  /* svetloplava */
  border-radius: 40px;
}

/* parametri za servisni modul konec */






/* parametri za navodila */

/* Ustvarimo tabelo za prikaz skupin in dokumentov */
.table-container {
  display: table;
  width: 100%;
}

/* Ustvarimo razred za levo polje tabele */
.table-left {
  display: table-cell;
  width: 20%;
  vertical-align: top;
}

/* Ustvarimo razred za desno polje tabele */
.table-right {
  display: table-cell;
  width: 20%;
  vertical-align: top;
}
/* Ustvarimo razred za srednje polje tabele */
.table-middle {
  display: table-cell;
  width: 60%;
  vertical-align: top;
}

/* Ustvarimo razred za vsak gumb skupine */
.group-butj {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  text-decoration: none;
  color: #343542;
  background-color: #db9833;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  overflow-wrap: break-word;
  transition-duration: 0.2s;
}

/* Ustvarimo hover za aktivni gumb skupine */
.group-butj:hover {
	background-color: #343542;
	color: #db9833;
}

/* Ustvarimo razred za aktivni gumb skupine */
.group-butj.active {
  background-color: #f8f9fa;
}

/* Ustvarimo razred za vsak gumb skupine */
.group-butb {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  text-decoration: none;
  color: #f8f9fa;
  background-color: #2a6592;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  overflow-wrap: break-word;
  transition-duration: 0.2s;
}

/* Ustvarimo hover za aktivni gumb skupine */
.group-butb:hover {
	background-color: #8ec3eb;
	color: #2a6592;
}

/* Ustvarimo razred za aktivni gumb skupine */
.group-butb.active {
  background-color: #f8f9fa;
}

/* Ustvarimo mrežo za prikaz dokumentov */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 10px;
  padding: 10px;

}

/* Ustvarimo razred za vsak dokument */
.grid-item {
  border-radius: 15px;
  text-align: center;

}

/* Ustvarimo razred za sliko dokumenta */
.grid-image {
  width: 150px;
  height: 150px;
  border-radius: 5%;
  object-fit: contain;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f8f9fa;  /* skoraj belo ozadje slik */
  box-shadow: 5px 5px 10px gray; /* To pomeni, da bo vsaka slika imela senčenje širine 5px in višine 5px, zamegljenostjo 10px in sivo barvo */
}

/* Ustvarimo razred za ime dokumenta */
.grid-name {
  font-weight: bold;
}

/* Ustvarimo razred za iskalnik */
.search-container {
  margin: 20px;
}

/* Ustvarimo polje za vnos iskalnega niza */
.search-input {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  text-align: center;
}

/* Ustvarimo gumb za iskanje */
.search-gumb {
  padding: 10px;
  border-radius: 20px;
  width: 100%;
  color: #343542;
  background-color: #c0c0c0;
}


/* Prilagodimo tabelo in mrežo za manjše zaslone */
@media only screen and (max-width: 600px) {
  
 /* Nastavimo tabelo na en stolpec */
 .table-container,
 .table-left,
 .table-middle,
 .table-right {
   display: block;
   width: auto;
 }
 
 /* Nastavimo mrežo na en stolpec */
 .grid-container {
   grid-template-columns: repeat(1, 1fr); /* To pomeni, da bo vsak stolpec zavzel celotno širino mreže */

 }
}


/* parametri za navodila konec */











.categories {
  position: relative;
  list-style: none;
  padding-left: 0;
}

.categories li {
  display: block;
  float: left;
  margin-bottom: 12px;
  width: 50%;
}

.categories li a {
  display: inline-block;
  width: 90%;
  padding: 6px 12px;
  background-color: #E1EBE8;
  color: #c0c0c0;
  border-radius: 4px;
  transition: all .2s ease;
}

.categories li a:hover {
  text-decoration: none;
  background-color: #d5dfdc;
  color: #5B5355;
}

.categories li a span {
  float: right;
  margin-left: 8px;
  padding: 3px 6px;
  background-color: #c0c0c0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 40px;
}


.blog-item {
  position: relative;
  display: flex;
  flex-direction: row;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #E8EEE4;
}

.blog-item .post-thumb {
  flex-shrink: 0;
  position: relative;
  display: inline-block;
  margin-right: 15px;
  width: 100px;
  height: 80px;
  background-color: #A1AAA7;
  overflow: hidden;
}

.blog-item .post-thumb img {
  width: auto;
  height: 100%;
}

.blog-item .post-title a {
  color: #2a6592;
  transition: all .2s ease;
}

.blog-item .post-title a:hover {
  color: #07be94;
  text-decoration: none;
}

.tagcloud {
  position: relative;
  display: block;
}

.tag-cloud-link {
  display: inline-block;
  padding: 4px 10px;
  margin-top: 4px;
  margin-bottom: 4px;
  border: 1px solid #d7dfdc;
  border-radius: 40px;
  font-size: 14px;
  color: #c0c0c0;
  transition: all .2s ease;
}

.tag-cloud-link:hover,
.tag-cloud-link:focus {
  text-decoration: none;
  background-color: #f8f9fa;
  color: #07be94;
  border-color: #07be94;
}

.banner-home {
  padding: 0;
  background-color: #8ec3eb;
  color: #fff;
}

.banner-home .img-banner {
  display: block;
  max-width: 200px;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.banner-home .img-banner img {
  width: 100%;
}

.page-footer {
  position: relative;
  display: block;
  padding-top: 80px;
  padding-bottom: 16px;
  background-color: #2D3B38;
  color: #fff;
}

.page-footer h5 {
  font-weight: 500;
  margin-bottom: 16px;
}

.page-footer hr {
  border-color: #4F5E5B;
}

.footer-menu {
  position: relative;
  list-style: none;
  padding-left: 0;
}

.footer-menu a,
.footer-link {
  display: inline-block;
  padding-top: 6px;
  padding-bottom: 6px;
  color: rgba(255, 255, 255, 0.6);
  transition: all .2s ease;
}

.footer-menu a:hover,
.footer-link:hover {
  text-decoration: none;
  color: #fff;
}

.footer-link {
  padding: 0;
  margin-bottom: 16px;
}

.contact-form {
  display: block;
  max-width: 900px;
  margin: 15px auto;
}

.maps-container {
  position: relative;
  display: block;
  width: 100%;
  height: 350px;
  background-color: #E1EBE8;
}

#google-maps {
  width: 100%;
  height: 350px;
}

.custom-img-1 {
  width: auto;
  max-width: 390px;
}

.custom-index {
  z-index: 11;
}









/* slajdšov */

.carousel {
  display: block;
  text-align: left;
  position: relative;
  margin-bottom: 22px;
}
.carousel > input {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}
.carousel > input:nth-of-type(6):checked ~ .carousel__slides .carousel__slide:first-of-type {
  margin-left: -500%;
}
.carousel > input:nth-of-type(5):checked ~ .carousel__slides .carousel__slide:first-of-type {
  margin-left: -400%;
}
.carousel > input:nth-of-type(4):checked ~ .carousel__slides .carousel__slide:first-of-type {
  margin-left: -300%;
}
.carousel > input:nth-of-type(3):checked ~ .carousel__slides .carousel__slide:first-of-type {
  margin-left: -200%;
}
.carousel > input:nth-of-type(2):checked ~ .carousel__slides .carousel__slide:first-of-type {
  margin-left: -100%;
}
.carousel > input:nth-of-type(1):checked ~ .carousel__slides .carousel__slide:first-of-type {
  margin-left: 0%;
}
.carousel > input:nth-of-type(1):checked ~ .carousel__thumbnails li:nth-of-type(1) {
  box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}
.carousel > input:nth-of-type(2):checked ~ .carousel__thumbnails li:nth-of-type(2) {
  box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}
.carousel > input:nth-of-type(3):checked ~ .carousel__thumbnails li:nth-of-type(3) {
  box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}
.carousel > input:nth-of-type(4):checked ~ .carousel__thumbnails li:nth-of-type(4) {
  box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}
.carousel > input:nth-of-type(5):checked ~ .carousel__thumbnails li:nth-of-type(5) {
  box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}
.carousel > input:nth-of-type(6):checked ~ .carousel__thumbnails li:nth-of-type(6) {
  box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}

.carousel__slides {
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
}

.carousel__slide {
  position: relative;
  display: block;
  flex: 1 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: all 300ms ease-out;
  vertical-align: top;
  box-sizing: border-box;
  white-space: normal;
}
.carousel__slide figure {
  display: flex;
  margin: 0;
}
.carousel__slide div {
  position: relative;
  width: 100%;
}
.carousel__slide div:before {
  display: block;
  content: "";
  width: 100%;
  padding-top: 66.6666666667%;
}
.carousel__slide div > img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.carousel__slide img {
  display: block;
  flex: 1 1 auto;
  object-fit: cover;
}
.carousel__slide figcaption {
  align-self: flex-end;
  padding: 20px 20px 0 20px;
  flex: 0 0 auto;
  width: 25%;
  min-width: 150px;
}
.carousel__slide .credit {
  margin-top: 1rem;
  color: rgba(0, 0, 0, 0.5);
  display: block;
}
.carousel__slide.scrollable {
  overflow-y: scroll;
}

.carousel__thumbnails {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  margin: 0 -10px;
}
.carousel__slides + .carousel__thumbnails {
  margin-top: 20px;
}
.carousel__thumbnails li {
  flex: 1 1 auto;
  max-width: calc((100% / 6) - 20px);
  margin: 0 10px;
  transition: all 300ms ease-in-out;
}
.carousel__thumbnails label {
  display: block;
  position: relative;
}
.carousel__thumbnails label:before {
  display: block;
  content: "";
  width: 100%;
  padding-top: 100%;
}
.carousel__thumbnails label > img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.carousel__thumbnails label:hover, .carousel__thumbnails label:focus {
  cursor: pointer;
}
.carousel__thumbnails label:hover img, .carousel__thumbnails label:focus img {
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.25);
  transition: all 300ms ease-in-out;
}
.carousel__thumbnails img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}