---
url: "https://designsystem.gov.cz/templates/components/detail/gallery--image.html"
titulek: "Gallery: Image | Gov Design System CE - Templates"
h1: "Gallery: Image"
popis: ""
jazyk: "en"
kanonicka: ""
drobecky: []
zdroj: "live"
wayback_snapshot: ""
stazeno: "2026-09-14 02:15:02"
znaku: 4206
slov: 532
kodovani: "utf-8"
sha256: "ece5e3c6eb0136140d798a257f0af775d4d775a1ea9c1a2ba8fd63c31cec1a85"
---
- HTML
- View
- Context
- Assets
- Info
- Notes
`
Curabitur vitae diam non enim vestibulum interdum. Nullam sapien sem, ornare ac, nonummy non `
` {{> @picture }} {{ figcaption }} `
`{
"aria-label": "Fotogalerie",
"src": "/assets/man",
"alt": "Muž sedí v kanceláři u stolu a telefonuje a směje se. Je připravený zapisovat si tužkou do bloku.",
"more": "59 dalších",
"width": "800",
"height": "533",
"figcaption": "Curabitur vitae diam non enim vestibulum interdum. Nullam sapien sem, ornare ac, nonummy non",
"gallery-preview": {
"src": "/assets/old-town-square",
"alt": "Pohled na Staroměstské náměstí v Praze, Česká republika. Celá scéna je nasvícena slunečním světlem.",
"width": "800",
"height": "533"
},
"gallery": [
{
"src": "/assets/man",
"alt": "Muž sedí v kanceláři u stolu a telefonuje a směje se. Je připravený zapisovat si tužkou do bloku.",
"width": "800",
"height": "533"
},
{
"src": "/assets/documents",
"alt": "Větší stoh dokumentů, oddělených kancelářskými svorkami. V pozadí svítí slunce skrz žaluzie.",
"width": "800",
"height": "533"
},
{
"src": "/assets/old-town-square",
"alt": "Pohled na Staroměstské náměstí v Praze, Česká republika. Celá scéna je nasvícena slunečním světlem.",
"width": "800",
"height": "533"
},
{
"src": "/assets/documents",
"alt": "Větší stoh dokumentů, oddělených kancelářskými svorkami. V pozadí svítí slunce skrz žaluzie.",
"width": "800",
"height": "533",
"more": "59 dalších"
}
]
}`
File:
- **Content:** `@import "../../../styles/mixins";
.gov-gallery {
max-width: 50rem;
gov-grid-item {
overflow: hidden;
border-radius: var(--corner-radius-s);
}
a {
position: relative;
display: block;
}
a:focus-visible {
outline: none;
&:before {
content: "";
position: absolute;
z-index: 2;
inset: 0;
border: var(--outline-offset) solid var(--status-focus);
border-radius: var(--corner-radius-s);
}
}
img {
display: block;
max-width: 100%;
min-width: 100%;
height: auto;
}
&__overlay {
position: relative;
display: block;
width: fit-content;
height: fit-content;
}
& .gov-gallery__overlay {
width: 100%;
height: 100%;
}
a span,
&__overlay > a span {
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 100%;
height: 100%;
@include flex($align: center, $justify: center);
background-color: var(--background-overlay-image);
@include typography("body-m-bold");
color: var(--text-white-fixed);
border-radius: var(--corner-radius-s);
}
@include mq($from: sm) {
gov-grid-item:not(:first-child) {
img {
aspect-ratio: 1;
object-fit: cover;
}
}
}
}
figure.gov-image {
@include flex($direction: column, $gap: var(--templates-margin-s));
img {
display: block;
max-width: 100%;
height: auto;
border-radius: var(--corner-radius-s);
}
figcaption {
@include typography("body-s");
font-style: italic;
color: var(--text-primary);
}
a {
@include flex($direction: column, $gap: var(--templates-margin-s));
text-decoration: none;
}
}`
- **URL:** [/components/raw/gallery/gallery.scss](../raw/gallery/gallery.scss)
- **Filesystem Path:** src/components/molecules/gallery/gallery.scss
- **Size:** 1.9 KB
- **Handle:** @gallery--image
- **Variants *(3)*:** [Default](./gallery--default.html),
[Image](./gallery--image.html),
[Image Link](./gallery--image-link.html)
- **Preview:** [With layout](../preview/gallery--image.html) [Component only](../render/gallery--image.html)
- **Filesystem Path:** src/components/molecules/gallery/gallery--image.hbs
- **References *(1)*:** [@picture](./picture.html)
- **Referenced by *(7)*:** [@grid-7-5-section](./grid-7-5-section.html),
[@clanek](./clanek.html),
[@clanek--s-pozadim](./clanek--s-pozadim.html),
[@clanek--oddelene-bloky](./clanek--oddelene-bloky.html),
[@o-nas](./o-nas.html),
[@prvni-uroven](./prvni-uroven.html),
[@detail-zamestnance](./detail-zamestnance.html)
No notes defined.