2023-03-08 13:36:35 +00:00
|
|
|
.gallery-grid
|
|
|
|
margin: 0
|
|
|
|
padding: 0.5rem
|
|
|
|
|
|
|
|
width: 100%
|
|
|
|
|
|
|
|
display: grid
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))
|
|
|
|
gap: 0.5rem
|
|
|
|
|
|
|
|
.gallery-item
|
|
|
|
margin: 0
|
|
|
|
padding: 0
|
|
|
|
|
|
|
|
height: auto
|
|
|
|
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
border-radius: $rad
|
|
|
|
|
|
|
|
box-sizing: border-box
|
|
|
|
overflow: hidden
|
|
|
|
|
2023-03-10 17:38:24 +00:00
|
|
|
.image-filter
|
2023-03-08 13:36:35 +00:00
|
|
|
margin: 0
|
|
|
|
padding: 0.5rem
|
|
|
|
|
|
|
|
width: 100%
|
2023-04-01 16:16:07 +00:00
|
|
|
height: 30%
|
2023-03-08 13:36:35 +00:00
|
|
|
|
|
|
|
position: absolute
|
|
|
|
left: 0
|
2023-04-01 16:16:07 +00:00
|
|
|
bottom: 0
|
2023-03-08 13:36:35 +00:00
|
|
|
|
|
|
|
display: flex
|
|
|
|
flex-direction: column
|
|
|
|
justify-content: flex-end
|
|
|
|
|
2023-04-01 16:16:07 +00:00
|
|
|
background-image: linear-gradient(to top, rgba($bg-100, 0.5), transparent)
|
2023-03-08 13:36:35 +00:00
|
|
|
opacity: 0 // hide
|
|
|
|
|
2023-04-01 16:16:07 +00:00
|
|
|
z-index: +4
|
|
|
|
transition: background-image 0.3s cubic-bezier(.79, .14, .15, .86), opacity 0.3s cubic-bezier(.79, .14, .15, .86)
|
2023-03-08 13:36:35 +00:00
|
|
|
|
2023-04-01 16:16:07 +00:00
|
|
|
.image-title,
|
|
|
|
.image-subtitle
|
|
|
|
margin: 0
|
|
|
|
padding: 0
|
2023-03-08 13:36:35 +00:00
|
|
|
|
2023-04-01 16:16:07 +00:00
|
|
|
white-space: nowrap
|
|
|
|
text-overflow: ellipsis
|
|
|
|
overflow: hidden
|
2023-03-08 13:36:35 +00:00
|
|
|
|
2023-04-01 16:16:07 +00:00
|
|
|
color: RGB($fg-white)
|
2023-04-02 13:51:01 +00:00
|
|
|
text-shadow: 0px 0px 2px RGB($fg-black)
|
2023-03-08 13:36:35 +00:00
|
|
|
|
2023-04-01 16:16:07 +00:00
|
|
|
.image-title
|
|
|
|
font-size: 0.9rem
|
|
|
|
font-weight: 800
|
2023-03-08 13:36:35 +00:00
|
|
|
|
2023-04-01 16:16:07 +00:00
|
|
|
.image-subtitle
|
|
|
|
font-size: 0.8rem
|
|
|
|
font-weight: 600
|
2023-03-08 13:36:35 +00:00
|
|
|
|
|
|
|
img
|
|
|
|
width: 100%
|
|
|
|
height: 100%
|
|
|
|
|
|
|
|
position: absolute
|
2023-03-10 17:38:24 +00:00
|
|
|
inset: 0
|
2023-03-08 13:36:35 +00:00
|
|
|
|
|
|
|
object-fit: cover
|
|
|
|
object-position: center
|
2023-03-26 20:58:17 +00:00
|
|
|
transform: scale(1.05)
|
2023-03-08 13:36:35 +00:00
|
|
|
|
2023-04-02 13:51:01 +00:00
|
|
|
background-color: RGB($bg-bright)
|
2023-03-26 20:58:17 +00:00
|
|
|
filter: blur(0.5rem)
|
|
|
|
opacity: 0
|
2023-03-08 13:36:35 +00:00
|
|
|
|
2023-03-26 20:58:17 +00:00
|
|
|
transition: all 0.2s cubic-bezier(.79, .14, .15, .86)
|
|
|
|
|
|
|
|
&.loaded
|
|
|
|
filter: blur(0)
|
|
|
|
opacity: 1
|
2023-03-08 13:36:35 +00:00
|
|
|
|
|
|
|
&:after
|
|
|
|
content: ""
|
|
|
|
display: block
|
|
|
|
padding-bottom: 100%
|
|
|
|
|
|
|
|
&:hover
|
2023-03-11 22:14:03 +00:00
|
|
|
.image-filter
|
2023-04-01 16:16:07 +00:00
|
|
|
background-image: linear-gradient(to top, rgba($bg-100, 0.69), transparent)
|
2023-03-08 13:36:35 +00:00
|
|
|
opacity: 1
|
|
|
|
|
2023-04-01 16:16:07 +00:00
|
|
|
img
|
|
|
|
transform: scale(1)
|
|
|
|
|
|
|
|
.group-item
|
|
|
|
margin: 0
|
|
|
|
padding: 0
|
|
|
|
|
|
|
|
height: auto
|
|
|
|
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
border-radius: $rad
|
|
|
|
|
|
|
|
box-sizing: border-box
|
|
|
|
overflow: hidden
|
|
|
|
|
|
|
|
.image-filter
|
|
|
|
margin: 0
|
|
|
|
padding: 0.5rem
|
|
|
|
|
|
|
|
width: 100%
|
|
|
|
height: 30%
|
|
|
|
|
|
|
|
position: absolute
|
|
|
|
left: 0
|
|
|
|
bottom: 0
|
|
|
|
|
|
|
|
display: flex
|
|
|
|
flex-direction: column
|
|
|
|
justify-content: flex-end
|
|
|
|
|
|
|
|
background-image: linear-gradient(to top, rgba($bg-100, 0.8), transparent)
|
|
|
|
|
|
|
|
z-index: +4
|
|
|
|
|
2023-03-11 22:14:03 +00:00
|
|
|
.image-title,
|
|
|
|
.image-subtitle
|
2023-04-01 16:16:07 +00:00
|
|
|
margin: 0
|
|
|
|
padding: 0
|
|
|
|
|
|
|
|
white-space: nowrap
|
|
|
|
text-overflow: ellipsis
|
|
|
|
overflow: hidden
|
|
|
|
|
|
|
|
color: RGB($fg-white)
|
2023-04-02 13:51:01 +00:00
|
|
|
text-shadow: 0px 0px 2px RGB($fg-black)
|
2023-04-01 16:16:07 +00:00
|
|
|
|
|
|
|
.image-title
|
|
|
|
font-size: 0.9rem
|
|
|
|
font-weight: 800
|
|
|
|
|
|
|
|
.image-subtitle
|
|
|
|
font-size: 0.8rem
|
|
|
|
font-weight: 600
|
|
|
|
|
|
|
|
.images
|
|
|
|
margin: 0
|
|
|
|
padding: 0
|
|
|
|
|
|
|
|
width: 100%
|
|
|
|
height: 100%
|
|
|
|
|
|
|
|
position: absolute
|
|
|
|
inset: 0
|
|
|
|
|
|
|
|
display: block
|
|
|
|
|
2023-04-02 13:51:01 +00:00
|
|
|
background-color: RGB($bg-bright)
|
2023-03-08 13:36:35 +00:00
|
|
|
|
|
|
|
img
|
2023-04-01 16:16:07 +00:00
|
|
|
width: 100%
|
|
|
|
height: 100%
|
|
|
|
|
|
|
|
position: absolute
|
|
|
|
top: 0
|
|
|
|
left: 0
|
|
|
|
|
|
|
|
object-fit: cover
|
|
|
|
object-position: center
|
|
|
|
|
2023-04-02 13:51:01 +00:00
|
|
|
background-color: RGB($bg-bright)
|
2023-04-01 16:16:07 +00:00
|
|
|
border-radius: $rad-inner
|
2023-04-02 13:51:01 +00:00
|
|
|
box-shadow: 0 0 0.4rem 0.25rem RGBA($bg-100, 0.1)
|
2023-04-01 16:16:07 +00:00
|
|
|
filter: blur(0.5rem)
|
|
|
|
opacity: 0
|
|
|
|
|
|
|
|
transition: all 0.2s cubic-bezier(.79, .14, .15, .86)
|
|
|
|
|
|
|
|
&.loaded
|
|
|
|
filter: blur(0)
|
|
|
|
opacity: 1
|
|
|
|
|
|
|
|
&.size-1
|
|
|
|
.data-1
|
|
|
|
transform: scale(0.8) rotate(3deg)
|
|
|
|
|
|
|
|
&.size-2
|
|
|
|
.data-1
|
|
|
|
transform: scale(0.7) rotate(-3deg) translate(10%, 10%)
|
|
|
|
z-index: +2
|
|
|
|
.data-2
|
|
|
|
transform: scale(0.7) rotate(3deg) translate(-10%, -10%)
|
|
|
|
z-index: +1
|
|
|
|
|
|
|
|
&.size-3
|
|
|
|
.data-1
|
|
|
|
transform: scale(0.6) rotate(3deg) translate(-25%, 25%)
|
|
|
|
z-index: +3
|
|
|
|
.data-2
|
|
|
|
transform: scale(0.6) rotate(-5deg) translate(25%, 10%)
|
|
|
|
z-index: +2
|
|
|
|
.data-3
|
|
|
|
transform: scale(0.6) rotate(-1deg) translate(-15%, -25%)
|
|
|
|
z-index: +1
|
|
|
|
|
|
|
|
&:after
|
|
|
|
content: ""
|
|
|
|
display: block
|
|
|
|
padding-bottom: 100%
|
|
|
|
|
|
|
|
&:hover
|
|
|
|
.images
|
|
|
|
&.size-1
|
|
|
|
.data-1
|
|
|
|
transform: scale(0.9) rotate(0deg)
|
|
|
|
|
|
|
|
&.size-2
|
|
|
|
.data-1
|
|
|
|
transform: scale(0.75) rotate(-1deg) translate(12%, 14%)
|
|
|
|
z-index: +2
|
|
|
|
.data-2
|
|
|
|
transform: scale(0.75) rotate(1deg) translate(-12%, -10%)
|
|
|
|
z-index: +1
|
|
|
|
|
|
|
|
&.size-3
|
|
|
|
.data-1
|
|
|
|
transform: scale(0.65) rotate(1deg) translate(-24%, 24%)
|
|
|
|
z-index: +3
|
|
|
|
.data-2
|
|
|
|
transform: scale(0.65) rotate(-2deg) translate(24%, 10%)
|
|
|
|
z-index: +2
|
|
|
|
.data-3
|
|
|
|
transform: scale(0.65) rotate(0deg) translate(-15%, -25%)
|
|
|
|
z-index: +1
|
2023-03-08 13:36:35 +00:00
|
|
|
|
|
|
|
@media (max-width: 800px)
|
|
|
|
.gallery-grid
|
|
|
|
grid-template-columns: auto auto auto
|