html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #fffefe;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a {
  color: #ab0721;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #222;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 1000;
  background: #fff;
  padding: 12px 16px;
}

.site-header {
  background: #fff;
  text-align: center;
}

.site-logo {
  display: inline-block;
}

.site-logo img {
  width: min(600px, 100vw);
}

.main-navigation {
  background: rgba(252, 187, 8, 0.21);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #ab0721;
  font: inherit;
  padding: 0 20px;
  min-height: 60px;
  cursor: pointer;
}

.menu-icon {
  width: 20px;
  height: 14px;
  position: relative;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 100%;
  border-top: 2px solid currentColor;
}

.menu {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu > li {
  position: relative;
}

.menu a,
.menu button {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: #ab0721;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  font-weight: 400;
}

.menu a:hover,
.menu a:focus,
.menu button:hover,
.menu button:focus {
  color: #ab0721;
}

.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  background: linear-gradient(rgba(252, 187, 8, 0.21), rgba(252, 187, 8, 0.21)), #fff;
  z-index: 10;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}

.submenu a {
  justify-content: flex-start;
  min-height: 44px;
  white-space: nowrap;
}

.site {
  max-width: 1200px;
  margin: 0 auto;
}

.inside-article {
  padding: 40px;
}

.home-intro {
  text-align: center;
}

.home-intro h1 {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 400;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.book-card {
  text-align: center;
}

.book-card img {
  margin: 0 auto 16px;
}

.book-card p {
  margin: 0 0 18px;
}

.book-card h2 {
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 400;
}

.book-card h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.book-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.book-cover {
  margin: 0;
}

.book-cover img {
  margin: 0 auto;
}

.book-summary {
  text-align: center;
}

.book-summary h1 {
  margin: 20px 0;
  font-size: 60px;
  line-height: 1.2;
  font-weight: 400;
}

.book-summary h2,
.book-summary h3,
.book-summary h4,
.book-summary h5 {
  margin: 0 0 20px;
  font-weight: 400;
}

.svetlobe .book-summary h3 {
  color: #12c78f;
  font-size: 24px;
}

.svetlobe .book-summary h4 {
  font-size: 24px;
}

.svetlobe .book-summary .author {
  font-size: 20px;
}

.svetlobe .book-summary h5 {
  font-size: 20px;
}

.poem-copy {
  text-align: left;
  font-size: 24px;
  font-weight: 400;
}

.poem-copy p {
  margin: 0 0 18px;
}

.center-note {
  margin-top: 40px;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
}

.travnik-top {
  padding: 0 20px;
  border-radius: 20px;
  background: #fff;
}

.travnik .book-summary h3:first-child {
  padding: 30px 0;
  color: #4aa650;
  font-size: 24px;
}

.travnik .book-summary h1 {
  font-size: 36px;
}

.travnik .book-summary h2 {
  margin-bottom: 5px;
  font-size: 24px;
}

.travnik .book-summary .subtitle {
  margin-top: 32px;
  margin-bottom: 50px;
  font-size: 26px;
}

.price {
  font-size: 26px;
}

.order-button {
  display: inline-flex;
  padding: 12px 20px;
  border-radius: 20px;
  background: #058725;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
}

.order-button:hover,
.order-button:focus {
  background: #01761e;
  color: #fff;
}

.song-link {
  margin: 28px 0;
  text-align: center;
  font-size: 30px;
  font-weight: 400;
}

.yellow-panel,
.songs-panel {
  padding: 20px;
  margin: 20px 80px;
  border-radius: 20px;
}

.yellow-panel {
  background: rgba(252, 214, 8, 0.37);
}

.yellow-panel p {
  font-size: 20px;
}

.songs-panel {
  margin-left: 0;
  margin-right: 0;
  background: rgba(4, 145, 4, 0.19);
  text-align: center;
}

.songs-panel h2 {
  margin: 0 0 15px;
  font-size: 32px;
  font-weight: 600;
}

.songs-panel h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 400;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  background: rgba(255, 255, 255, 0.44);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  margin: 12px 0 0;
  padding-bottom: 3px;
  font-size: 20px;
  font-weight: 400;
}

.article-panel {
  padding: 20px;
  margin: 20px 80px 0;
  border-radius: 20px;
  background: rgba(252, 214, 8, 0.37);
  text-align: center;
}

.article-panel h3 {
  font-size: 1.5em;
  font-weight: 600;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.article-thumb {
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  overflow: hidden;
  cursor: zoom-in;
}

.article-thumb img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.article-thumb:hover img,
.article-thumb:focus img {
  transform: scale(1.08);
}

.site-footer {
  margin-top: 20px;
  background: #fff;
}

.inside-site-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  text-align: center;
  font-size: 15px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
}

.lightbox.is-open {
  display: block;
}

.lightbox-stage {
  position: absolute;
  inset: 58px 0 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.lightbox-stage.is-dragging {
  cursor: grabbing;
}

.lightbox-image {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: min(92vw, 1400px);
  max-height: calc(100vh - 110px);
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  user-select: none;
  will-change: transform;
}

.lightbox-toolbar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.lightbox-toolbar button {
  min-width: 42px;
  min-height: 38px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.lightbox-toolbar button:hover,
.lightbox-toolbar button:focus {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-count {
  min-width: 56px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
}

@media (max-width: 1024px) {
  .yellow-panel,
  .article-panel {
    margin-left: 0;
    margin-right: 0;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-inner {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .main-navigation.is-open .menu {
    display: flex;
  }

  .menu a,
  .menu button {
    min-height: 44px;
    width: 100%;
    justify-content: flex-start;
  }

  .submenu {
    position: static;
    display: block;
    background: transparent;
    padding-left: 18px;
  }

  .inside-article {
    padding: 30px;
  }

  .book-grid,
  .book-layout,
  .video-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .book-summary h1,
  .svetlobe .book-summary h1 {
    font-size: 42px;
  }

  .travnik .book-summary h1 {
    font-size: 24px;
  }

  .travnik .book-summary h2 {
    font-size: 16px;
  }

  .travnik .book-summary h3:first-child,
  .travnik .book-summary .subtitle {
    font-size: 18px;
  }

  .poem-copy {
    font-size: 20px;
  }

  .yellow-panel,
  .songs-panel,
  .article-panel {
    padding-left: 5px;
    padding-right: 5px;
  }

  .song-link {
    font-size: 20px;
  }
}
