You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. /***************/
  2. /* IMAGE FOCUS */
  3. /***************/
  4. /*=--------------=*/
  5. /*= Hover styles =*/
  6. /*=--------------=*/
  7. .img img:hover {
  8. filter: drop-shadow(0 0 3px #777);
  9. cursor: zoom-in;
  10. }
  11. .img img:active {
  12. transform: scale(0.975);
  13. }
  14. /*=---------=*/
  15. /*= Overlay =*/
  16. /*=---------=*/
  17. #image-focus-overlay {
  18. position: fixed;
  19. top: 0;
  20. right: 0;
  21. bottom: 0;
  22. left: 0;
  23. z-index: 2001;
  24. display: none;
  25. cursor: zoom-out;
  26. }
  27. #image-focus-overlay::before {
  28. content: "";
  29. display: block;
  30. position: absolute;
  31. top: 0;
  32. right: 0;
  33. bottom: 0;
  34. left: 0;
  35. background-color: #000;
  36. opacity: 0.9;
  37. z-index: -1;
  38. }
  39. #image-focus-overlay.engaged {
  40. display: initial;
  41. }
  42. #image-focus-overlay img {
  43. margin: auto;
  44. position: absolute;
  45. top: 0;
  46. bottom: 0;
  47. left: 0;
  48. right: 0;
  49. }
  50. /*=-------------------=*/
  51. /*= Single-image mode =*/
  52. /*=-------------------=*/
  53. #image-focus-overlay:not(.slideshow) .image-number,
  54. #image-focus-overlay:not(.slideshow) .slideshow-buttons,
  55. #image-focus-overlay:not(.slideshow) .slideshow-help-text {
  56. display: none;
  57. }
  58. /*=---------=*/
  59. /*= Caption =*/
  60. /*=---------=*/
  61. #image-focus-overlay .caption {
  62. position: absolute;
  63. bottom: 0.75em;
  64. background-color: rgba(0, 0, 0, 0.7);
  65. left: 4.5em;
  66. right: 4.5em;
  67. margin: auto;
  68. max-width: calc(100% - 9em);
  69. text-align: center;
  70. font-family: "Lucida Sans Unicode", "Source Sans Pro", Helvetica, "Trebuchet MS", sans-serif;
  71. border-radius: 8px;
  72. z-index: 1;
  73. transition:
  74. bottom 0.15s ease;
  75. }
  76. @supports (width: -moz-fit-content) {
  77. #image-focus-overlay .caption {
  78. width: -moz-fit-content;
  79. }
  80. }
  81. @supports (width: fit-content) {
  82. #image-focus-overlay .caption {
  83. width: fit-content;
  84. }
  85. }
  86. #image-focus-overlay .caption.hidden {
  87. bottom: -50%;
  88. transition:
  89. bottom 0.5s ease-in;
  90. }
  91. #image-focus-overlay .caption p {
  92. margin: 1em 1.25em;
  93. color: #fff;
  94. }
  95. #image-focus-overlay .caption code {
  96. background-color: inherit;
  97. border: none;
  98. font-size: 1em;
  99. }
  100. #image-focus-overlay .caption a {
  101. color: #ccc;
  102. }
  103. #image-focus-overlay .caption a:hover {
  104. color: #aaa;
  105. }
  106. #image-focus-overlay .caption:not(:empty)::before {
  107. content: "";
  108. display: block;
  109. position: absolute;
  110. width: 100vw;
  111. height: calc(100% + 1.5em);
  112. z-index: -1;
  113. top: -0.75em;
  114. left: calc(-50vw + 50%);
  115. }
  116. /*=--------------=*/
  117. /*= Help overlay =*/
  118. /*=--------------=*/
  119. #image-focus-overlay .help-overlay {
  120. position: absolute;
  121. display: flex;
  122. flex-flow: column;
  123. z-index: 3;
  124. font-family: "Lucida Sans Unicode", "Source Sans Pro", Helvetica, "Trebuchet MS", sans-serif;
  125. font-size: 1.25rem;
  126. padding: 1em;
  127. border-radius: 10px;
  128. bottom: 1em;
  129. right: 1em;
  130. overflow: hidden;
  131. white-space: nowrap;
  132. color: transparent;
  133. cursor: help;
  134. visibility: hidden;
  135. transition:
  136. visibility 1s ease,
  137. color 1s ease,
  138. background-color 1s ease,
  139. bottom 0.3s ease;
  140. }
  141. #image-focus-overlay .help-overlay:hover {
  142. max-width: 24em;
  143. max-height: 14em;
  144. background-color: rgba(0, 0, 0, 0.85);
  145. color: #fff;
  146. visibility: visible;
  147. transition:
  148. visibility 0.2s ease 0.3s,
  149. color 0.2s ease 0.3s,
  150. background-color 0.2s ease 0.3s;
  151. }
  152. #image-focus-overlay .help-overlay::after {
  153. content: "?";
  154. font-weight: bold;
  155. font-size: 2rem;
  156. position: absolute;
  157. right: 0;
  158. bottom: 0;
  159. padding: 10px;
  160. color: #000;
  161. filter: drop-shadow(0 0 6px #fff);
  162. visibility: visible;
  163. opacity: 0.85;
  164. transition:
  165. visibility 1s ease;
  166. }
  167. #image-focus-overlay .help-overlay:hover::after {
  168. visibility: hidden;
  169. transition:
  170. visibility 0.2s ease 0.3s;
  171. }
  172. #image-focus-overlay .help-overlay p {
  173. margin: 0;
  174. text-indent: -2em;
  175. padding-left: 2em;
  176. max-width: 100%;
  177. overflow: hidden;
  178. }
  179. #image-focus-overlay .help-overlay p + p {
  180. margin: 0.75em 0 0 0;
  181. }
  182. #image-focus-overlay .help-overlay.hidden {
  183. bottom: -2em;
  184. }
  185. /*=--------------=*/
  186. /*= Slide number =*/
  187. /*=--------------=*/
  188. #image-focus-overlay .image-number {
  189. position: absolute;
  190. z-index: 2;
  191. font-family: "Lucida Sans Unicode", "Source Sans Pro", Helvetica, "Trebuchet MS", sans-serif;
  192. font-size: 1.5rem;
  193. left: 1em;
  194. top: 1em;
  195. font-weight: 600;
  196. text-shadow:
  197. 0 0 3px #fff,
  198. 0 0 5px #fff,
  199. 0 0 8px #fff,
  200. 0 0 13px #fff;
  201. width: 1.5em;
  202. text-align: right;
  203. white-space: nowrap;
  204. transition: top 0.3s ease;
  205. }
  206. #image-focus-overlay .image-number::before {
  207. content: "#";
  208. opacity: 0.3;
  209. }
  210. #image-focus-overlay .image-number::after {
  211. content: " of " attr(data-number-of-images);
  212. opacity: 0.3;
  213. }
  214. #image-focus-overlay .image-number:hover::before,
  215. #image-focus-overlay .image-number:hover::after {
  216. opacity: 1.0;
  217. }
  218. #image-focus-overlay .image-number.hidden {
  219. top: -1.25em;
  220. }
  221. /*=-------------------=*/
  222. /*= Slideshow buttons =*/
  223. /*=-------------------=*/
  224. #image-focus-overlay .slideshow-buttons {
  225. position: absolute;
  226. top: 0;
  227. left: 0;
  228. width: 100%;
  229. height: 100%;
  230. z-index: 2;
  231. display: flex;
  232. justify-content: space-between;
  233. pointer-events: none;
  234. }
  235. #image-focus-overlay .slideshow-buttons button {
  236. font-size: 3rem;
  237. color: #ddd;
  238. border: none;
  239. background-color: transparent;
  240. position: relative;
  241. left: 0;
  242. transition:
  243. left 0.3s ease;
  244. pointer-events: auto;
  245. cursor: pointer;
  246. width: 4rem;
  247. background-repeat: no-repeat;
  248. background-position: center;
  249. background-origin: content-box;
  250. }
  251. #image-focus-overlay .slideshow-buttons button.next {
  252. padding: 0.25em 0.25em 0.25em 0.375em;
  253. }
  254. #image-focus-overlay .slideshow-buttons button.previous {
  255. padding: 0.25em 0.375em 0.25em 0.25em;
  256. }
  257. #image-focus-overlay .slideshow-buttons button svg {
  258. pointer-events: none;
  259. fill: currentColor;
  260. }
  261. #image-focus-overlay .slideshow-buttons button::selection {
  262. background-color: transparent;
  263. }
  264. @media only screen and (hover: hover) {
  265. #image-focus-overlay .slideshow-buttons button:hover {
  266. background-color: rgba(0, 0, 0, 0.1);
  267. color: #777;
  268. }
  269. #image-focus-overlay .slideshow-buttons button:not(:disabled):hover svg {
  270. filter:
  271. drop-shadow(0 0 1px #fff)
  272. drop-shadow(0 0 3px #fff);
  273. }
  274. }
  275. #image-focus-overlay .slideshow-buttons button:active {
  276. transform: none;
  277. color: #888;
  278. }
  279. #image-focus-overlay .slideshow-buttons button:disabled {
  280. text-shadow: none;
  281. background-color: transparent;
  282. color: #ddd;
  283. cursor: default;
  284. opacity: 0.4;
  285. }
  286. #image-focus-overlay .slideshow-button.previous.hidden {
  287. left: -1.75em;
  288. }
  289. #image-focus-overlay .slideshow-button.next.hidden {
  290. left: 1.75em;
  291. }
  292. /*=---------=*/
  293. /*= Tooltip =*/
  294. /*=---------=*/
  295. .image-wrapper {
  296. position: relative;
  297. display: block;
  298. margin: auto;
  299. }
  300. .image-wrapper::after {
  301. content: "Click to enlarge";
  302. display: block;
  303. position: absolute;
  304. margin: auto;
  305. left: 0;
  306. right: 0;
  307. bottom: 10px;
  308. padding: 6px 15px 7px 15px;
  309. font-size: 1rem;
  310. font-family: var(--deus-body-font);
  311. background-color: rgba(0, 0, 0, 0.75);
  312. color: #fff;
  313. border-radius: 5px;
  314. opacity: 0.0;
  315. transition: opacity 0.15s ease;
  316. pointer-events: none;
  317. }
  318. @supports (width: -moz-fit-content) {
  319. .image-wrapper,
  320. .image-wrapper::after {
  321. width: -moz-fit-content;
  322. }
  323. }
  324. @supports (width: fit-content) {
  325. .image-wrapper,
  326. .image-wrapper::after {
  327. width: fit-content;
  328. }
  329. }
  330. .image-wrapper:hover::after {
  331. opacity: 1.0;
  332. }