.ip-cs { position: relative; padding: 0 56px; }
.ip-cs__container { position: relative; overflow: hidden; }
.ip-cs .swiper-wrapper { position: relative; display: flex; box-sizing: content-box; width: 100%; height: 100%; z-index: 1; transition-property: transform; }
.ip-cs .swiper-slide { position: relative; flex-shrink: 0; width: 100%; height: auto; }
.ip-cs--single .swiper-slide { max-width: 420px; margin: 0 auto; }
.ip-cs__notice { margin: 0 0 8px; padding: 10px 12px; background: #fff8e1; color: #5f4b00; font-size: 14px; }

.ip-cs-card { display: flex; flex-direction: column; box-sizing: border-box; height: 100%; overflow: hidden; background: #eef2f4; color: inherit; text-decoration: none; }
.ip-cs-card:hover, .ip-cs-card:focus { color: inherit; text-decoration: none; }
.ip-cs-card:focus-visible { outline: 3px solid #0d726e; outline-offset: 2px; }

/* Miniatura 16:9: object-fit recorta las barras negras 4:3 que a veces trae YouTube. */
.ip-cs-card__thumb { position: relative; display: block; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #cfd9dc; }
.ip-cs-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ip-cs-card__ph { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #cfd9dc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230d726e' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 18% no-repeat; }
.ip-cs--play .ip-cs-card__thumb::after {
	content: ""; position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
	background: rgba(0, 0, 0, .65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 55% no-repeat;
}

.ip-cs-card__body { display: flex; flex: 1 1 auto; align-items: center; padding: 20px 30px; }
.ip-cs-card__title {
	display: -webkit-box; margin: 0; width: 100%; overflow: hidden; overflow-wrap: anywhere;
	-webkit-box-orient: vertical; -webkit-line-clamp: 6;
	font-size: 20px; line-height: 1.25; font-weight: 700; color: #0d726e;
}

.ip-cs__arrow {
	position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
	background: #a8e6d6; color: #0d726e; cursor: pointer; transition: background-color .2s;
}
.ip-cs__arrow:hover { background: #8fdcc8; }
.ip-cs__arrow:focus-visible { outline: 3px solid #0d726e; outline-offset: 2px; }
.ip-cs__arrow--prev { left: 8px; }
.ip-cs__arrow--next { right: 8px; }
.ip-cs__arrow.swiper-button-disabled { opacity: .45; cursor: default; }
.ip-cs__arrow.swiper-button-lock { display: none; }

@media (max-width: 767px) {
	.ip-cs { padding: 0 40px; }
	.ip-cs-card__body { padding: 16px 20px; }
	.ip-cs-card__title { font-size: 18px; }
	.ip-cs__arrow--prev { left: 2px; }
	.ip-cs__arrow--next { right: 2px; }
}

/* Lightbox */
html.ip-cs-lock { overflow: hidden; }
.ip-cs-lightbox {
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 56px 16px 16px;
	background: rgba(0, 0, 0, .85);
}
.ip-cs-lightbox__frame { width: min(100%, calc((100vh - 96px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.ip-cs-lightbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ip-cs-lightbox__close {
	position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.ip-cs-lightbox__sentinel { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.ip-cs-lightbox__close:hover { background: rgba(255, 255, 255, .3); }
.ip-cs-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.ip-cs__arrow { transition: none; }
}
