html, body {
  box-sizing: border-box;
  font-family: 'Nunito';
}
html {
  font-size: 16px;
}
.container {
  max-width: 60rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 47.5rem;
  grid-template-rows: 10rem 36.25rem 21.25rem;
  gap: 0.5rem;
  grid-template-areas: 
  'side-image menu'
  'side-image content'
  'side-image footer';
}
.side-image {
  grid-area: side-image;
  box-shadow: 4px 3px 10px rgba(0, 0, 0, 0.2);
}
.castle {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.top-image-mobile {
  display: none;
}
.menu {
  grid-area: menu;
  background-color: rgba(180, 207, 219, 0.349);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 2fr 1fr;
  grid-template-areas: 
  'title'
  'menu-buttons';
  box-shadow: 4px 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}
.title {
  grid-area: title;
}
.title-image {
  width: 100%;
  height: 100%;
}
.menu-buttons {
  grid-area: menu-buttons;
  display: flex;
  place-content: center;
  text-align: center;
  align-items: center;
  border-top: solid 0.063rem;
  margin: 0 auto;
  vertical-align: middle;
}
.buttons {
  color: black;
  text-decoration: none;
  margin-right: 1.875rem;
  margin-left: 1.875rem;
  font-size: 1.25rem;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.buttons:active {
  text-shadow: 1px 1px 1px #8391A3;
  transition: none;
}
.lang-selector {
  position: absolute;
  right: 0.8rem;
  bottom: 0.5rem;
  display: flex;
  place-items: center;
  margin: 0; 
  padding-right: 0.2rem; 
  padding-left: 0.2rem; 
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
}
.lang-selector-select {
  appearance: none;
  border: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  margin: 0; 
  padding-right: 0.2rem; 
  padding-left: 0.2rem; 
  font-size: 1rem;
  color: black;
}
.lang-selector-select option {
  background-color: rgba(180, 207, 219, 0.349);
  border-style: solid;
  color: black;
}
.content {
  grid-area: content;
  background-color: rgb(225 229 235);
  box-shadow: 4px 3px 10px rgba(0, 0, 0, 0.2);
  height: 36.25rem;
  width: 47.5rem;
  padding: 1.875rem;
  box-sizing: border-box;
}
.content h2 {
  font-size: 1.25rem;
  margin: 0; 
  padding-bottom: 0.938rem;
}
.pictures {
  display: grid;
  grid-template-columns: 21.6rem 21.6rem;
  grid-template-rows: 14.7rem 14.7rem;
  box-sizing: border-box;
  gap: 0.5rem;
}
.cell  {
  width: 21.6rem;
  height: 14.7rem;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  align-items: center;
  cursor: pointer;
  transition: all 0.5s;
  -webkit-tap-highlight-color: transparent;
  background-color: rgb(229, 238, 242);
}
.cell:hover {
  transform: scale(0.98);
  transition: all 0.5s;
}
.cell img {
  height: 14.7rem;
}
.cell p {
  font-size: 1.125rem; 
  margin: 0;
  writing-mode: sideways-lr;
}
.pagination-buttons {
  color: black;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
  font-size: 1rem;
  transition: all 0.5s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  transition-delay: 1s;
}
.pagination-buttons:active {
  text-shadow: 1px 1px 1px #8391A3;
  transition: none;
}
.footer {
  grid-area: footer;
  background-color: #8391A3;
  padding: 0 1.875rem 0 1.875rem;
  display: grid;
  column-gap: 1.875rem;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 7fr 1fr;
  grid-template-areas: 
  'gallerist contacts links'
  'copyright copyright copyright';
  color: white;
  box-shadow: 4px 3px 10px rgba(0, 0, 0, 0.2);
}
.gallerist {
  grid-area: gallerist;
  place-self: stretch center;
}
.gallerist h2 {
  font-size: 1.25rem;
}
.gallerist img {
  height: 12.5rem;
}
.gallerist p {
  margin: 0rem; 
  font-size: 1.125rem;
}
.contacts {
  grid-area: contacts;
  place-self: stretch center;
}
.contacts h2 {
  font-size: 1.25rem;
}
.contacts p {
  margin: 0; 
  font-size: 1.125rem;
}
.contacts a {
  text-decoration: none;
  color: white;
  font-size: 1.125rem;
  -webkit-tap-highlight-color: transparent; 
}
.contacts a:active {
  text-shadow: 1px 1px 1px white;
  transition: none;
}
.links {
  grid-area: links;
  place-self: stretch center;
}
.links h2 {
  font-size: 1.25rem;
}
.links a {
  display: block;
  margin: 0;
  font-size: 1.125rem;
  color: white;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.links a:active {
  text-shadow: 1px 1px 1px white;
  transition: none;
}
.social-icons {
  display: flex
}
#social-icons-links {
  margin-left: 0;
}
.social-icons img {
  height: 2.5rem;
  width: 2.5rem;
  padding: 0.3rem;
  cursor: pointer;
}
.copyright {
  grid-area: copyright;
  place-self: center;
}
.copyright p {
  margin: 0; 
  font-size: 0.75rem;
}
@media only screen and (min-width: 960px) { 
  html {
    font-size: 1.1vw;
  }
}
@media only screen and (max-width: 960px) {
  html {
    font-size: 1.6vw;
  }
}
@media only screen and (max-width: 760px) and (orientation: portrait) {
    html, body {
      margin: 0;
      font-size: 16px;
    }
    .side-image {
      display: none;
    }
    .container  {
      display: block;
      box-sizing: border-box;
    }
    .top-image-mobile {
      display: flex;
      height: 10rem;
      place-content: center;
      z-index: 0;
    }
    .top-image-mobile img {
      object-fit: cover;
      width: 100%;
    }
    .menu {
      position: sticky;
      top: 0;
      background-color: rgb(229, 238, 242);
      display: flex;
      flex-direction: column;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
      padding-top: 2rem;
      height: 6.5rem;
      z-index: 1;
    }
    .title-image {
      display: flex;
      height: 3.5rem;
    }
    .menu-buttons {
      display: flex;
      place-content: center;
      text-align: center;
      align-items: center;
      border-top: solid 0.1rem;
      height: 2.5rem;
      margin: 0 auto;
      vertical-align: middle;
    }
    .buttons {
      color: black;
      text-decoration: none;
      padding-right: 1rem;
      padding-left: 1rem;
      font-size: 1.5rem;
      margin: 0;
      cursor: pointer;
    }
    .lang-selector {
      position: absolute;
      right: 1rem;
      top: 0.5rem;
      display: flex;
      justify-items: center;
      align-items: center;
      margin: 0px; 
      padding-right: 0.1rem; 
      padding-top: 0.1rem; 
      font-size: 1rem;
      height: 1.25rem;
    }    
    .lang-selector-select {
      appearance: none;
      border: none;
      background-color: transparent;
      outline: none;
      cursor: pointer;
      margin: 0; 
      padding-right: 0.1rem; 
      padding-left: 0.1rem; 
      font-size: 1rem;
      color: black;
    }
    .lang-selector-select option {
      background-color: rgba(180, 207, 219, 0.349);
      border-style: solid;
      color: black;
    }
    .content {
      display: flex;
      flex-direction: column;
      background-color: rgb(225 229 235);
      padding: 2rem;
      margin-top: 0.5rem;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
      height: 100%;
      width: 100%;
    }
    .pictures {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      row-gap: 2rem;
    }
    .cell {
      display: flex;
      justify-content: space-between;
      transition: 0.2s;
      z-index: 0;
      width: 100%;
      height: 100%;
      background-color: rgb(229, 238, 242);
    }
    .cell:active {
      transform: scale(0.98);
      transition: 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .cell img {
      height: auto;
      width: 90%;
    }
    .cell p {
      font-size: 1.5rem; 
      margin: 0;
      margin: 0 auto;
    }
      .pagination {
      display: flex;
      justify-content: center;
      width: auto;
      height: auto;
      padding-top: 0;
    }
    .pagination-buttons {
      color: black;
      text-decoration: none;
      margin-right: 0.5rem;
      margin-left: 0.5rem;
      font-size: 1.5rem;
      transition: 0.5s;
      cursor: pointer;
    }
    .footer {
      background-color: #8391A3;
      display: flex;
      flex-direction: column;
      padding: 2rem;
      color: white;
      margin-top: 0.5rem;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
      margin-bottom: 0.5rem;
    }
    .footer h2 {
      margin: 0;
      font-size: 1.5rem;
    }
    .footer p {
      text-align: right;
      font-size: 1.25rem;
    }
    .footer a {
      text-align: right;
      font-size: 1.25rem;
      justify-self: right;
      color: inherit;
      cursor: default;
      color: white;
    }
    .gallerist img {
      display: block;
      margin-left: auto;
      font-size: 1.25rem;
      height: 16rem;
    }
    .contacts a {
      display: block;
      width: auto;
      height: auto;
    }
    .links {
      place-self: auto;
    }
    .links a {
      margin-left: auto;
      width: auto;
    }
    .social-icons {
    display: flex;
    justify-self: right;
    justify-content: flex-end;
    }
    #social-icons-links {
    margin-left: 0;
    }
    .copyright p {
      font-size: 0.75rem;
      padding-top: 1rem;
    }
}
@media only screen and (min-width: 760px) and (orientation: portrait) {
  html, body {
    margin: 0;
    font-size: 26px;
  }
  .side-image {
    display: none;
  }
  .container  {
    display: block;
    box-sizing: border-box;
  }
  .top-image-mobile {
    display: flex;
    height: 10rem;
    place-content: center;
    z-index: 0;
  }
  .top-image-mobile img {
    object-fit: cover;
    width: 100%;
  }
  .menu {
    position: sticky;
    top: 0;
    background-color: rgb(229, 238, 242);
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding-top: 2rem;
    height: 6.5rem;
    z-index: 1;
  }
  .title-image {
    display: flex;
    height: 3.5rem;
  }
  .menu-buttons {
    display: flex;
    place-content: center;
    text-align: center;
    align-items: center;
    border-top: solid 0.1rem;
    height: 2.5rem;
    margin: 0 auto;
    vertical-align: middle;
  }
  .buttons {
    color: black;
    text-decoration: none;
    padding-right: 1rem;
    padding-left: 1rem;
    font-size: 1.5rem;
    margin: 0;
    cursor: pointer;
  }
  .lang-selector {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    display: flex;
    justify-items: center;
    align-items: center;
    margin: 0px; 
    padding-right: 0.1rem; 
    padding-top: 0.1rem; 
    font-size: 1rem;
    height: 1.25rem;
  }    
  .lang-selector-select {
    appearance: none;
    border: none;
    background-color: transparent;
    outline: none;
    cursor: pointer;
    margin: 0; 
    padding-right: 0.1rem; 
    padding-left: 0.1rem; 
    font-size: 1rem;
    color: black;
  }
  .lang-selector-select option {
    background-color: rgba(180, 207, 219, 0.349);
    border-style: solid;
    color: black;
  }
  .content {
    display: flex;
    flex-direction: column;
    background-color: rgb(225 229 235);
    padding: 2rem;
    margin-top: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    height: 100%;
    width: 100%;
  }
  .pictures {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    row-gap: 2rem;
  }
  .cell {
    display: flex;
    transition: 0.2s;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(229, 238, 242);
  }
  .cell:active {
    transform: scale(0.98);
    transition: 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .cell img {
    height: auto;
    width: 90%;
  }
  .cell p {
    font-size: 1.5rem; 
    margin: 0;
    margin: 0 auto;
  }
  .pagination {
    display: flex;
    justify-content: center;
    width: auto;
    height: auto;
    padding-top: 0;
  }
  .pagination-buttons {
    color: black;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    font-size: 1.5rem;
    transition: 0.5s;
    cursor: pointer;
  }
  .footer {
    background-color: #8391A3;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    color: white;
    margin-top: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
  }
  .footer h2 {
    margin: 0;
    font-size: 1.5rem;
  }
  .footer p {
    text-align: right;
    font-size: 1.25rem;
  }
  .footer a {
    text-align: right;
    font-size: 1.25rem;
    justify-self: right;
    color: inherit;
    cursor: default;
    color: white;
  }
  .gallerist img {
    display: block;
    margin-left: auto;
    font-size: 1.25rem;
    height: 16rem;
  }
  .contacts a {
    display: block;
    width: auto;
    height: auto;
  }
  .links {
    place-self: auto;
  }
  .links a {
    margin-left: auto;
    width: auto;
  }
  .social-icons {
  display: flex;
  justify-self: right;
  justify-content: flex-end;
  }
  #social-icons-links {
  margin-left: 0;
  }
  .copyright p {
    font-size: 0.75rem;
    padding-top: 1rem;
  }
}
@media only screen and (max-width: 360px) and (orientation: portrait) {
  html, body {
    margin: 0;
    font-size: 16px;
  }
  .side-image {
    display: none;
  }
  .container  {
    display: block;
    box-sizing: border-box;
  }
  .top-image-mobile {
    display: flex;
    height: 10rem;
    place-content: center;
    z-index: 0;
  }
  .top-image-mobile img {
    object-fit: cover;
    width: 100%;
  }
  .menu {
    position: sticky;
    top: 0;
    background-color: rgb(229, 238, 242);
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding-top: 2rem;
    height: 6.5rem;
    z-index: 1;
  }
  .title-image {
    display: flex;
    height: 3.5rem;
  }
  .menu-buttons {
    display: flex;
    place-content: center;
    text-align: center;
    align-items: center;
    border-top: solid 0.1rem;
    height: 2.5rem;
    margin: 0 auto;
    vertical-align: middle;
  }
  .buttons {
    color: black;
    text-decoration: none;
    padding-right: 1rem;
    padding-left: 1rem;
    font-size: 1.5rem;
    margin: 0;
    cursor: pointer;
  }
  .lang-selector {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    display: flex;
    justify-items: center;
    align-items: center;
    margin: 0px; 
    padding-right: 0.1rem; 
    padding-top: 0.1rem; 
    font-size: 1rem;
    height: 1.25rem;
  }    
  .lang-selector-select {
    appearance: none;
    border: none;
    background-color: transparent;
    outline: none;
    cursor: pointer;
    margin: 0; 
    padding-right: 0.1rem; 
    padding-left: 0.1rem; 
    font-size: 1rem;
    color: black;
  }
  .lang-selector-select option {
    background-color: rgba(180, 207, 219, 0.349);
    border-style: solid;
    color: black;
  }
  .content {
    display: flex;
    flex-direction: column;
    background-color: rgb(225 229 235);
    padding: 2rem;
    margin-top: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    height: 100%;
    width: 100%;
  }
  .pictures {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    row-gap: 2rem;
  }
  .cell {
    display: flex;
    justify-content: space-between;
    transition: 0.2s;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(229, 238, 242);
  }
  .cell:active {
    transform: scale(0.98);
    transition: 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .cell img {
    height: auto;
    width: 90%;
  }
  .cell p {
    font-size: 1.5rem; 
    margin: 0;
    margin: 0 auto;
  }
  .pagination {
    display: flex;
    justify-content: center;
    width: auto;
    height: auto;
    padding-top: 0;
  }
  .pagination-buttons {
    color: black;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    font-size: 1.5rem;
    transition: 0.5s;
    cursor: pointer;
  }
  .footer {
    background-color: #8391A3;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    color: white;
    margin-top: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
  }
  .footer h2 {
    margin: 0;
    font-size: 1.5rem;
  }
  .footer p {
    text-align: right;
    font-size: 1.25rem;
  }
  .footer a {
    text-align: right;
    font-size: 1.25rem;
    justify-self: right;
    color: inherit;
    cursor: default;
    color: white;
  }
  .gallerist img {
    display: block;
    margin-left: auto;
    font-size: 1.25rem;
    height: 16rem;
  }
  .contacts a {
    display: block;
    width: auto;
    height: auto;
  }
  .links {
    place-self: auto;
  }
  .links a {
    margin-left: auto;
    width: auto;
  }
  .social-icons {
  display: flex;
  justify-self: right;
  justify-content: flex-end;
  }
  #social-icons-links {
  margin-left: 0;
  }
  .copyright p {
    font-size: 0.75rem;
    padding-top: 1rem;
  }
}