@media screen and (min-width: 1200px) {
  .container {
    width: min(100% - 116px, 1600px);
  }
}

@media screen and (min-width: 1450px) and (max-width: 1920px) {
  .artist {
    font-size: 100px;
  }
}

@media screen and (max-width: 1350px) {
  .artist {
    font-size: 50px;
  }
}

@media screen and (max-width: 1650px) {
  .footer--img {
    left: -58px;
  }
}

@media screen and (min-width: 992px) {
  .burger--btn {
    display: none;
  }

  .header--bottom {
    display: block !important;
  }
}

@media screen and (max-width: 992px) {
  .container {
    width: calc(100% - 40px);
  }

  .header--top {
    border-bottom: 1px solid #000;
  }

  .header--top > a img {
    width: 200px;
  }

  .header--top > a {
    align-items: center !important;
  }

  .header--bottom {
    overflow: hidden;
  }

  .header--bottom ul {
    flex-direction: column;
    gap: 10px;
  }

  .primary-nav button {
    padding-block-start: 5px;
    padding-block-end: 5px;
    font-size: 20px;
    line-height: 1;
    color: #000 !important;
  }

  .primary-nav a {
    color: #000 !important;
  }

  .burger--btn {
    background-color: #000;
    border-radius: 5px;
    padding: 5px 7px;
  }

  .dropdown--body {
    padding: 0;
    border: 0;
    gap: 20px;
    max-height: 0;
    padding-left: 20px;
    transition: all .3s;
    position: static;
    overflow: hidden;
    display: flex !important;
  }

  .primary-nav.dropped .dropdown--body {
    max-height: 500px;
    padding-top: 20px;
    padding-bottom: 10px;
  }

  .primary-nav .fa {
    transition: all .3s;
  }

  .landing-slider a {
    font-size: 10px !important;
  }

  .landing-slider .landing-slider--link {
    width: 100px;
    height: 100px;
  }

  .landing-slider a p {
    gap: 10px;
  }

  section.sticky {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .landing--subtitle {
    margin-bottom: 10px;
  }

  .sticky--left__item h2, .sticky--left__item p {
    font-size: 20px;
    line-height: 30px;
  }

  .landing-slider img {
    height: 270px;
  }

  .sticky--right__description {
    gap: 10px;
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .sticky--right__description h4 {
    font-size: 18px !important;
  }

  .sticky--right__description p:not(:last-child) {
    font-size: 15px !important;
  }

  .exhibitons--row {
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 10px !important;
  }

  .exhibitons--item__description {
    gap: 10px;
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .exhibitons--item.exhibitons--item__landing img {
    height: auto !important;
  }

  .exhibitons--item.exhibitons--item__landing:nth-child(5n) {
    margin-top: 0;
  }

  .exhibitons--item.exhibitons--item__landing, .exhibitons--item.exhibitons--item__landing img, .exhibitons--item.exhibitons--item__landing .exhibitons--item__landing--wrapper {
    height: auto !important;
  }

  section.exhibitons {
    margin-bottom: 40px;
  }

  .events--item {
    margin-bottom: 20px;
    flex-direction: column !important;
  }

  .events--description {
    width: 100%;
    padding: 20px 10px;
  }

  .events--description p {
    font-size: 20px !important;
    line-height: 1.1 !important;
  }

  p.events--time {
    margin-top: 5px;
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  .events--img__wrapper {
    width: 100%;
    height: auto;
  }

  .sub--title {
    margin-bottom: 15px;
    font-size: 25px;
  }

  section.artists {
    margin-bottom: 40px;
  }

  .artist {
    text-align: center;
    font-size: 25px;
    line-height: 1.2;
  }

  .artist:not(:last-child) {
    margin-bottom: 20px;
  }

  .artist img {
    opacity: 1;
    visibility: visible;
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
    position: static;
    transform: none !important;
  }

  .footer_ {
    padding-top: 20px;
  }

  .footer--top {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  .footer--img {
    left: -20px;
  }

  .button2--container {
    flex-wrap: wrap;
    margin-block-start: 20px !important;
    margin-block-end: 20px !important;
  }

  .visit--block:not(:first-child) {
    margin-top: 40px;
  }

  section.location {
    flex-direction: column;
  }

  section.location iframe {
    width: 100% !important;
    height: 300px !important;
  }

  .experience--row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section.experience {
    margin-bottom: 40px;
  }

  footer {
    margin-top: 40px;
  }

  .explore--block {
    grid-template-columns: 1fr;
  }

  .accessibility--block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .exhibitons__inner--grid {
    grid-template-columns: 1fr;
  }

  .title--inner {
    margin-bottom: 15px;
    font-size: 20px;
  }

  .title {
    margin-top: 20px;
    font-size: 25px;
  }

  .title.mb-40 {
    margin-bottom: 20px;
  }

  .sticky--right__track {
    gap: 20px;
  }

  .artorks--row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
  }

  .artwork--item {
    gap: 10px;
  }

  section.artworks {
    margin-bottom: 40px;
  }

  .programs--grid {
    gap: 30px 20px;
  }

  section.programs {
    margin-bottom: 40px;
  }

  .exhibitons__inner--grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section.exhibitions__inner {
    margin-bottom: 40px;
  }

  .artorks--row.mt-80 {
    margin-top: 40px;
  }

  .artorks--row.mt-60 {
    margin-top: 30px;
  }

  .hero_section {
    margin-bottom: 40px;
  }

  .history-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calendar--flex {
    flex-direction: column;
  }

  .calendar--item {
    flex-direction: column-reverse;
    margin-bottom: 20px;
    display: flex;
  }

  .calendar--img {
    width: 100%;
    max-width: 100%;
  }

  .calendar--item:last-child {
    margin-bottom: 25px;
  }

  .footer--bottom {
    padding-bottom: 8px;
  }

  .exhibitions--popup, .exhibitons--success--popup {
    padding: 20px 10px;
  }

  .exhibitions--popup input, #exhibitionModal input {
    width: 100%;
    height: 40px;
  }

  .exhibitions--popup button, #exhibitionModal button, .exhibitons--success--popup a {
    width: 100%;
  }

  .calendar--container__bottom {
    padding-left: 0;
  }

  .explore-slider {
    margin-bottom: 30px;
  }

  .explore-slider img {
    height: 250px;
  }

  .landing-slider h2 {
    margin-top: 5px;
    line-height: 1.1;
  }

  .subtitle--inner {
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .exhibitions__inner .title {
    margin-bottom: 20px;
  }

  .programs--item {
    gap: 10px;
    font-size: 15px;
  }

  .primary--img {
    margin-bottom: 30px;
  }

  .content {
    font-size: 14px;
    line-height: 1.1;
  }

  .landing-slider .landing-slider--link {
    bottom: 30px;
    left: -10px;
  }

  main {
    min-height: calc(100vh - 500px);
  }

  .page-cont {
    padding: 100px 20px;
  }

  .visit--block__content > p:first-of-type {
    margin-bottom: 30px;
  }

  .visit--block {
    display: flex;
    flex-direction: column !important;
  }

  .visit--block:nth-child(2n) {
    flex-direction: column-reverse !important;
  }

  /* Fixed height only on image column; with column-reverse, :last-child is often the text block */
  .visit--block > div:not(.visit--block__content) {
    height: 520px;
  }

  .visit--block > div:not(.visit--block__content) .img-fluid {
    object-fit: cover;
    height: 100%;
  }
}

@media screen and (max-width: 1440px) {
  .banner-details {
    left: 20px;
    right: 20px;
  }
}

@media screen and (max-width: 1400px) {
  .visit-slide > div {
    left: 20px;
  }
}

@media screen and (max-width: 1100px) {
  .footer-middle > div:first-child span:first-child {
    font-size: 38px;
    line-height: 43px;
  }

  .artist-works {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1080px) {
  .about-images img {
    scale: .7;
  }

  .about-images img:nth-child(2) {
    top: 57px;
    left: 60px;
  }
}

@media screen and (max-width: 1023px) {
  .menu, .header-actions {
    display: none;
  }

  #menu-toggle-button {
    display: flex;
  }

  .banner, .banner-swiper {
    height: 500px;
  }

  .banner-details span:nth-child(2) {
    font-size: 40px;
    line-height: 45px;
  }

  .welcome-msg {
    padding: 20px;
  }

  .exhibition-cards {
    gap: 20px;
  }

  .footer-logo {
    flex-direction: column;
    gap: 40px;
  }

  .footer-menu {
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-middle {
    flex-direction: column;
    gap: 20px;
  }

  .artists-name-swiper {
    margin-bottom: 60px;
  }

  .artists-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .content-gallery-item {
    flex-basis: 320px;
    width: 320px;
  }

  .content-gallery-item img {
    height: 220px;
  }
}

@media screen and (max-width: 1000px) {
  .artist-works {
    grid-template-columns: repeat(2, 1fr);
  }

  .artist-works > :nth-child(3n) {
    border-right: unset;
    align-items: unset;
  }

  .artist-works > :nth-last-child(-n+3) {
    border-bottom: 1px solid #f2f2f7;
  }

  .artist-works > :nth-child(3n+1) {
    align-items: unset;
  }

  .artist-works > :nth-child(odd) {
    border-right: 1px solid #f2f2f7;
    align-items: flex-start;
  }

  .artist-works > :nth-child(2n) {
    border-right: none;
    align-items: flex-end;
  }

  .location {
    flex-direction: column;
    gap: 20px;
  }

  .map, .location-info {
    width: 100%;
  }

  .program-cont {
    padding: 100px 20px 50px;
  }

  .program-page {
    flex-direction: column;
  }

  .program-det {
    width: 100%;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .about-text {
    font-size: 15px;
    line-height: 22px;
  }

  .about-text > div > div, .about-text > div > div * {
    font-size: 15px !important;
    line-height: 22px !important;
  }
}

@media screen and (max-width: 900px) {
  .program-item {
    flex-direction: column;
    gap: 0;
  }

  .program-item > img {
    width: 100%;
    height: auto;
    display: block;
  }

  .program-item:nth-child(2n) {
    flex-direction: column;
  }

  .program-info {
    width: 100%;
    height: unset;
  }

  .program-info > div:nth-child(2) {
    margin-bottom: 20px;
  }

  .programs-prev .program-item:last-child, .events-cont .content1 > .program-item:nth-child(3) {
    flex-direction: column;
  }

  .events-cont .content1 > .program-item:nth-child(3) {
    margin-bottom: 80px;
  }

  .visit-cards > div {
    flex-direction: column;
    gap: 20px;
  }
}

@media screen and (max-width: 767px) {
  .banner {
    margin-top: 90px;
  }

  .banner, .banner-swiper {
    height: 350px;
  }

  .welcome-msg {
    padding: 24px 20px 34px;
    display: block;
  }

  .welcome-msg .content1 {
    gap: 0;
    position: relative;
    top: 25px;
  }

  .welcome-msg .content1 > p {
    text-transform: uppercase;
    border-bottom: 3px solid var(--main-black);
    margin-bottom: 10px;
    padding-bottom: 8px;
    font-size: 27px;
    line-height: 32px;
  }

  .welcome-msg .content1 > div {
    max-width: 320px;
    font-size: 20px;
    line-height: 36px;
  }

  .program-info > p:first-child {
    font-size: 30px;
    line-height: 35px;
  }

  .contact-page {
    padding: 120px 20px 70px;
  }

  .contact-page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
  }

  .contact-page-head > p:last-child {
    margin-bottom: 0;
  }

  .contact-inputs-row {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-map {
    height: 260px;
  }

  .content-gallery-item {
    flex-basis: 250px;
    width: 250px;
  }

  .content-gallery-item img {
    height: 180px;
  }

  .content-gallery-slider {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .content-gallery-slider::-webkit-scrollbar {
    display: none;
  }

  .content-gallery-track {
    will-change: transform;
  }

  .content-gallery-slider:active .content-gallery-track {
    animation-play-state: paused;
  }

  .about-text .content-gallery {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .about-text .content-gallery .content1, .about-text .content-gallery .content-gallery-slider {
    width: 100% !important;
    max-width: 100% !important;
  }

  .plan-visit {
    padding: 10px 20px;
  }

  .plan-visit .content1 {
    background-position: center;
    background-size: cover;
    align-items: flex-end;
    height: 330px;
    min-height: 0;
    padding: 0 12px 14px;
    display: flex;
  }

  .plan-visit .content1 > div {
    background: #fffffff0;
    width: 100%;
    max-width: 100%;
  }

  .plan-visit .content1 p {
    font-size: 14px;
    line-height: 20px;
  }

  .footer-middle > div:first-child span:first-child {
    font-size: 38px;
    line-height: 43px;
  }

  .footer-menu > div:nth-child(2) {
    text-align: right;
    align-items: flex-end;
    margin-left: auto;
  }

  .footer-contact {
    width: 100%;
    min-width: unset;
    flex-direction: column;
    gap: 10px;
  }

  .footer-contact input {
    width: 100%;
  }

  .footer-contact button {
    width: 100%;
  }

  .exhibitions-head {
    align-items: unset;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 50px;
  }

  .exhibitions-head p:first-child {
    font-size: 24px;
    line-height: 28px;
  }

  .exhibitions-head p:nth-child(2) {
    max-width: unset;
  }

  .curr-exhibition {
    padding: 160px 20px 50px;
  }

  .curr-exhibition .name {
    margin-bottom: 27px;
    font-size: 24px;
    line-height: 28px;
  }

  .curr-date {
    justify-content: flex-end;
    margin-bottom: 30px;
  }

  .curr-date div {
    gap: 12px;
    font-size: 12px;
    line-height: 16px;
  }

  .curr-exhimage {
    margin-bottom: 40px;
  }

  .events-cont {
    padding-bottom: 140px;
  }

  .curr-artist {
    margin-bottom: 40px;
  }

  .curr-artist > img:first-child {
    width: 100px;
    height: 100px;
  }

  .artist-info {
    width: calc(100% - 110px);
  }

  .visit-slide > div > p {
    font-size: 32px;
    line-height: 40px;
  }

  .visit-banner {
    height: 520px;
  }

  .visit-slide > div {
    top: 155px;
  }

  .visit-page {
    padding: 40px 20px 80px;
  }

  .visit-text {
    margin-bottom: 90px;
  }

  .calendar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
  }

  .calendar-item .num {
    width: auto;
    margin-top: 0;
    margin-bottom: 2px;
    font-size: 44px;
    line-height: 48px;
  }

  .calendar-item > a:first-of-type > img {
    object-fit: cover;
    width: 100%;
    height: auto;
  }

  .calendar-item .name {
    gap: 8px;
    width: 100%;
  }

  .calendar-item .name span:nth-child(2) {
    font-size: 16px;
    line-height: 22px;
  }

  .calendar-item .see-more, .calendar-item .see-more span {
    font-size: 12px;
    line-height: 16px;
  }

  .calendar-item .see-more {
    gap: 8px;
    margin-left: 0;
  }

  .program-page > img:first-child {
    width: 100%;
    height: auto;
  }

  .about-images {
    height: 300px;
  }

  .about-images img {
    scale: .6;
  }

  .about-images img:first-child {
    top: -46px;
    left: -76px;
  }

  .about-images img:nth-child(2) {
    top: 2px;
    left: -54px;
  }

  .about-images .text {
    top: 0;
    left: 245px;
  }
}

@media screen and (max-width: 700px) {
  .artist-works {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: 500px;
  }

  .artist-works > * {
    border-bottom: 1px solid #f2f2f7 !important;
    border-right: none !important;
    align-items: center !important;
  }
}

@media screen and (max-width: 600px) {
  .banner, .banner-swiper {
    height: unset;
  }

  .banner-details {
    align-items: unset;
    position: unset;
    flex-direction: column;
    gap: 10px;
    margin: 20px 20px 0;
  }

  .banner-details div {
    color: var(--main-black);
  }

  .banner-details span:first-child {
    font-size: 10px;
    line-height: 14px;
  }

  .banner-details span:nth-child(2) {
    font-size: 20px;
    line-height: 24px;
  }

  .banner-details span:last-child {
    font-size: 16px;
    line-height: 20px;
  }

  .banner-details > a {
    background: var(--main-black);
    color: #fff !important;
  }

  .banner-slide img {
    height: 250px;
  }

  .exhibition-cards {
    grid-template-columns: repeat(1, 1fr);
    gap: 28px;
  }

  .pageTitle, .event-name {
    color: #aeaeb2;
    margin-bottom: 28px;
    font-size: 12px;
    line-height: 16px;
  }

  .exhibition-card span:nth-child(2) {
    font-size: 16px;
    line-height: 20px;
  }

  .artists-prev {
    padding: 60px 20px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 6px;
  }

  .footer-bottom p {
    font-size: 12px;
    line-height: 16px;
  }

  .footer-bottom span:nth-child(2) {
    font-size: 12px;
    line-height: 16px;
  }

  .footer-bottom > span:last-child {
    margin-top: 0;
    margin-left: 0;
  }

  .event-slide {
    gap: 12px;
    width: 100% !important;
  }

  .event-slide > span:first-child {
    font-size: 12px;
    line-height: 16px;
  }

  .event-slide > img {
    height: 230px;
  }

  .event-slide > span:nth-child(3) {
    font-size: 16px;
    line-height: 21px;
  }

  .event-arrows {
    margin-bottom: 20px;
  }

  .event-arrows div {
    width: 25px;
    height: 25px;
  }

  .artists-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .curr-artist {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }

  .curr-artist > img:first-child {
    width: 165px;
    height: 165px;
  }

  .artist-info {
    gap: 15px;
    width: 100%;
  }

  .artist-info span:first-child {
    font-size: 30px;
    line-height: 35px;
  }

  .about-images {
    height: 150px;
  }

  .about-images img:first-child {
    width: 153px;
    height: 93px;
    top: 0;
    left: 0;
  }

  .about-images img:nth-child(2) {
    width: 317px;
    height: 101px;
    top: 35px;
    left: 71px;
  }

  .about-images .text {
    display: none;
  }

  .about-images img {
    scale: 1;
  }
}

@media screen and (max-width: 500px) {
  .plan-visit .content1 {
    height: 300px;
  }

  .plan-visit .content1 > div {
    width: 270px;
  }

  .plan-visit .content1 p {
    margin-bottom: 10px;
    font-size: 10px;
    line-height: 13px;
  }
}

@media screen and (max-width: 450px) {
  .event-card.swiper-slide {
    width: 100% !important;
  }

  .event-desc .name {
    font-size: 12px;
    line-height: 16px;
  }

  .event-desc > div {
    font-size: 10px;
    line-height: 13px;
  }

  .event-card {
    gap: 16px;
  }

  .date > span {
    font-size: 32px;
    line-height: 35px;
  }

  .date p {
    font-size: 12px;
    line-height: 16px;
  }

  .programs-prev {
    padding-bottom: 50px;
  }

  .programs-prev .content1 {
    gap: unset;
  }

  .programs-prev .program-item:nth-child(2) {
    margin-bottom: 30px;
  }

  .program-info > p:first-child {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 25px;
  }

  .program-info > div:nth-child(2) {
    font-size: 10px;
    line-height: 13px;
  }

  .footer-middle > div:first-child {
    align-items: flex-start;
    gap: 20px;
    justify-content: unset;
  }

  .footer-middle > div:first-child span:first-child {
    max-width: 185px;
    font-size: 40px;
    line-height: 45px;
  }

  .location-info {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .location-info * {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .visit-text {
    font-size: 16px;
    line-height: 24px;
  }

  .visit-text, .visit-text * {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .visit-card {
    position: unset;
    flex-direction: column;
    display: flex;
  }

  .visit-card > img {
    height: 350px;
  }

  .visit-card-info {
    position: unset;
    width: 100%;
  }

  .visit--block > div:not(.visit--block__content) {
    height: 300px;
  }
}

@media screen and (max-width: 400px) {
  .about-images img:first-child {
    width: 147px;
    height: 85px;
  }

  .about-images img:nth-child(2) {
    width: 250px;
    height: 80px;
    top: 38px;
    left: 71px;
  }
}
