--- url: "https://designsystem.gov.cz/templates/components/detail/gallery.html" titulek: "Gallery | Gov Design System CE - Templates" h1: "Gallery" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 03:06:27" znaku: 6264 slov: 772 kodovani: "utf-8" sha256: "1422e2238441e9523170bab292f257b9ac1e2272649e68d47431e56aea4ee7d1" --- - HTML - View - Context - Assets - Info - Notes `
` `` `{ "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 - **Variants *(3)*:** [Default](./gallery--default.html), [Image](./gallery--image.html), [Image Link](./gallery--image-link.html) - **Preview:** [With layout](../preview/gallery.html) [Component only](../render/gallery.html) - **Filesystem Path:** src/components/molecules/gallery/gallery.hbs - **References *(1)*:** [@picture](./picture.html) - **Referenced by *(8)*:** [@clanek](./clanek.html), [@clanek--s-pozadim](./clanek--s-pozadim.html), [@clanek--oddelene-bloky](./clanek--oddelene-bloky.html), [@vice-informaci](./vice-informaci.html), [@o-nas](./o-nas.html), [@grid-7-5-section](./grid-7-5-section.html), [@prvni-uroven](./prvni-uroven.html), [@detail-zamestnance](./detail-zamestnance.html) No notes defined.