| 1 |
/* Gallery Showcase — Style */ |
| 2 |
.bkbg-gs-wrapper { box-sizing: border-box; } |
| 3 |
|
| 4 |
/* Layout containers */ |
| 5 |
.bkbg-gs-showcase { display: flex; gap: 14px; } |
| 6 |
.bkbg-gs-showcase.bkbg-gs--thumb-bottom, |
| 7 |
.bkbg-gs-showcase.bkbg-gs--thumb-top { flex-direction: column; align-items: stretch; } |
| 8 |
.bkbg-gs-showcase.bkbg-gs--thumb-left { flex-direction: row-reverse; align-items: flex-start; } |
| 9 |
.bkbg-gs-showcase.bkbg-gs--thumb-right { flex-direction: row; align-items: flex-start; } |
| 10 |
|
| 11 |
/* Main image area */ |
| 12 |
.bkbg-gs-main { |
| 13 |
position: relative; |
| 14 |
border-radius: var(--bkbg-gs-main-r, 16px); |
| 15 |
overflow: hidden; |
| 16 |
flex: 1; |
| 17 |
background: #f3f4f6; |
| 18 |
} |
| 19 |
|
| 20 |
.bkbg-gs-slide { position: relative; } |
| 21 |
.bkbg-gs-slide img { |
| 22 |
position: absolute; |
| 23 |
inset: 0; |
| 24 |
width: 100%; |
| 25 |
height: 100%; |
| 26 |
object-fit: cover; |
| 27 |
display: block; |
| 28 |
transition: opacity 0.32s ease; |
| 29 |
} |
| 30 |
|
| 31 |
/* Counter badge */ |
| 32 |
.bkbg-gs-counter { |
| 33 |
position: absolute; |
| 34 |
top: 12px; |
| 35 |
right: 12px; |
| 36 |
background: var(--bkbg-gs-counter-bg, rgba(0,0,0,0.55)); |
| 37 |
color: var(--bkbg-gs-counter-color, #ffffff); |
| 38 |
border-radius: 99px; |
| 39 |
padding: 4px 12px; |
| 40 |
font-family: var(--bkbg-gs-cnt-font-family, inherit); |
| 41 |
font-size: var(--bkbg-gs-cnt-font-size-d, 13px); |
| 42 |
font-weight: var(--bkbg-gs-cnt-font-weight, 600); |
| 43 |
font-style: var(--bkbg-gs-cnt-font-style, normal); |
| 44 |
text-decoration: var(--bkbg-gs-cnt-text-decoration, none); |
| 45 |
text-transform: var(--bkbg-gs-cnt-text-transform, none); |
| 46 |
line-height: var(--bkbg-gs-cnt-line-height-d, 1.4); |
| 47 |
letter-spacing: var(--bkbg-gs-cnt-letter-spacing-d, normal); |
| 48 |
word-spacing: var(--bkbg-gs-cnt-word-spacing-d, normal); |
| 49 |
pointer-events: none; |
| 50 |
z-index: 2; |
| 51 |
} |
| 52 |
|
| 53 |
/* Caption */ |
| 54 |
.bkbg-gs-caption { |
| 55 |
font-family: var(--bkbg-gs-cap-font-family, inherit); |
| 56 |
font-size: var(--bkbg-gs-cap-font-size-d, 14px); |
| 57 |
font-weight: var(--bkbg-gs-cap-font-weight, 400); |
| 58 |
font-style: var(--bkbg-gs-cap-font-style, normal); |
| 59 |
text-decoration: var(--bkbg-gs-cap-text-decoration, none); |
| 60 |
text-transform: var(--bkbg-gs-cap-text-transform, none); |
| 61 |
line-height: var(--bkbg-gs-cap-line-height-d, 1.4); |
| 62 |
letter-spacing: var(--bkbg-gs-cap-letter-spacing-d, normal); |
| 63 |
word-spacing: var(--bkbg-gs-cap-word-spacing-d, normal); |
| 64 |
color: var(--bkbg-gs-caption-color, #ffffff); |
| 65 |
pointer-events: none; |
| 66 |
z-index: 2; |
| 67 |
} |
| 68 |
.bkbg-gs-caption--overlay { |
| 69 |
position: absolute; |
| 70 |
bottom: 0; left: 0; right: 0; |
| 71 |
padding: 10px 14px; |
| 72 |
background: var(--bkbg-gs-caption-bg, rgba(0,0,0,0.55)); |
| 73 |
} |
| 74 |
.bkbg-gs-below-caption { |
| 75 |
text-align: center; |
| 76 |
font-family: var(--bkbg-gs-cap-font-family, inherit); |
| 77 |
font-size: var(--bkbg-gs-cap-font-size-d, 14px); |
| 78 |
font-weight: var(--bkbg-gs-cap-font-weight, 400); |
| 79 |
font-style: var(--bkbg-gs-cap-font-style, normal); |
| 80 |
text-decoration: var(--bkbg-gs-cap-text-decoration, none); |
| 81 |
text-transform: var(--bkbg-gs-cap-text-transform, none); |
| 82 |
line-height: var(--bkbg-gs-cap-line-height-d, 1.4); |
| 83 |
letter-spacing: var(--bkbg-gs-cap-letter-spacing-d, normal); |
| 84 |
word-spacing: var(--bkbg-gs-cap-word-spacing-d, normal); |
| 85 |
color: var(--bkbg-gs-caption-color, #6b7280); |
| 86 |
margin: 10px 0 0; |
| 87 |
} |
| 88 |
|
| 89 |
/* Arrows */ |
| 90 |
.bkbg-gs-arrow { |
| 91 |
position: absolute; |
| 92 |
top: 50%; |
| 93 |
transform: translateY(-50%); |
| 94 |
background: var(--bkbg-gs-arrow-bg, rgba(0,0,0,0.45)); |
| 95 |
color: var(--bkbg-gs-arrow-color, #ffffff); |
| 96 |
border: none; |
| 97 |
width: 40px; height: 40px; |
| 98 |
display: flex; align-items: center; justify-content: center; |
| 99 |
font-size: 20px; |
| 100 |
cursor: pointer; |
| 101 |
z-index: 3; |
| 102 |
transition: opacity 0.15s; |
| 103 |
line-height: 1; |
| 104 |
} |
| 105 |
.bkbg-gs-arrow:hover { opacity: 0.8; } |
| 106 |
.bkbg-gs-arrow--prev { left: 10px; } |
| 107 |
.bkbg-gs-arrow--next { right: 10px; } |
| 108 |
.bkbg-gs-arrow--circle { border-radius: 50%; } |
| 109 |
.bkbg-gs-arrow--square { border-radius: 6px; } |
| 110 |
.bkbg-gs-arrow--minimal { background: transparent; text-shadow: 0 1px 4px rgba(0,0,0,0.6); } |
| 111 |
|
| 112 |
/* Lightbox trigger */ |
| 113 |
.bkbg-gs-lightbox-trigger { |
| 114 |
position: absolute; |
| 115 |
top: 10px; left: 10px; |
| 116 |
background: rgba(0,0,0,0.45); |
| 117 |
color: #fff; |
| 118 |
border: none; |
| 119 |
border-radius: 6px; |
| 120 |
width: 34px; height: 34px; |
| 121 |
font-size: 18px; |
| 122 |
cursor: pointer; |
| 123 |
z-index: 3; |
| 124 |
display: flex; align-items: center; justify-content: center; |
| 125 |
} |
| 126 |
|
| 127 |
/* Thumbnail strip */ |
| 128 |
.bkbg-gs-thumbs { |
| 129 |
display: flex; |
| 130 |
gap: var(--bkbg-gs-thumb-gap, 8px); |
| 131 |
overflow-x: auto; |
| 132 |
scrollbar-width: thin; |
| 133 |
} |
| 134 |
.bkbg-gs-showcase.bkbg-gs--thumb-left .bkbg-gs-thumbs, |
| 135 |
.bkbg-gs-showcase.bkbg-gs--thumb-right .bkbg-gs-thumbs { |
| 136 |
flex-direction: column; |
| 137 |
overflow-x: hidden; |
| 138 |
overflow-y: auto; |
| 139 |
flex-shrink: 0; |
| 140 |
max-width: 110px; |
| 141 |
} |
| 142 |
|
| 143 |
.bkbg-gs-thumb { |
| 144 |
flex-shrink: 0; |
| 145 |
width: 80px; |
| 146 |
height: 60px; |
| 147 |
border-radius: var(--bkbg-gs-thumb-r, 8px); |
| 148 |
overflow: hidden; |
| 149 |
border: 2px solid transparent; |
| 150 |
padding: 0; |
| 151 |
cursor: pointer; |
| 152 |
background: #f3f4f6; |
| 153 |
transition: border-color 0.15s, opacity 0.15s; |
| 154 |
opacity: 0.7; |
| 155 |
} |
| 156 |
.bkbg-gs-thumb.is-active { |
| 157 |
border-color: var(--bkbg-gs-active-border, #6c3fb5); |
| 158 |
border-width: var(--bkbg-gs-active-bw, 3px); |
| 159 |
opacity: 1; |
| 160 |
} |
| 161 |
.bkbg-gs-thumb:hover { opacity: 0.9; } |
| 162 |
.bkbg-gs-showcase.bkbg-gs--thumb-left .bkbg-gs-thumb, |
| 163 |
.bkbg-gs-showcase.bkbg-gs--thumb-right .bkbg-gs-thumb { width: 100%; height: 64px; } |
| 164 |
|
| 165 |
/* Lightbox overlay (built by frontend.js) */ |
| 166 |
.bkbg-gs-lightbox { |
| 167 |
position: fixed; |
| 168 |
inset: 0; |
| 169 |
background: var(--bkbg-gs-lightbox-bg, rgba(0,0,0,0.9)); |
| 170 |
z-index: 9999; |
| 171 |
display: flex; |
| 172 |
align-items: center; |
| 173 |
justify-content: center; |
| 174 |
} |
| 175 |
.bkbg-gs-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; } |
| 176 |
.bkbg-gs-lightbox-close { |
| 177 |
position: absolute; |
| 178 |
top: 20px; right: 24px; |
| 179 |
color: #fff; |
| 180 |
font-size: 32px; |
| 181 |
background: none; |
| 182 |
border: none; |
| 183 |
cursor: pointer; |
| 184 |
} |
| 185 |
|
| 186 |
/* Typography responsive */ |
| 187 |
@media (max-width: 1024px) { |
| 188 |
.bkbg-gs-caption, |
| 189 |
.bkbg-gs-below-caption { |
| 190 |
font-size: var(--bkbg-gs-cap-font-size-t, var(--bkbg-gs-cap-font-size-d, 14px)); |
| 191 |
line-height: var(--bkbg-gs-cap-line-height-t, var(--bkbg-gs-cap-line-height-d, 1.4)); |
| 192 |
letter-spacing: var(--bkbg-gs-cap-letter-spacing-t, var(--bkbg-gs-cap-letter-spacing-d, normal)); |
| 193 |
word-spacing: var(--bkbg-gs-cap-word-spacing-t, var(--bkbg-gs-cap-word-spacing-d, normal)); |
| 194 |
} |
| 195 |
.bkbg-gs-counter { |
| 196 |
font-size: var(--bkbg-gs-cnt-font-size-t, var(--bkbg-gs-cnt-font-size-d, 13px)); |
| 197 |
line-height: var(--bkbg-gs-cnt-line-height-t, var(--bkbg-gs-cnt-line-height-d, 1.4)); |
| 198 |
letter-spacing: var(--bkbg-gs-cnt-letter-spacing-t, var(--bkbg-gs-cnt-letter-spacing-d, normal)); |
| 199 |
word-spacing: var(--bkbg-gs-cnt-word-spacing-t, var(--bkbg-gs-cnt-word-spacing-d, normal)); |
| 200 |
} |
| 201 |
} |
| 202 |
@media (max-width: 767px) { |
| 203 |
.bkbg-gs-caption, |
| 204 |
.bkbg-gs-below-caption { |
| 205 |
font-size: var(--bkbg-gs-cap-font-size-m, var(--bkbg-gs-cap-font-size-t, var(--bkbg-gs-cap-font-size-d, 14px))); |
| 206 |
line-height: var(--bkbg-gs-cap-line-height-m, var(--bkbg-gs-cap-line-height-t, var(--bkbg-gs-cap-line-height-d, 1.4))); |
| 207 |
letter-spacing: var(--bkbg-gs-cap-letter-spacing-m, var(--bkbg-gs-cap-letter-spacing-t, var(--bkbg-gs-cap-letter-spacing-d, normal))); |
| 208 |
word-spacing: var(--bkbg-gs-cap-word-spacing-m, var(--bkbg-gs-cap-word-spacing-t, var(--bkbg-gs-cap-word-spacing-d, normal))); |
| 209 |
} |
| 210 |
.bkbg-gs-counter { |
| 211 |
font-size: var(--bkbg-gs-cnt-font-size-m, var(--bkbg-gs-cnt-font-size-t, var(--bkbg-gs-cnt-font-size-d, 13px))); |
| 212 |
line-height: var(--bkbg-gs-cnt-line-height-m, var(--bkbg-gs-cnt-line-height-t, var(--bkbg-gs-cnt-line-height-d, 1.4))); |
| 213 |
letter-spacing: var(--bkbg-gs-cnt-letter-spacing-m, var(--bkbg-gs-cnt-letter-spacing-t, var(--bkbg-gs-cnt-letter-spacing-d, normal))); |
| 214 |
word-spacing: var(--bkbg-gs-cnt-word-spacing-m, var(--bkbg-gs-cnt-word-spacing-t, var(--bkbg-gs-cnt-word-spacing-d, normal))); |
| 215 |
} |
| 216 |
} |
| 217 |
|
| 218 |
/* Responsive */ |
| 219 |
@media (max-width: 640px) { |
| 220 |
.bkbg-gs-showcase.bkbg-gs--thumb-left, |
| 221 |
.bkbg-gs-showcase.bkbg-gs--thumb-right { flex-direction: column; align-items: stretch; } |
| 222 |
.bkbg-gs-thumbs { max-width: none !important; flex-direction: row !important; overflow-x: auto !important; overflow-y: hidden !important; } |
| 223 |
.bkbg-gs-thumb { width: 64px !important; height: 48px !important; } |
| 224 |
} |
| 225 |
|