@charset "UTF-8";
body, html {
  height: 100%;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: #D4DAD9;
  color: #252525;
  overflow: hidden;
}

.slide {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.card {
  position: relative; /* Нужно для абсолютного позиционирования элементов внутри */
  width: 90vw;  /* Изменено с 170vmin */
  height: 80vh; /* Высота 80% от экрана */
  box-shadow: 0 30px 40px -15px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* На всю высоту */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: zoom-in; /* Показывает "лупу" при наведении */
}

#img01 {
  background-image: url(img/jira_1.png);
}

#img02 {
  background-image: url(img/jira_2.png);
}

#img03 {
  background-image: url(img/jira_3.png);
}

#img04 {
  background-image: url(img/jira_4.png);
}


.card__content {
  justify-content: center; /* Центрируем содержимое */
  align-items: center; /* Выравниваем по центру */
  text-align: center; /* Центрируем текст */
  height: 20%; /* Ограничиваем высоту */
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  padding: 3%;
  color: white;
  background: rgba(0, 0, 0, 0.5); /* Полупрозрачный чёрный фон */
  
}

@media (max-width: 768px) { /* Для мобильных устройств */
  .card__content {
    width: 80%; /* Увеличиваем ширину */
    height: auto; /* Даем блоку подстраиваться под контент */
    padding: 5%; /* Добавляем больше отступов */
    bottom: 0; /* Немного поднимаем */
  }
}

.card__content-header {
  font-size: 3.5vmin; /* Уменьшаем размер шрифта */
  font-weight: 700; /* Делаем текст менее жирным */
  margin: 0; /* Убираем отступы */
  line-height: 1.2; /* Делаем текст компактнее */
  /*
  font-weight: 900;
  font-size: 40px;
  font-size: 5vmin;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  line-height: 0.91;
  margin: 0.5vmin;
  */
  
}

.card__content-paragraph {
  font-size: 1.6vmin;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2.5vmin;
}

.card__content-link {
  color: #BA3428;
  font-size: 1.8vmin;
  display: block;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.card__content-link:hover {
  opacity: 1;
}
.card__content-link:after {
  content: " →";
}

.prevnext {
  position: absolute;
  width: 6vw;  /* Увеличенная ширина кнопок */
  height: 12vh; /* Увеличенная высота */
  right: 1%;

  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

.prevnext-button {
  width: 100%;
  height: 50%;
  border: 2px solid white; /* Добавлена граница */
  background-color: rgba(0, 0, 0, 0.5); /* Затемненный фон */
  font-size: 3vw; /* Увеличенный шрифт */
  color: white; /* Белый цвет текста */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 10px; /* Скругленные углы */

}

.prevnext-button:hover {
  background-color: rgba(255, 255, 255, 0.7); /* Осветление при наведении */
  color: black;
  transform: scale(1.1); /* Увеличение */
}

#prev, #next {
  position: relative;
  cursor: pointer;
}
#prev:hover:after, #prev:hover:after, #next:hover:after, #next:hover:after {
  opacity: 1;
}

#prev:after, #next:after {
  font-size: 3vw;
  font-weight: bold;
}

#prev:after {
  content: "▲"
}

#next:after {
  content: "▼"; /* Стрелка вниз */
}

#magnify {
  display: none;
  position: fixed;
  max-width: 800px;
  height: auto;
  z-index: 9999;
}
#magnify img {
  width: 100%;
}
/* затемняющий фон */
#overlay {
  display: none;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  z-index: 9990;
}
/* кнопка закрытия */
#close-popup {
  width: 30px;
  height: 30px;
  background: #FFFFFF;
  border: 1px solid #AFAFAF;
  border-radius: 15px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
}
#close-popup i {
  width: 30px;
  height: 30px;
  background: url(https://codernote.ru/files/cross.png) no-repeat center center;
  background-size: 16px 16px;
  display: block;
}
@keyframes rota {
 25% { transform: rotate(360deg); }
}
#close-popup:hover {
  animation: rota 4s infinite normal;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}