:root {
  --bg: #f6f1ea;
  --text: #1c1a16;
  --muted: rgba(28, 26, 22, 0.35);
  --frame: #efe8df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Futura PT", "Futura", "Jost", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

a {
  color: inherit;
}

.layout {
  padding: 0 15px;
  max-width: 1300px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .layout {
    padding: 0 30px;
  }
}

@media (min-width: 1450px) {
  .layout {
    padding: 0 50px;
    max-width: 1800px;
  }
}

.header {
  display: flex;
  padding: 16px 0 10px;
}

.header_item-align_space {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.header__name {
  letter-spacing: 2px;
}

.button {
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
}

.button_type_link {
  color: var(--text);
  text-transform: uppercase;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 360px;
  background: var(--frame);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery_empty {
  color: var(--muted);
  font-size: 12px;
}

.gallery__item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.gallery__item_current {
  opacity: 1;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.footer {
  display: flex;
  padding: 20px 0 28px;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 520px) {
  .footer {
    flex-direction: row;
  }
}

.footer_align-items_space-between {
  justify-content: space-between;
}

.footer__left {
  display: flex;
  flex-wrap: wrap;
  order: 2;
  gap: 20px;
}

@media (min-width: 520px) {
  .footer__left {
    order: 1;
  }
}

.footer__right {
  order: 1;
  margin-bottom: 10px;
  max-width: 280px;
}

@media (min-width: 520px) {
  .footer__right {
    order: 2;
    margin-bottom: 0;
  }
}

.footer__menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  width: 100%;
  margin-bottom: 12px;
  margin-right: 20px;
}

@media (min-width: 520px) {
  .footer__logo {
    width: 180px;
  }
}

.footer__caption {
  width: 260px;
}

@media (max-width: 520px) {
  .footer__caption {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}

.list {
  line-height: 1.3;
}

.list__item {
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  opacity: 0.35;
}

.list__item_uppercase {
  text-transform: uppercase;
}

.list__item_inline-block {
  display: inline-block;
  margin-right: 5px;
}

.list__item_current {
  color: var(--text);
  opacity: 1;
}

.caption__image-name {
  min-height: 36px;
  white-space: pre-line;
  transition: opacity 0.3s ease;
}

.caption__image-name.is-fading {
  opacity: 0;
}

.caption__pagination {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.caption__pagination-item {
  line-height: 1;
  padding: 3px 5px;
  border: none;
  background: none;
}

.caption__buttons-wrapper {
  margin-top: 12px;
  display: flex;
}

.caption__button {
  display: block;
  height: 10px;
  width: 12px;
  margin-right: 6px;
  padding: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50%;
  opacity: 0.2;
}

.caption__button_current {
  opacity: 1;
}

.caption__button:focus {
  outline: none;
}

.button_play {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='124.512' height='124.512'%3E%3Cpath d='M113.956 57.006l-97.4-56.2c-4-2.3-9 .6-9 5.2v112.5c0 4.6 5 7.5 9 5.2l97.4-56.2c4-2.401 4-8.2 0-10.5z'/%3E%3C/svg%3E");
}

.button_pause {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13.221 13.221'%3E%3Cg fill='%23030104'%3E%3Cpath d='M3.756 0H1.523C1.029 0 .629.4.629.894v11.434c0 .493.4.893.894.893h2.233a.893.893 0 00.894-.893V.894A.892.892 0 003.756 0zM11.698 0H9.464c-.493 0-.894.4-.894.894v11.434c0 .493.4.893.894.893h2.234a.893.893 0 00.894-.893V.894A.894.894 0 0011.698 0z'/%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width: 520px) {
  .caption__pagination {
    width: 100%;
    overflow-x: auto;
  }
  .caption__buttons-wrapper {
    margin-top: 8px;
  }
}

.content {
  max-width: 640px;
}

.content-text {
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0.4px;
  line-height: 1.6;
  color: var(--text);
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pub-title,
.pub-medium,
.contact-value {
  text-transform: none;
  letter-spacing: 0.6px;
}

.contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 10px;
  opacity: 0.6;
}

.contact-value {
  text-decoration: none;
}

@media (max-width: 700px) {
  .gallery {
    height: 52vh;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item {
    transition: none;
  }
  .caption__image-name {
    transition: none;
  }
}
