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.

229 lines
14 KiB

1 year ago
  1. .blocks-gallery-grid:not(.has-nested-images),.wp-block-gallery:not(.has-nested-images){
  2. display:flex;
  3. flex-wrap:wrap;
  4. list-style-type:none;
  5. margin:0;
  6. padding:0;
  7. }
  8. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item{
  9. display:flex;
  10. flex-direction:column;
  11. flex-grow:1;
  12. justify-content:center;
  13. margin:0 1em 1em 0;
  14. position:relative;
  15. width:calc(50% - 1em);
  16. }
  17. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){
  18. margin-right:0;
  19. }
  20. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure{
  21. align-items:flex-end;
  22. display:flex;
  23. height:100%;
  24. justify-content:flex-start;
  25. margin:0;
  26. }
  27. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img{
  28. display:block;
  29. height:auto;
  30. max-width:100%;
  31. width:auto;
  32. }
  33. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption{
  34. background:linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,.3) 70%, transparent);
  35. bottom:0;
  36. box-sizing:border-box;
  37. color:#fff;
  38. font-size:.8em;
  39. margin:0;
  40. max-height:100%;
  41. overflow:auto;
  42. padding:3em .77em .7em;
  43. position:absolute;
  44. text-align:center;
  45. width:100%;
  46. z-index:2;
  47. }
  48. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img{
  49. display:inline;
  50. }
  51. .blocks-gallery-grid:not(.has-nested-images) figcaption,.wp-block-gallery:not(.has-nested-images) figcaption{
  52. flex-grow:1;
  53. }
  54. .blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img{
  55. flex:1;
  56. height:100%;
  57. object-fit:cover;
  58. width:100%;
  59. }
  60. .blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item{
  61. margin-right:0;
  62. width:100%;
  63. }
  64. @media (min-width:600px){
  65. .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item{
  66. margin-right:1em;
  67. width:calc(33.33333% - .66667em);
  68. }
  69. .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item{
  70. margin-right:1em;
  71. width:calc(25% - .75em);
  72. }
  73. .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item{
  74. margin-right:1em;
  75. width:calc(20% - .8em);
  76. }
  77. .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item{
  78. margin-right:1em;
  79. width:calc(16.66667% - .83333em);
  80. }
  81. .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item{
  82. margin-right:1em;
  83. width:calc(14.28571% - .85714em);
  84. }
  85. .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item{
  86. margin-right:1em;
  87. width:calc(12.5% - .875em);
  88. }
  89. .blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){
  90. margin-right:0;
  91. }
  92. }
  93. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child{
  94. margin-right:0;
  95. }
  96. .blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright,.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright{
  97. max-width:420px;
  98. width:100%;
  99. }
  100. .blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure{
  101. justify-content:center;
  102. }
  103. .wp-block-gallery:not(.is-cropped) .blocks-gallery-item{
  104. align-self:flex-start;
  105. }
  106. figure.wp-block-gallery.has-nested-images{
  107. align-items:normal;
  108. }
  109. .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){
  110. margin:0;
  111. width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)/2);
  112. }
  113. .wp-block-gallery.has-nested-images figure.wp-block-image{
  114. box-sizing:border-box;
  115. display:flex;
  116. flex-direction:column;
  117. flex-grow:1;
  118. justify-content:center;
  119. max-width:100%;
  120. position:relative;
  121. }
  122. .wp-block-gallery.has-nested-images figure.wp-block-image>a,.wp-block-gallery.has-nested-images figure.wp-block-image>div{
  123. flex-direction:column;
  124. flex-grow:1;
  125. margin:0;
  126. }
  127. .wp-block-gallery.has-nested-images figure.wp-block-image img{
  128. display:block;
  129. height:auto;
  130. max-width:100% !important;
  131. width:auto;
  132. }
  133. .wp-block-gallery.has-nested-images figure.wp-block-image figcaption{
  134. background:linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,.3) 70%, transparent);
  135. bottom:0;
  136. box-sizing:border-box;
  137. color:#fff;
  138. font-size:13px;
  139. left:0;
  140. margin-bottom:0;
  141. max-height:60%;
  142. overflow:auto;
  143. padding:0 8px 8px;
  144. position:absolute;
  145. text-align:center;
  146. width:100%;
  147. }
  148. .wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{
  149. display:inline;
  150. }
  151. .wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{
  152. color:inherit;
  153. }
  154. .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{
  155. box-sizing:border-box;
  156. }
  157. .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div{
  158. flex:1 1 auto;
  159. }
  160. .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption{
  161. background:none;
  162. color:inherit;
  163. flex:initial;
  164. margin:0;
  165. padding:10px 10px 9px;
  166. position:relative;
  167. }
  168. .wp-block-gallery.has-nested-images figcaption{
  169. flex-basis:100%;
  170. flex-grow:1;
  171. text-align:center;
  172. }
  173. .wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){
  174. margin-bottom:auto;
  175. margin-top:0;
  176. }
  177. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){
  178. align-self:inherit;
  179. }
  180. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone){
  181. display:flex;
  182. }
  183. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{
  184. flex:1 0 0%;
  185. height:100%;
  186. object-fit:cover;
  187. width:100%;
  188. }
  189. .wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){
  190. width:100%;
  191. }
  192. @media (min-width:600px){
  193. .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){
  194. width:calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px)*.66667);
  195. }
  196. .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){
  197. width:calc(25% - var(--wp--style--unstable-gallery-gap, 16px)*.75);
  198. }
  199. .wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){
  200. width:calc(20% - var(--wp--style--unstable-gallery-gap, 16px)*.8);
  201. }
  202. .wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){
  203. width:calc(16.66667% - var(--wp--style--unstable-gallery-gap, 16px)*.83333);
  204. }
  205. .wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){
  206. width:calc(14.28571% - var(--wp--style--unstable-gallery-gap, 16px)*.85714);
  207. }
  208. .wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){
  209. width:calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px)*.875);
  210. }
  211. .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){
  212. width:calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px)*.66667);
  213. }
  214. .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){
  215. width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)*.5);
  216. }
  217. .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:last-child{
  218. width:100%;
  219. }
  220. }
  221. .wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{
  222. max-width:420px;
  223. width:100%;
  224. }
  225. .wp-block-gallery.has-nested-images.aligncenter{
  226. justify-content:center;
  227. }