/*
Theme Name: OrdinaryDays
Theme URI: http://nanti.ru
Author: Grigoriy Denisov
Author URI: http://nanti.ru
Description: Кастомная тема для фото сайта
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nanti-theme
*/

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: Inter;
  height: 100dvh; /* Динамическая высота вьюпорта */
  margin: 0;
  padding: 0;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
  padding-left: 0;
}

/* main background */
.main {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(1, 1fr);
  position: relative;
  height: 100%;
}

@media (max-width: 1724px) {
  .main {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr;
  }
}

@media (max-width: 1280px) {
  .main {
    grid-template-columns: repeat(2, 50vw);
    grid-template-rows: repeat(2, 50dvh);
  }
}

/* main pillar info + language */

/* Сбрасываем стили для всех элементов списка Polylang */
.language_panel ul,
.language_panel li,
.language_panel a {
    all: unset; 
    padding: 0;
    margin: 0;
    list-style: none; /* Убираем стандартные маркеры у списка */
    text-decoration: none; /* Убираем подчеркивание у ссылок */
    cursor: pointer;
}

/* Добавляем свой стиль для ссылок внутри панели языков */
.language_panel a {
	  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  -webkit-appearance: none;
	 font-weight: 450;
  font-size: 12px;
  line-height: 16px;
}

/* Стиль для li, если необходимо */
.language_panel li {
	display: flex;
	gap: 8px;
}

/* Наведение и фокус */
.language_panel a:hover,
.language_panel a:focus {
    color: #2620cd;
    border-color: #2620cd;
}

/* Активный язык, если используется класс current-lang */
.language_panel .current-lang {
  color: #2620cd;
}


.info {
  cursor: pointer;
  font-weight: 450;
  font-size: 12px;
  line-height: 16px;
  color: #000;
}

.info:hover {
  color: #2620cd;
}
/* all pillar */
.q {
  position: relative;
}

.q::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: rgba(0, 0, 0, 17%);
}

/* pillar 1 */
.pillar_1 {
  padding: 32px 8px;
  grid-area: 1 / 1 / 3 / 1;
}

.main_area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
   height: 100%;
}

.main_area-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  padding: 0px 8px;
}

.events-list {
  max-height: 75dvh;
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0 8px;
}


@media (min-width: 1280px) {
  .main_area {
	position: relative;
    z-index: 999
  }
}

.events-list-collection {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 450;
  font-size: 12px;
  line-height: 16px;
  color: #000;
}

/* pillar 2 */
.pillar_2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 450;
  font-size: 12px;
  line-height: 16px;
  color: #000;
  padding: 32px 8px;
  grid-area: 1 / 2 / 1 / 2;
}

@media (max-width: 1280px) {
  .pillar_2 {
    grid-area: 1 / 2 / 3 / 2;
  }
}

.days_area {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 450;
  font-size: 12px;
  line-height: 16px;
  max-height: 100dvh;
  overflow: auto;
  scrollbar-width: none;
}

@media (min-width: 1280px) {
  .days_area {
    z-index: 999
  }
}

.day-item {
  font-weight: 450;
  font-size: 12px;
  line-height: 16px;
  color: #000;
  z-index: 8;
}

.story-link {
  z-index: 8;
}

.story-link,
.day-link {
	cursor : pointer;
}

.story-link:hover,
.day-link:hover {
  color: #2620cd;
}

.story-link.active,
.day-link.active {
  color: #2620cd;
}

.story-link:focus,
.day-link:focus {
  outline: none;
  color: #2620cd;
}

.list-item:active,
.day-link:active {
  color: #2620cd;
}

.photo {
  display: none;
  position: absolute;
	right: 0;
	top: 0;
	left: 0;
	bottom: 0;
	margin: auto;
  z-index: 10;
  padding: 32px;
}

@media (max-width: 1280px) {
  .photo {
    grid-area: 1 / 1 / 3 / 3;
    margin-left: 0;
    background-color: #fff;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    flex-direction: column;
    padding: 32px 16px;
  }
}

.photo_modal {
  display: flex;
  justify-content: center;
  font-weight: 450;
  font-size: 12px;
  line-height: 16px;
}

@media (max-width: 1280px) {
.photo_boss {
	display: flex;
	height: 100%;
	align-items: end;
	justify-content: center;
	}
}

@media (max-width: 769px) {
.photo_boss {
	display: flex;
	height: 100%;
	align-items: end;
	justify-content: start;
	}
}
		

.photo_container {
  display: flex;
	justify-content: center;
  gap: 32px;
}

@media (max-width: 1724px) {
  .photo_container {
    gap: 24px;
	  
  }
}

@media (max-width: 1420px) {
  .photo_container {
    gap: 20px;
	  
  }
}

@media (max-width: 1280px) {
  .photo_container {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory; /* Привязка к точкам прокрутки */
    scroll-behavior: smooth; /* Плавная прокрутка */
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка на мобильных устройствах */
    align-items: end;
    justify-content: center;
    gap: 16px;
	padding: 16px 0px;
  }
}

@media (max-width: 769px) {
  .photo_container {
    justify-content: start !important;
    gap: 16px !important;
  }
}

@media (max-width: 964px) {
  .photo_container {
    justify-content: center;
  }
}


.close_containerPhoto {
  cursor: pointer;
  display: none;

  color: #2620cd;
}

@media (max-width: 1280px) {
  .close_containerPhoto {
    display: block;
	    position: absolute;
  left: 16px;
  }
}

.close_containerPhoto-days {
  display: none;
}

@media (max-width: 1280px) {
  .close_containerPhoto-days {
    display: block;
  }
}

@media (max-width: 764px) {
  .photo_container img {
    display: inline-flex;
    scroll-snap-align: start; /* Привязка к началу контейнера */
    flex: 0 0 auto; /* Запрещаем изменение размера изображений */
  }
}

.photo-item {
  width: 80px;
  height: 64px;
  cursor: pointer;
  object-fit: cover;
  background-color: #ebebeb;
}

@media (max-width: 1724px) {
.photo-item {
  width: 60px;
  height: 48px;
	}
}

@media (max-width: 1420px) {
.photo-item {
  width: 50px;
  height: 40px;
	}
}
@media (min-width: 1430px) {
  .photo-item:hover {
    opacity: 0.33 !important;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.info_area {
  display: none;
  grid-area: 1 / 2 / 1 / 2;
}

.point {
  display: none;
  width: 500px;
  height: 400px;
  z-index: 1;
}

@media (max-width: 1280px) {
  .point {
    width: 360px;
    height: 290px;
    z-index: 11;
  }
}

@media (max-width: 468px) {
  .point {
    padding: 0px 16px;
    width: 100%;
    height: auto;
    aspect-ratio: 5/4;
    z-index: 11;
  }
}

.pillar_3 {
  grid-area: 1 / 3 / 1 / 3;
}

@media (max-width: 1280px) {
  .pillar_3 {
    display: none;
  }
}

.pillar_4 {
  grid-area: 1 / 4 / 1 / 4;
}

@media (max-width: 1280px) {
  .pillar_4 {
    display: none;
  }
}

.pillar_5 {
  grid-area: 1 / 5 / 1 / 5;
}

@media (max-width: 1280px) {
  .pillar_5 {
    display: none;
  }
}

.pillar_6 {
  grid-area: 1 / 6 / 1 / 6;
}

@media (max-width: 1280px) {
  .pillar_6 {
    display: none;
  }
}

.pillar_7 {
  grid-area: 1 / 7 / 1 / 7;
}

@media (max-width: 1724px) {
  .pillar_7 {
    display: none;
  }
}

.pillar_8 {
  grid-area: 1 / 8 / 1 / 8;
}

@media (max-width: 1724px) {
  .pillar_8 {
    display: none;
  }
}

#point1 {
  position: absolute;
  top: 60%;
  left: 30%;
  transform: translate(-30%, -60%);
}

@media (max-width: 1280px) {
  #point1 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
  }
}

#point2 {
  position: absolute;
  top: 50%;
  left: 3%;
  transform: translate(3%, -50%);
}

@media (max-width: 1280px) {
  #point2 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
  }
}

#point3 {
  position: absolute;
  top: 65%;
  left: 75%;
  transform: translate(-65%, -75%);
}

@media (max-width: 1280px) {
  #point3 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
  }
}

#point4 {
  position: absolute;
  top: 70%;
  left: 45%;
  transform: translate(-45%, -70%);
}

@media (max-width: 1280px) {
  #point4 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
  }
}

#point5 {
  position: absolute;
  top: 25%;
  left: 15%;
  transform: translate(-15%, -25%);
}

@media (max-width: 1280px) {
  #point5 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
  }
}

#point6 {
  position: absolute;
  top: 55%;
  left: 65%;
  transform: translate(-55%, -65%);
}

@media (max-width: 1280px) {
  #point6 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
  }
}

#point7 {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-25%, -50%);
}

@media (max-width: 1280px) {
  #point7 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
  }
}

#point8 {
  position: absolute;
  top: 40%;
  left: 70%;
  transform: translate(-70%, -40%);
}

@media (max-width: 1280px) {
  #point8 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
  }
}

#point9 {
  position: absolute;
  top: 35%;
  left: 40%;
  transform: translate(-40%, -35%);
}

@media (max-width: 1280px) {
  #point9 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
  }
}

#point10 {
  position: absolute;
  top: 60%;
  left: 40%;
  transform: translate(-40%, -60%);
}

@media (max-width: 1280px) {
  #point10 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
  }
}

.infoModal {
  display: none;
  grid-area: 1 / 2 / 1 / 4;
  padding: 32px 8px;
  overflow: auto;
  z-index: 999;
  scrollbar-width: none;
}

@media (max-width: 1280px) {
  .infoModal {
    overflow: hidden;
    flex-direction: column;
    height: 100dvh;
    grid-area: 1 / 1 / 3 / 3;
    z-index: 10;
    padding: 0px 8px;
    background-color: #fff;
  }
}

.infoModal.show {
  display: block;
}

@media (max-width: 1280px) {
  .infoModal.show {
    display: flex;
  }
}

.infoModal_block-title {
  display: none;
}

@media (max-width: 1280px) {
  .infoModal_block-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 8px;
  }
}

.close-btn {
  display: none;
  font-size: 12px;
  font-weight: 450;
  line-height: 16px;
  color: #2620cd;
  cursor: pointer;
}

@media (max-width: 1280px) {
  .close-btn {
    display: block;
    position: absolute;
  }
}

.info_title {
  display: none;
  margin: auto;
  font-size: 12px;
  font-weight: 450;
  line-height: 16px;
}

@media (max-width: 1280px) {
  .info_title {
    display: block;
  }
}

.infoModal_main {
  display: flex;
  gap: 16px;
  flex-direction: column;
  padding: 0 8px;
}
@media (max-width: 469px) {
  .infoModal_main {
    overflow: auto;
    scrollbar-width: none;
	padding-bottom: 32px;
  }
}
@media (max-width: 469px) {
  .infoModal_main-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 5/4;
  }
}

.infoModal_main-block-text {
  font-size: 12px;
  font-weight: 450;
  line-height: 16px;
  color: #000000;
}
.infoImage-content {
  display: flex;
  object-fit: cover;
  background-color: #d6d6d6;
  width: 100%;
  height: auto;
  aspect-ratio: 5/4;
}

@media (max-width: 1440px) {
  .infoImage-content {
    width: 400px;
    height: 320px;
  }
}

@media (max-width: 476px) {
  .infoImage-content {
    width: 75%;
    height: auto;
    aspect-ratio: 5/4;
  }
}

.photo-item.selected {
  opacity: 0.5;
}