body.ahis-no-scroll { overflow: hidden ; height: 100%; } .ahis-stories-container { padding: 20px; } .story-thumbnail { text-align: center; cursor: pointer; color: #fff; } .story-thumbnail img { border-radius: 50%; width: 80px; height: 80px; object-fit: cover; } .story-title { color: #fff; margin-top: 5px; font-size: 16px; } .ahis-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; z-index: 9999999; overflow: hidden; } .overlay-swiper { height: 100%; } .swiper-slide .overlay-content { width: 100%; height: 100%; color: #fff; padding: 30px; background-size: cover; background-position: center; position: relative; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; } .overlay-description { margin-bottom: 60px; } .overlay-description h3 { font-size: 22px; margin-bottom: 15px; } .overlay-description p { font-size: 15px; max-height: 6em; overflow: hidden; text-overflow: ellipsis; margin-bottom: 15px; } .read-more { display: block; margin-top: 10px; font-weight: bold; color: #fff; text-decoration: none; font-size: 16px; } .progress-bar { position: absolute; top: 0; left: 0; height: 8px; background-color: #0073aa; width: 0; z-index: 10000; } .story-date { position: absolute; top: 12px; left: 16px; font-size: 14px; color: #fff; z-index: 10000; } .ahis-close { position: absolute; top: 12px; right: 16px; font-size: 26px; color: #fff; cursor: pointer; z-index: 10000; } .ahis-stories-container .swiper-slide { width: 100px; margin-right: 12px; } .story-thumbnail img { border: 3px solid #0096c7; padding: 2px; box-sizing: border-box; } .ahis-overlay { position: fixed ; inset: 0 ; z-index: 99999999 ; background-color: rgba(0, 0, 0, 0.9); } .overlay-description h3 { color: #ffffff; } @media (max-width: 768px) { .ahis-stories-container .swiper-slide { width: 80px; margin-right: 8px; } } @media (min-width: 769px) { .ahis-stories-container { justify-content: center; } } .ahis-stories-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .ahis-overlay { position: fixed ; inset: 0 ; z-index: 2147483647 ; background-color: rgba(0, 0, 0, 0.9); } @media (min-width: 768px) { .ahis-stories-container .swiper-wrapper { justify-content: center ; } } .ahis-stories-container .swiper-wrapper { display: flex; } @media (min-width: 768px) { .ahis-overlay { width: 420px; height: 740px; top: 50%; left: 50%; transform: translate(-50%, -50%); position: fixed; border-radius: 24px; box-shadow: 0 0 40px rgba(0, 0, 0, 0.6); background-color: #000; /* fallback in case something breaks */ } } @media (min-width: 768px) { .ahis-overlay { width: 420px !important; height: 740px !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; position: fixed !important; border-radius: 24px !important; box-shadow: 0 0 40px rgba(0, 0, 0, 0.6) !important; background-color: #000 !important; } } @media (min-width: 1024px) { .swiper-container.ahis-stories-container { display: flex; justify-content: center; } .swiper-container.ahis-stories-container .swiper-wrapper { width: auto !important; transform: none !important; margin: 0 auto !important; } .swiper-container.ahis-stories-container .swiper-slide { flex-shrink: 0; } } /* HIDE TITLES & EXCERPTS */ .overlay-description h3, .overlay-description p { display: none !important; } /* Emphasize read-more link */ .overlay-description .read-more { font-weight: 700; font-size: 18px; } /* Swipe hint arrows */ .swipe-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; line-height: 1; opacity: 0.6; padding: 10px; user-select: none; pointer-events: none; /* purely visual */ } .swipe-arrow.left { left: 10px; } .swipe-arrow.right { right: 10px; } @media (hover: hover) { .swipe-arrow { opacity: 0.35; } .overlay-content:hover .swipe-arrow { opacity: 0.7; } } /* Black background for story-date */ .story-date { background-color: rgba(0,0,0,0.8); padding: 4px 8px; border-radius: 4px; } /* Bigger, black arrows */ .swipe-arrow { font-size: 42px !important; color: #000 !important; } /* Background for read-more link */ .overlay-description .read-more { background-color: rgba(0,0,0,0.75); padding: 8px 12px; border-radius: 6px; display: inline-block; } /* Make close X button black */ .ahis-close { color: #000 !important; }