body {
  margin: 0;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  font-family: "Inria Sans";
}

main {
  flex: 1;
}

.container-header {
  width: 100%;
  background: #DBE0CA;
}

.container {
  width: 100%;
  background: white;
}

.container-footer {
  width: 100%;
  background: black;
}

header {
  padding: 0 136px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  background: #DBE0CA;
  height: 361px;
}

.logo img {
  margin-top: 59px;
  width: 200px;
  height: 94px;
}

nav {
  margin-top: 91px;
  display: flex;
  gap: 106px;
}

nav a {
  text-decoration: none;
  font-size: 32px;
  color: black;
}

.active {
  color: red;
  font-weight: 700;
}

.header-title {
  position: absolute;
  bottom: -144px;
  font-size: 128px;
  font-family: "Inria Serif";
}

.about {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 178px 136px;
  background: white;
}

.about-left img {
  width: 585px;
  height: 585px;
  object-fit: cover;
}

.about-right {
  max-width: 800px;
  margin-left: 60px;
}

.about-right .name {
  font-size: 96px;
  color: red;
  margin-top: 0;
  line-height: 1;
  display: block;
  top: -5px;
}

.about-right p {
  font-size: 24px;
  line-height: 1.5;
}

.footer-wrapper {
  background: #000;
  color: #fff;
  height: 611px;
}

footer {
  margin-top: 127px;
  margin-left: 180px;
  margin-right: 180px;
}

.footer-top {
  margin-bottom: 30px;
}

.footer-logo {
  width: 210px;
  height: 97px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: flex-start;
  margin-top: 121px;
}


.footer-info,
.footer-contact,
.footer-social {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.footer-contact {
  text-align: left;
  margin: 0 auto;
  flex: 1;
}

.footer-info {
  flex: 0 0 auto;
}

.footer-social {
  flex: 0 0 auto;
  text-align: right;
}

.exhibitions,
.artwork {
  padding: 178px 136px;
}

.text-block {
  width: 100%;
  margin: 80px auto;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
}

.exhibition-video {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  margin-top: 102px;
}

.exhibition-list {
  font-size: 32px;
  max-width: 690px;
}

.exhibition-list h3 {
  color: red;
  margin: 0 0 20px 0;
  padding: 0;
}

.video-box {
  width: 539px;
  height: 957px;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider {
  position: relative;
  width: 100%;
  height: 709px;
  margin: 0 auto;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 32px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.artworks-section {
  background-color: #f0f0f0;
  padding: 40px 0;
}

.artworks-section .container {
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.artworks-section h1 {
  font-size: 36px;
  margin: 0 0 20px 0;
}

.artworks-section .description {
  max-width: 900px;
  font-size: 32px !important;
  font-weight: 400;
  color: #333;
}

.desc {
  margin-bottom: 90px;
  font-size: 32px !important;
  text-align: center;
}

.text-block {
  text-align: center;
}

.artworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 425px);
  justify-content: space-between;
  margin: 0 auto;
  row-gap: 94px;
}

.artwork-card {
  width: 425px;
  text-align: center;
  font-size: 24px;
  justify-content: start;
}

.artwork-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.artwork-title {
  font-weight: 400;
  margin-top: 43px;
  line-height: 1.3;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  margin-top: 109px;
  box-sizing: border-box;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex: 1;
}

.center {
  position: absolute;
  left: 41%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.prev-btn {
  background-color: black;
  color: white;
  border: none;
  border-radius: 9px;
  width: 43px;
  height: 43px;
  font-size: 24px;
  font-weight: 400;
}

.next-btn {
  background-color: #f0f0f0;
  color: black;
  border: 1px solid #5B5B5B;
  border-radius: 9px;
  width: 159px;
  height: 43px;
  font-size: 24px;
  font-weight: 400;
  font-family: "Inria Sans";
}

.right-btn {
  margin-right: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
}

.num {
  display: flex;
  background-color: #f0f0f0;
  color: black;
  border: 1px solid #5B5B5B;
  border-radius: 9px;
  width: 106px;
  height: 33px;
  line-height: 43px;
  justify-content: center;
  align-items: center;
  margin-left: 19px;
  margin-right: 19px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 0;
  right: 24px;
  font-size: 40px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
  color: #707070;
  outline: none;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.close-btn:focus,
.close-btn:active,
.close-btn:focus-visible {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

.close-btn:hover {
  color: red;
}

.hamburger {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  display: none;
}

.mobile-menu {
  display: none;
}

.links a,
.footer-contact a {
  text-decoration: none;
  color: white;
}

.exh-title {
  font-weight: bold;
}

.description {
  margin-bottom: 190px;
  margin-top: 0;
}

.prev-btn,
.next-btn {
  cursor: pointer;
  font-family: "Inria Sans" !important;
  box-sizing: border-box;
}

.btn-a {
  text-decoration: none;
}

.artwork-image:hover {
  cursor: url('./img/magnifier.png') 64 64, zoom-in;
}

@media (max-width: 1600px) {
  nav {
    gap: 60px;
  }

  .about {
    padding: 150px 136px;
  }

  .about-left img {
    width: clamp(200px, 35vw, 585px);
    height: clamp(200px, 35vw, 585px);
    object-fit: cover;
  }

  .about-right {
    max-width: 500px;
  }

  .about-right .name {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
  }

  .about-right p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
  }

  .artworks-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    column-gap: 50px;
  }

  .artwork-card {
    width: 100%;
  }

  .description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
  }

  .artwork-title {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
  }

  .next-btn {
    font-size: clamp(0.5rem, 1.5vw, 1.25rem);
  }

  .slider {
    height: auto;
  }

  .text-block {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin: 40px auto;
  }

  .exhibition-list {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
  }

  .exhibition-list h3 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
  }

  .video-box {
    width: clamp(350px, 40vw, 500px);
    margin-left: 100px;
    height: auto;
  }

  .video-box video {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
  }

  .prev-btn {
    width: clamp(30px, 3vw, 43px);
    height: clamp(30px, 3vw, 43px);
    font-size: clamp(0.7rem, 1.2vw, 1rem);
  }

  .next-btn {
    width: clamp(100px, 10vw, 159px);
    height: clamp(35px, 3vw, 43px);
    font-size: clamp(0.7rem, 1.5vw, 1.25rem);
  }

  .right-btn {
    font-size: clamp(0.7rem, 1.5vw, 1.25rem);
  }

  .num {
    width: clamp(60px, 8vw, 106px);
    height: clamp(25px, 3vw, 33px);
    font-size: clamp(0.7rem, 1.2vw, 1rem);
  }
}

@media (max-width: 1044px) {
  .about-right .name {
    font-size: clamp(1.5rem, 6vw, 40px);
  }
}

@media (max-width: 768px) {
  header {
    display: flex;
    justify-content: space-between;
    height: 175px;
    padding: 40px 30px;
    box-sizing: border-box;
  }

  .header-title {
    font-size: 48px;
    font-weight: 700;
    bottom: -54px;
    left: 50%;
    transform: translateX(-50%);
  }

  header img {
    width: 80px !important;
    height: 39px !important;
    padding-top: 8px;
    margin: 0 !important;
  }

  .hamburger {
    display: block !important;
    cursor: pointer;
    font-size: 32px;
    font-weight: 400;
    margin: 0 !important;
  }

  nav {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #DBE0CA;
    z-index: 2000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .mobile-menu.active {
    display: flex !important;
  }

  .footer-contact {
    margin-left: 0;
  }

  .mobile-menu a {
    font-size: 28px;
    margin: 20px 0;
    text-decoration: none;
    color: black;
  }

  .mobile-header {
    position: absolute;
    top: 40px;
    left: 30px;
    display: flex;
    justify-content: space-between;
    width: calc(100% - 40px);
    align-items: center;
  }

  .no-scroll {
    overflow: hidden;
    height: 100%;
  }

  .artwork {
    margin: 55px 30px;
    padding: 0;
  }

  .desc {
    margin-bottom: 40px;
  }

  .description {
    margin-bottom: 100px;
    font-size: 16px !important;
    line-height: 1.4;
    text-align: left;
  }

  .artworks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 0;
  }

  .artwork-card {
    width: 100%;
    text-align: center;
  }

  .artwork-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .artwork-title {
    font-size: 16px;
    margin-top: 15px;
    line-height: 1.3;
  }

  .pagination {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding: 0;
  }

  .center {
    position: static;
    transform: none;
    left: auto;
    order: 1;
  }

  .right-btn {
    font-size: 16px;
    justify-content: center;
    order: 2;
  }

  .next-btn {
    width: 120px;
    height: 40px;
    font-size: 16px;
    line-height: 40px;
    box-sizing: border-box;
  }

  .prev-btn {
    width: 43px;
    height: 40px;
    font-size: 16px;
    line-height: 40px;
    box-sizing: border-box;
  }

  .num {
    width: 80px;
    height: 30px;
    font-size: 14px;
    margin: 0 10px;
  }

  .exhibitions {
    margin: 55px 30px;
    padding: 0;
  }

  .slider {
    margin-bottom: 30px;
    height: auto;
  }

  .text-block {
    font-size: 16px;
    line-height: 1.4;
    margin: 30px 0;
    padding: 0 10px;
  }

  .exhibition-video {
    flex-direction: column;
    margin-top: 30px;
    gap: 30px;
  }

  .exhibition-list {
    font-size: 16px;
    max-width: 100%;
    order: 2;
  }

  .exhibition-list h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: red;
  }

  .exhibition-list p {
    margin-bottom: 15px;
    line-height: 1.4;
  }

  .video-box {
    width: 100%;
    height: auto;
    order: 1;
    margin-left: 0;
  }

  .video-box video {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
  }

  .prev,
  .next {
    font-size: 24px;
    padding: 8px 12px;
  }

  .footer-wrapper {
    height: auto;
    padding: 40px 30px;
  }

  footer {
    margin: 0;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 22px;
  }

  .footer-info,
  .footer-contact,
  .footer-social {
    font-size: 18px;
    text-align: left;
  }

  .footer-logo {
    width: 150px;
    height: auto;
    display: block;
    margin-left: 0;
  }

  .right-btn {
    display: none;
  }

  .about {
    flex-direction: column;
    align-items: center;
    padding: 55px 30px;
    text-align: center;
  }

  .about-left img {
    width: 100%;
    height: 100%;
    margin-bottom: 20px;
  }

  .about-right {
    margin-left: 0;
    max-width: 100%;
  }

  .about-right .name {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .about-right p {
    text-align: left;
    font-size: 18px;
  }
}