.gpae { margin: 1.5em 0; }
.gpae__cell { margin: 0; padding: 0; }
.gpae__item {
display: block;
overflow: hidden;
border-radius: 4px;
background: rgba(127, 127, 127, .15);
line-height: 0;
}
.gpae__item img {
display: block;
width: 100%;
height: auto;
max-width: none;
margin: 0;
transition: transform .3s ease;
}
.gpae__item:hover img,
.gpae__item:focus-visible img { transform: scale(1.04); }
.gpae__item:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.gpae__caption {
margin: .4em 0 0;
font-size: .875em;
line-height: 1.4;
opacity: .85;
} .gpae--grid {
display: grid;
grid-template-columns: repeat(var(--gpae-cols, 4), minmax(0, 1fr));
gap: var(--gpae-gap, 8px);
align-items: start;
}
.gpae--crop .gpae__item { aspect-ratio: 1 / 1; }
.gpae--crop .gpae__item img { height: 100%; object-fit: cover; } .gpae--masonry {
column-count: var(--gpae-cols, 4);
column-gap: var(--gpae-gap, 8px);
}
.gpae--masonry .gpae__cell {
break-inside: avoid;
-webkit-column-break-inside: avoid;
margin-bottom: var(--gpae-gap, 8px);
display: inline-block; width: 100%;
vertical-align: top;
}
@media (max-width: 900px) {
.gpae--grid { grid-template-columns: repeat(var(--gpae-cols-md, 3), minmax(0, 1fr)); }
.gpae--masonry { column-count: var(--gpae-cols-md, 3); }
}
@media (max-width: 600px) {
.gpae--grid { grid-template-columns: repeat(var(--gpae-cols-sm, 2), minmax(0, 1fr)); }
.gpae--masonry { column-count: var(--gpae-cols-sm, 2); }
} .gpae-ss { margin: 1.5em 0; }
.gpae-ss__stage {
position: relative;
aspect-ratio: var(--gpae-ratio, 16 / 9);
background: #111;
border-radius: 6px;
overflow: hidden;
}
.gpae-ss__slide {
position: absolute;
inset: 0;
border-radius: 0;
background: transparent;
opacity: 0;
visibility: hidden;
transition: opacity .6s ease, visibility 0s linear .6s;
}
.gpae-ss__slide.is-active {
opacity: 1;
visibility: visible;
transition: opacity .6s ease, visibility 0s;
}
.gpae-ss__slide img,
.gpae-ss__slide:hover img,
.gpae-ss__slide:focus-visible img {
width: 100%;
height: 100%;
object-fit: contain;
transform: none;
}
.gpae-ss__slide:focus-visible { outline-offset: -4px; }
.gpae-ss__nav,
.gpae-ss__play {
position: absolute;
z-index: 2;
border: 0;
padding: 0;
cursor: pointer;
color: #fff;
background: rgba(0, 0, 0, .45);
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
transition: background .2s;
}
.gpae-ss__nav {
top: 50%;
transform: translateY(-50%);
width: 44px;
height: 44px;
border-radius: 50%;
font-size: 30px;
}
.gpae-ss__prev { left: 12px; }
.gpae-ss__next { right: 12px; }
.gpae-ss__play {
right: 12px;
bottom: 12px;
width: 36px;
height: 36px;
border-radius: 50%;
font-size: 13px;
}
.gpae-ss__nav:hover, .gpae-ss__nav:focus-visible,
.gpae-ss__play:hover, .gpae-ss__play:focus-visible { background: rgba(0, 0, 0, .75); outline: 2px solid #fff; outline-offset: 2px; }
.gpae-ss__count {
position: absolute;
z-index: 2;
left: 12px;
bottom: 12px;
padding: 3px 10px;
border-radius: 999px;
background: rgba(0, 0, 0, .45);
color: #fff;
font: 13px/1.4 system-ui, sans-serif;
}
.gpae-ss__caption {
margin: .6em 0 0;
font-size: .95em;
line-height: 1.45;
min-height: 1.45em;
}
.gpae-ss__caption[hidden] { display: block; visibility: hidden; }
.gpae-ss__thumbs {
display: flex;
gap: 6px;
margin-top: 8px;
overflow-x: auto;
scrollbar-width: thin;
padding-bottom: 4px;
}
.gpae-ss__thumb {
flex: 0 0 auto;
width: 72px;
height: 72px;
padding: 0;
border: 2px solid transparent;
border-radius: 4px;
overflow: hidden;
cursor: pointer;
background: rgba(127, 127, 127, .15);
opacity: .6;
transition: opacity .2s, border-color .2s;
}
.gpae-ss__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.gpae-ss__thumb:hover, .gpae-ss__thumb:focus-visible { opacity: 1; }
.gpae-ss__thumb.is-active { opacity: 1; border-color: currentColor; }
@media (max-width: 600px) {
.gpae-ss__thumb { width: 56px; height: 56px; }
.gpae-ss__nav { width: 38px; height: 38px; font-size: 26px; }
} .gpae-lock, .gpae-lock body { overflow: hidden; }
.gpae-lb {
position: fixed;
inset: 0;
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, .92);
}
.gpae-lb[hidden] { display: none; }
.gpae-lb__fig { margin: 0; text-align: center; max-width: 92vw; }
.gpae-lb__fig img {
display: block;
max-width: 92vw;
max-height: 80vh;
width: auto;
height: auto;
margin: 0 auto;
}
.gpae-lb__fig figcaption {
color: #eee;
font: 15px/1.5 system-ui, sans-serif;
margin-top: 12px;
padding: 0 56px;
}
.gpae-lb__caption { display: block; margin-bottom: 4px; }
.gpae-lb__caption[hidden] { display: none; }
.gpae-lb__count { display: block; color: #aaa; font-size: 13px; }
.gpae-lb__btn {
position: absolute;
border: 0;
background: rgba(255, 255, 255, .12);
color: #fff;
width: 48px;
height: 48px;
border-radius: 50%;
font-size: 32px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
}
.gpae-lb__btn:hover, .gpae-lb__btn:focus-visible { background: rgba(255, 255, 255, .28); outline: none; }
.gpae-lb__btn[hidden] { display: none; }
.gpae-lb__close { top: 16px; right: 16px; }
.gpae-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.gpae-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }  @media (hover: hover) and (pointer: fine) {
.gpae--bw .gpae__item img,
.gpae--bw .gpae-ss__thumb img {
filter: grayscale(1);
transition: filter .4s ease, transform .3s ease;
}
.gpae--bw .gpae__item:hover img,
.gpae--bw .gpae__item:focus-visible img,
.gpae--bw .gpae-ss__thumb:hover img,
.gpae--bw .gpae-ss__thumb:focus-visible img,
.gpae--bw .gpae-ss__thumb.is-active img {
filter: none;
} .gpae--bw .gpae-ss__slide img { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
.gpae__item img,
.gpae-ss__slide,
.gpae-ss__slide.is-active,
.gpae--bw .gpae__item img,
.gpae--bw .gpae-ss__thumb img { transition: none; }
}