* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
}

p {
  padding-bottom:20px
}

.gallery {
  width: min(100% - 32px, 600px);
  margin: 0 auto;
  padding: 48px 0 0;
  text-align: center;
}

.gallery-header {
  margin: 0 0 48px;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

h2 {
  margin-top: 32px;
  font-size: 1.25rem;
  line-height: 1.3;
}

ul
{
    font-weight: normal
}

.about-copy {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: left;
  line-height: 1.7;
}

.about-copy p {
  margin: 0;
}

.cartoon-intro {
  max-width: 540px;
  margin: 24px auto 0;
  text-align: center;
  line-height: 1.7;
}

.cartoon-intro:empty {
  display: none;
}

.cartoon-intro p {
  margin: 0;
  padding: 0;
}

.cartoon-gallery,
.painting-gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.painting-gallery {
  gap: 100px;
  padding-left:20px;
  padding-right:20px
}

.cartoon,
.painting {
  width: 100%;
}

.cartoon:not(:last-child) {
  padding-bottom: 20px;
  border-bottom: 1px dotted #999999;
}

.painting:not(:last-child) {
  padding-bottom: 40px;
}

.cartoon img,
.painting img {
  display: block;
  width: 100%;
  height: auto;
}

.painting-details {
  margin: 12px 0 0;
  padding: 0;
  line-height: 1.5;
}

.site-footer {
  padding: 48px 16px 32px;
  text-align: center;
  font-size: 0.875rem;
}

.cartoon-footer-copy {
  max-width: 540px;
  margin: 0 auto 32px;
  text-align: left;
  line-height: 1.7;
}

.cartoon-footer-copy:empty {
  display: none;
}

.cartoon-footer-copy p {
  margin: 0;
  padding: 0;
}

.back-to-top {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: inherit;
  text-decoration: none;
}

.back-to-top-arrow {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  text-decoration: underline;
}

.footer-logo {
  display: block;
  width: 126px;
  height: auto;
  margin: 0 auto 14px;
}

.footer-follow-label {
  margin: 0 0 14px;
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 48px;
  padding: 8px 16px;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.social-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  text-decoration: underline;
}

.footer-copyright {
  margin: 40px 0 0;
}

.news-page .gallery-header {
  margin-bottom: 24px;
}

.news-content {
  padding: 0 16px 32px;
  text-align: center;
}

.home-page {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.home-menu {
  display: flex;
  width: min(100%, 320px);
  flex-direction: column;
  gap: 24px;
  margin: 40px auto 0;
}

.home-menu-button {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid #111111;
  border-radius: 2px;
  background: #ffffff;
  color: #111111;
  font-size: 1.125rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.home-menu-button:hover,
.home-menu-button:focus-visible {
  background: #f2f2f2;
}

.home-menu-button:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

.home-description {
  width: min(100%, 540px);
  min-height: 4.8rem;
  margin: 32px auto 0;
  padding: 0 16px;
  line-height: 1.7;
  text-align: center;
}

.home-description p {
  margin: 0;
}

@media (max-width: 600px) {
  .gallery {
    width: min(100% - 24px, 1080px);
    padding-top: 32px;
  }

  .home-page {
    padding: 40px 0;
  }

  .home-menu {
    gap: 24px;
    margin-top: 36px;
  }

  .home-menu-button {
    min-height: 62px;
  }

  .home-description {
    margin-top: 28px;
  }

  .site-nav {
    gap: 0.45rem;
    font-size: clamp(0.8rem, 3.8vw, 1rem);
  }

  .site-nav a,
  .site-nav span {
    white-space: nowrap;
  }

  .gallery-header {
    margin-bottom: 32px;
  }

  .cartoon-gallery {
    gap: 28px;
  }

  .painting-gallery {
    gap: 56px;
  }

  .site-footer {
    padding-top: 36px;
    padding-bottom: 24px;
  }

}