@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --bg-top: #FAFAFA;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --border: #E5E7EB;

  --primary: #E31E24;
  --primary-hover: #FF2B32;

  --text: #111827;
  --text-secondary: #2B3543;
  --text-muted: #4C535F;

  --hero-gradient-color: 245, 245, 245;
  --hero-gradient: linear-gradient(
      to right,
      rgba(245, 245, 245, 1) 0%,
      rgba(245, 245, 245, 1) 35%,
      rgba(245, 245, 245, 0) 70%
  );
}

html[data-theme="dark"] {
  --bg-top: #050507;
  --bg: #080A0D;
  --surface: #11151A;
  --border: #232A33;

  --primary: #E31E24;
  --primary-hover: #FF2B32;

  --text: #FFFFFF;
  --text-secondary: #E5E7EB;
  --text-muted: #A1AAB5;

  --hero-gradient-color: 8, 10, 13;
  --hero-gradient: linear-gradient(
      to right,
      rgba(8, 10, 13, 1) 0%,
      rgba(8, 10, 13, 1) 35%,
      rgba(8, 10, 13, 0) 70%
  );
}

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
}
a {
  color: var(--text-secondary);
}
a:hover, a.active {
  text-decoration: none;
  color: var(--text-muted);
}
h1, h2, h3 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
}
h1 {
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  font-size: 4.5rem;
  line-height: 4.5rem;
}
h2.d-flex {
  gap: 8px;
}
#album h1 {
  font-size: 3.5rem;
  line-height: 4rem;
}
#body_tag h1 {
  margin-top: 1rem;
}
.text_secondary {
  color: var(--text-secondary) !important;
}
.text_muted {
  color: var(--text-muted) !important;
}
.text_primary {
  color: var(--primary) !important;
}
.size125 {
  font-size: 1.25rem;
}
#menu {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-style: normal;
}
#tagy {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-style: normal;
}
#obsah {
  min-height: 90vh;
}
header nav, main, footer > div {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
header {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-top);
}
footer {
  background-color: var(--bg-top);
}
#nav_logo {
  width: 250px;
  color: white;
}
html[data-theme="light"] #nav_logo {
  color: black;
}
#nav_logo svg {
  width: 100%;
  height: auto;
}
.navbar-dark .navbar-nav .nav-link {
  color: var(--text-muted);
}
.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus {
  color: var(--primary-hover);
}
html .navbar-dark .navbar-toggler {
  color: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 0, 0, 0.31);
}
html .navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
html[data-theme="dark"] .navbar-dark .navbar-toggler {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.31);
}
html[data-theme="dark"] .navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.search-wrapper {
  position: relative;
  max-width: 700px;
}
.search-input {
  height: 40px;
  padding-right: 55px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 340px;
}
.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 22px;
  /*pointer-events: none;*/
  cursor: pointer;
}
.theme-toggle {
  display: inline-flex;
  cursor: pointer;
}
.theme-toggle input {
  display: none;
}
.theme-toggle__track {
  width: 40px;
  height: 25px;
  padding: 3px;
  border-radius: 999px;
  border: 2px solid var(--text);
  background: var(--surface);
  transition: 0.25s ease;
}
.theme-toggle__thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  transition: 0.25s ease;
}
.theme-toggle input:checked + .theme-toggle__track {
  background: #2B2F36;
  border-color: #fff;
}
.theme-toggle input:checked + .theme-toggle__track .theme-toggle__thumb {
  transform: translateX(14px);
  background: #fff;
}

.section_container {
  display: flex;
  flex-direction: column;
}
#div_levy {
  width: 100%;
}
#div_pravy {
  width: 100%;
  padding: 1rem 1.5rem;
}
#uvod_top_nadpis {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  padding: 2rem;
}
#uvod_top_text {
  max-width: 45ch;
  line-height: 2;
}
#album #uvod_top_nadpis {
  width: 60%;
}
#uvod_top_nadpis_popis, #uvod_top_cisla {
  font-size: 0.85rem;
  display: flex;
  gap: 2rem;
  flex-direction: row;
}
#body_hledej #uvod_top_cisla {
  margin-top: 1rem!important;
}
#uvod_top_cisla i, #uvod_top_nadpis_popis i {
  color: var(--primary);
}
#gallery-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.uvod_gallery_item {
  position: relative;
  /*overflow: hidden;*/
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.uvod_gallery_item.is-new {
  opacity: 0;
  transform: translateY(24px);
}
.uvod_gallery_item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.uvod_gallery_item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.1) saturate(1.1);
  border-radius: 0.25rem;
}
.uvod_gallery_item:hover img {
  transform: scale(1.04);
  filter: none;
}
.uvod_gallery_item img {
  transition: transform 0.5s ease;
}
.uvod_gallery_item h3 {
  position: absolute;
  bottom: 0px;
  left: 0px;
  font-size: 15px;
  background-color: rgba(0,0,0,0.75);
  margin: 0;
  padding: 0.75rem 0.5rem;
  width: 100%;
  /*opacity: 0;*/
  pointer-events: none;
  /*clip-path: inset(100% 0 0 0);*/
  /*transform: scale(1.04);*/
  transform-origin: bottom center;
  transition: all 0.5s ease, clip-path 0.5s ease;
  color: silver;
}
.uvod_gallery_item:hover h3 {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  bottom: calc(-2% - 1px);
  transform: scale(1.04);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.photo-item {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg);
  aspect-ratio: 3 / 2;
}
.photo-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}
.photo-item:hover img {
  transform: scale(1.04);
}
.photo-item.is-new {
  opacity: 0;
  transform: translateY(20px);
}
.photo-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}
#load-more-photos {
  height: 1px;
}
#top_img {
  position: relative;
  display: block;
}
#top_img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.tag {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 300 !important;
  line-height: 1;
  text-decoration: none;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-transform: lowercase;
}
.tag-count {
  font-size: 13px;
}
.tag:hover,
.tag.active {
  color: var(--text);
}

.tag:hover .tag-count,
.tag.active .tag-count {
  color: rgba(255,255,255,.65);
}

@media (max-width: 1499px) {
}

/* Large devices - screen-lg (šířka mensi než 1200px) */
@media (max-width: 1199px) {
  #uvod_top_nadpis {
    padding: 1.5rem 1rem;
  }
  #album h1 {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

/* Medium devices - screen-md (šířka mensi než 992px) */
@media (max-width: 991px) {
  #gallery-list {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 {
    font-size: 3rem;
    line-height: 3rem;
  }
  #album h1 {
    font-size: 2rem;
    line-height: 2rem;
  }
  #uvod_top_nadpis {
    padding: 1rem 1rem;
  }
  #uvod_top_nadpis_popis, #uvod_top_cisla {
    font-size: 0.85rem;
    gap: 0.3rem;
    /*flex-direction: column;*/
  }
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
  }
  .search-wrapper {
    display: none !important;
  }
  #navbarMenu {
    position: absolute;
    background: var(--bg);
    top: 75px;
    width: 100%;
    left: 0;
    z-index: 10;
    text-align: right;
  }
}

/* Small devices - screen-sm (šířka mensi než 768px) */
@media (max-width: 767px) {
  #nav_logo {
    width: 230px;
  }
  .search-input {
    width: 280px;
  }
  h1 {
    font-size: 3rem;
    line-height: 3rem;
  }
  #album h1 {
    font-size: 2rem;
    line-height: 2rem;
  }
  #uvod_top_nadpis {
    padding: 0.75rem 1rem;
  }
  #uvod_top_nadpis_popis {
    font-size: 0.85rem;
    gap: 0.3rem;
    flex-direction: column;
  }
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }
  .search-wrapper {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  #gallery-list {
    /*grid-template-columns: 1fr;*/
  }
  h1, #album h1 {
    font-size: 2rem;
    line-height: 2rem;
  }
  #album #uvod_top_nadpis {
    width: 100%;
  }
  #nav_logo {
    width: 200px;
  }
  .search-input {
    width: 240px;
  }
  header nav, main, footer > div {
    padding-left: 0;
    padding-right: 0;
  }
  .uvod_gallery_item h3 {
    font-size: 13px;
    padding: 0.25rem 0.25rem;
  }
  #top_img img {
    object-fit: cover;
    width: 166.66%;
    object-position: right center;
    height: 170px;
  }
  #top_img::after {
    background: linear-gradient(
        to right,
        rgba(var(--hero-gradient-color), 1) 0%,
        rgba(var(--hero-gradient-color), 1) 15%,
        rgba(var(--hero-gradient-color), 0) 100%
    );
  }
  #uvod_top_nadpis {
    padding: 0.75rem 1rem;
  }
  #uvod_top_nadpis_popis {
    font-size: 0.85rem;
    gap: 0.3rem;
    flex-direction: column;
  }
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 10px;
  }
  .search-wrapper {
    display: none !important;
  }
  #uvod_top_text {
    max-width: 20ch;
    line-height: 1.25;
  }
  #body_tag #uvod_top_text {
    display: none;
  }
  #body_tag h1 {
    margin-top: 0.5rem;
  }
  #uvod_top_cisla {
    font-size: 0.75rem;
    gap: 0.7rem;
  }
}

@media (min-width: 1400px) {
  #div_levy {
    width: 78%;
  }
  #div_pravy {
    width: 22%;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  .section_container {
    flex-direction: row;
  }
}

@media (min-width: 1600px) {
  header nav, main, footer > div {
    max-width: 1540px;
  }

}
