--- url: "https://designsystem.gov.cz/templates/components/detail/gallery--default.html" titulek: "Gallery: Default | Gov Design System CE - Templates" h1: "Gallery: Default" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:15:01" znaku: 6142 slov: 762 kodovani: "utf-8" sha256: "20818476c2ea201f081e104d6502d10fe1cb46ad44dc9afcd74381c6cd80ab95" --- - 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--default - **Variants *(3)*:** [Default](./gallery--default.html), [Image](./gallery--image.html), [Image Link](./gallery--image-link.html) - **Preview:** [With layout](../preview/gallery--default.html) [Component only](../render/gallery--default.html) - **Filesystem Path:** src/components/molecules/gallery/gallery.hbs - **References *(1)*:** [@picture](./picture.html) - **Referenced by *(5)*:** [@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) No notes defined.