summaryrefslogtreecommitdiff
path: root/public/css/modules/link-gallery.css
blob: fe771cd469f386ef6c7bf44c176bf922118cf3e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.link-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-inline-sm);
  padding-block: var(--margin-block-md);
}

.link-gallery__container {
  display: flex;
  flex-direction: column;
  width: fit-content;
  align-items: center;
  height: fit-content;
}

.link-gallery--furthsettins {
  --gallery-item-width: 6rem;
  --gallery-item-height: 6rem;
  justify-content: space-evenly;
}

.link-gallery--lallans {
  --gallery-item-width: 9rem;
  --gallery-item-height: auto;
}

.link-gallery--scotsoun {
  --gallery-item-width: 8rem;
  --gallery-item-height: 8rem;
}

.link-gallery__image {
  max-width: var(--gallery-item-width);
  max-height: var(--gallery-item-height);
}

.link-gallery--furthsettins img {
  border-radius: 50%;
}

.link-gallery__image img {
  max-width: 100%;
  max-height: 100%;
}

.link-gallery__title {
  justify-self: end;
  max-width: var(--gallery-item-width);
  min-height: 11ex;
  min-height: 3lh;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  margin-inline: var(--spacing-inline-xs);
}