.text {
  transition: 0.3s;
}
.text--link {
  color: #FFBF00;
}
.text--primary {
  color: #FFFFFF;
}
.text--secondary {
  color: #C496AA;
}
.text--tertiary {
  color: #A8768A;
}

.icon--accent {
  color: #FFBF00 !important;
}
.icon--1 {
  color: #4F0F28;
}
.icon--2 {
  color: #FFFFFF;
}
.icon--3 {
  color: #C496AA;
}

:root {
  --bg-main: #330C1C;
  --yellow-main: #FFBF00;
  --bg-3: #4F0F28;
  --border-main: #6E2B46;
  --text-secondary: #C496AA;
  --border-secondary: #6E2B46;
  --switcher: #C496AA;
}

.background {
  transition: 0.3s;
}
.background--back-main {
  background: #330C1C;
}
.background--back-2 {
  background: #3F0C21;
}
.background--back-3 {
  background: #4F0F28;
}
.background--white {
  background: rgba(255, 255, 255, 0.1);
}

body.light-theme {
  --bg-main: #F1F1F3;
  --yellow-main: #80113C;
  --bg-3: #fff;
  --border-main: #E4E4E8;
  --text-secondary: #777788;
  --border-secondary: #6E2B46;
  --switcher: #FFBF00;
}

body.light-theme .text--link {
  color: #80113C;
}
body.light-theme .text--primary {
  color: #18181C;
}
body.light-theme .text--secondary {
  color: #777788;
}
body.light-theme .text--tertiary {
  color: #AEAEB8;
}
body.light-theme .icon--accent {
  color: #80113C !important;
}
body.light-theme .icon--1 {
  color: #FFBF00;
}
body.light-theme .icon--2 {
  color: #18181C;
}
body.light-theme .icon--3 {
  color: #777788;
}
body.light-theme .background--back-main {
  background: #F1F1F3;
}
body.light-theme .background--back-2 {
  background: #E4E4E8;
}
body.light-theme .background--back-3 {
  background: #FFFFFF;
}
body.light-theme .background--white {
  background: #FFFFFF;
}

.color--black {
  color: #000000;
}
.color--black-50 {
  color: rgbd(#000000, 0.5);
}
.color--white {
  color: #FFFFFF;
}
.color--gray {
  color: #D9D9D9;
}
.color--gray-secondary {
  color: #BFBFBF;
}
.color--gray-third {
  color: #333333;
}
.color--gray-5 {
  color: #E0E0E0;
}
.color--gray-2 {
  color: #F5F5F5;
}
.color--dark-gray {
  color: #404040;
}
.color--green {
  color: #29D37E;
}
.color--red {
  color: #E0455A;
}
.color--burgundy-800 {
  color: #200610;
}
.color--burgundy-800 {
  color: #200610;
}
.color--burgundy-600 {
  color: #3F0C21;
}
.color--burgundy-500 {
  color: #4F0F28;
}
.color--burgundy-400 {
  color: #6E2B46;
}
.color--burgundy-300 {
  color: #A8768A;
}
.color--burgundy-200 {
  color: #C496AA;
}
.color--burgundy-100 {
  color: #DAAEC1;
}
.color--burgundy-50 {
  color: #EBBDD0;
}
.color--burgundy-accent {
  color: #80113C;
}
.color--neutral-900 {
  color: #18181C;
}
.color--neutral-800 {
  color: #27272B;
}
.color--neutral-700 {
  color: #484852;
}
.color--neutral-600 {
  color: #5F5F6D;
}
.color--neutral-500 {
  color: #777788;
}
.color--neutral-400 {
  color: #9292A0;
}
.color--neutral-300 {
  color: #AEAEB8;
}
.color--neutral-200 {
  color: #C8C9D0;
}
.color--neutral-100 {
  color: #E4E4E8;
}
.color--neutral-50 {
  color: #F1F1F3;
}
.color--yellow-600 {
  color: #CC9800;
}
.color--yellow-500 {
  color: #FFBF00;
}
.color--yellow-300 {
  color: #FFD761;
}
.color--yellow-200 {
  color: #FFEBB2;
}
.color--blue {
  color: #0099FF;
}
.color--orange {
  color: #E48423;
}

.bg--black {
  background: #000000;
}
.bg--black-50 {
  background: rgbd(#000000, 0.5);
}
.bg--white {
  background: #FFFFFF;
}
.bg--gray {
  background: #D9D9D9;
}
.bg--gray-third {
  background: #333333;
}
.bg--gray-5 {
  background: #E0E0E0;
}
.bg--gray-2 {
  background: #F5F5F5;
}
.bg--dark-gray {
  background: #404040;
}
.bg--green {
  background: #29D37E;
}
.bg--red {
  background: #E0455A;
}
.bg--burgundy-800 {
  background: #200610;
}
.bg--burgundy-700 {
  background: #330C1C;
}
.bg--burgundy-600 {
  background: #3F0C21;
}
.bg--burgundy-500 {
  background: #4F0F28;
}
.bg--burgundy-400 {
  background: #6E2B46;
}
.bg--burgundy-300 {
  background: #A8768A;
}
.bg--burgundy-200 {
  background: #C496AA;
}
.bg--burgundy-100 {
  background: #DAAEC1;
}
.bg--burgundy-50 {
  background: #EBBDD0;
}
.bg--burgundy-accent {
  background: #80113C;
}
.bg--neutral-900 {
  background: #18181C;
}
.bg--neutral-800 {
  background: #27272B;
}
.bg--neutral-700 {
  background: #484852;
}
.bg--neutral-600 {
  background: #5F5F6D;
}
.bg--neutral-500 {
  background: #777788;
}
.bg--neutral-400 {
  background: #9292A0;
}
.bg--neutral-300 {
  background: #AEAEB8;
}
.bg--neutral-200 {
  background: #C8C9D0;
}
.bg--neutral-100 {
  background: #E4E4E8;
}
.bg--neutral-50 {
  background: #F1F1F3;
}
.bg--yellow-600 {
  background: #CC9800;
}
.bg--yellow-500 {
  background: #FFBF00;
}
.bg--yellow-300 {
  background: #FFD761;
}
.bg--yellow-200 {
  background: #FFEBB2;
}
.bg--blue {
  background: #0099FF;
}
.bg--orange {
  background: #E48423;
}

.ls--1-1 {
  letter-spacing: -1.1%;
}

.border--stroke-1 {
  border: 1px solid #6E2B46;
}
.border--stroke-3 {
  border: 1px solid #C496AA;
}

body.light-theme .border--stroke-1 {
  border: 1px solid #E4E4E8;
}
body.light-theme .border--stroke-3 {
  border: 1px solid #AEAEB8;
}

.justified-gallery > a {
  border-radius: 12px;
}

body.light-theme .media-page-foto__more-list .news-card:hover .news-info > .sub-title {
  color: #FFBF00;
}
body.light-theme .media-page-foto__more-list .news-card .sub-title {
  transition: 0.3s;
  color: #18181C;
}
body.light-theme .media-page-foto__more-list .news-card .news-info > .sub-title {
  opacity: 1;
}

.gallery-item__btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: 0.3s;
  position: relative;
}
.gallery-item__btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.gallery-item__btn .visible {
  transition: 0.3s;
}
.gallery-item__btn:hover .visible {
  color: #FFBF00;
}
.gallery-item__btn .share-hidden-block {
  position: absolute;
  max-width: 300px;
  min-width: 300px;
  left: 50%;
  translate: -50% 0;
  bottom: 100%;
}

.gallery-item .gallery-item__btn {
  position: relative;
  z-index: 4;
  pointer-events: all;
}
.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
  visibility: visible;
}
.gallery-item__overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5019607843);
  transition: 0.3s;
  opacity: 0;
  visibility: hidden;
  column-gap: 8px;
  pointer-events: none;
}

.media-page-foto__more-list .news-card:hover .news-info > .sub-title {
  color: #FFBF00;
}
.media-page-foto__more-list .news-card .sub-title {
  transition: 0.3s;
  color: #FFFFFF;
}
.media-page-foto__more-list .news-card .news-info > .sub-title {
  opacity: 1;
}
.media-page-foto__image {
  width: 100%;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
}
.media-page-foto__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 992px) {
  .media-page-foto__image {
    border-radius: 8px;
    height: 280px;
  }
}
.media-page-foto__gallery-layout {
  align-items: start;
}
.media-page-foto__gallery-main {
  grid-column: span 2;
}
.media-page-foto__gallery-list {
  width: 100%;
  --gallery-row-height-desktop: 180;
  --gallery-row-height-mobile: 228;
  --gallery-max-row-height-desktop: 220;
  --gallery-max-row-height-mobile: 260;
  --gallery-gap-desktop: 12;
  --gallery-gap-mobile: 8;
}
.media-page-foto .gallery-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.media-page-foto .gallery-item img {
  border-radius: 12px;
  width: 100%;
  object-fit: cover;
  height: 100% !important;
}
.media-page-foto .gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}
.media-page-foto .gallery-item__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 12px;
}
.media-page-foto .gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}
.media-page-foto__more {
  grid-column: span 1;
}
.media-page-foto__more-item {
  position: relative;
  overflow: hidden;
}
.media-page-foto__more-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.media-page-foto__more-body {
  align-items: flex-start;
}
.media-page-foto__more-image {
  flex: 0 0 108px;
  max-width: 108px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
}
.media-page-foto__more-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-page-foto__more-content {
  flex: 1 1 auto;
  min-width: 0;
}
.media-page-foto__more-meta {
  flex-wrap: wrap;
}
@media (max-width: 1080px) {
  .media-page-foto__more-image {
    flex-basis: 96px;
    max-width: 96px;
    height: 84px;
  }
}
@media (max-width: 992px) {
  .media-page-foto .gallery-item,
  .media-page-foto .gallery-item img {
    border-radius: 8px;
  }
  .media-page-foto__gallery-main {
    grid-column: span 1;
  }
  .media-page-foto__more {
    margin-top: 20px;
  }
  .media-page-foto__more-body {
    gap: 10px;
  }
  .media-page-foto__more-image {
    flex-basis: 88px;
    max-width: 88px;
    height: 76px;
    border-radius: 8px;
  }
}

.gallery-share-popover {
  position: fixed;
  z-index: 120;
  width: 300px;
  padding: 12px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.gallery-share-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.gallery-share-popover__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.gallery-share-popover__item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}
.gallery-share-popover__item:hover {
  background: #FFBF00;
  color: #18181C;
}
.gallery-share-popover .gallery-item__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: 0.3s;
  border-radius: 50%;
}
.gallery-share-popover .gallery-item__btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.gallery-share-popover__item:hover .gallery-item__btn {
  color: #18181C;
}

body.light-theme .gallery-item__btn {
  transition: 0.3s;
}
body.light-theme .gallery-item__btn:hover {
  color: #FFBF00;
}
body.light-theme .gallery-share-popover {
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
body.light-theme .gallery-share-popover .gallery-item__btn {
  color: inherit;
}
body.light-theme .gallery-share-popover__item {
  background: #e9e9ee;
  color: #2a2a2a;
}
body.light-theme .gallery-share-popover__item:hover {
  background: #FFEBB2;
  color: #18181C;
}