/* Общие стили для изображений */
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Убираем обводку у iframe */
iframe {
  outline: none;
}
iframe:focus {
  outline: none;
  border: none;
}

/* ===== FULL WIDTH IMAGE ===== */
.iful {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.iful img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* ===== HORIZONTAL IMAGE BLOCK ===== */
.ihor {
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ihor img {
  width: 100%;
  height: auto;
}

/* Для десктопа ограничиваем контейнер, а не img */
@media (min-width: 561px) {
  .ihor {
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ===== VERTICAL IMAGE BLOCK ===== */
.iver {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px; /* небольшой отступ по бокам на мобильных */
}
.iver img {
  width: 100%;
  height: auto;
}

/* На больших экранах ограничиваем контейнер */
@media (min-width: 601px) {
  .iver {
    max-width: 560px;
  }
}

/* ===== FULL WIDTH VIDEO ===== */
.ifull-video {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ifull-video video {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Мобильная адаптация видео */
@media (max-width: 640px) {
  .ifull-video {
    height: auto;
  }
  .ifull-video video {
    width: 100%;
    height: auto;
  }
}

/* ===== VERTICAL VIDEO ===== */
.iver-video {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.iver-video video {
  width: 100%;
  height: auto;
}
@media (min-width: 480px) {
  .iver-video {
    width: 50%;
  }
  .iver-video video {
    width: 100%;
  }
}