|
2 | 2 |
|
3 | 3 | #carousel { |
4 | 4 | background: #FAFAFA; |
5 | | - height: 480px; |
| 5 | + height: 660px; |
6 | 6 | min-width: 100%; |
7 | 7 | overflow: hidden; |
8 | 8 | position: relative; |
9 | 9 |
|
10 | 10 | #carousel-inner { |
11 | | - width: 1600px; |
| 11 | + height: 100%; |
12 | 12 | } |
13 | 13 |
|
14 | 14 | .carousel-sect { |
15 | 15 | background: linear-gradient(rgba(variables.$acm-black, 0.8), rgba(variables.$acm-black, 1)); |
16 | 16 | position: absolute; |
17 | 17 | top: 0; |
18 | 18 | width: 1600px; |
| 19 | + height: 100%; |
| 20 | + display: flex; |
| 21 | + flex-wrap: wrap; |
| 22 | + align-content: flex-start; |
19 | 23 |
|
20 | | - div { |
21 | | - background-size: cover; |
22 | | - display: inline-block; |
23 | | - height: 240px; |
| 24 | + .image-frame { |
| 25 | + width: 450px; |
| 26 | + height: 330px; |
24 | 27 | margin: 0; |
25 | | - opacity: 0.9; |
26 | | - padding: 0; |
| 28 | + padding: 4px; |
| 29 | + background: #ffffff; |
| 30 | + border: 1px solid #d0d0d0; |
| 31 | + box-shadow: |
| 32 | + 0 2px 8px rgba(0, 0, 0, 0.1), |
| 33 | + inset 0 0 0 1px rgba(255, 255, 255, 0.8); |
| 34 | + box-sizing: border-box; |
| 35 | + display: flex; |
| 36 | + align-items: center; |
| 37 | + justify-content: center; |
| 38 | + position: relative; |
27 | 39 | transition: 0.35s cubic-bezier(0.05, 1.04, 0.72, 0.98); |
28 | | - vertical-align: top; |
29 | | - width: 360px; |
| 40 | + |
| 41 | + // Photo frame texture effect |
| 42 | + &::before { |
| 43 | + content: ''; |
| 44 | + position: absolute; |
| 45 | + top: 0; |
| 46 | + left: 0; |
| 47 | + right: 0; |
| 48 | + bottom: 0; |
| 49 | + } |
30 | 50 |
|
31 | 51 | &:hover { |
32 | | - opacity: 0.6; |
| 52 | + transform: translateY(-4px); |
| 53 | + box-shadow: |
| 54 | + 0 6px 16px rgba(0, 0, 0, 0.15), |
| 55 | + inset 0 0 0 1px rgba(255, 255, 255, 0.9); |
| 56 | + } |
| 57 | + |
| 58 | + .image-link { |
| 59 | + width: 100%; |
| 60 | + height: 100%; |
| 61 | + display: flex; |
| 62 | + align-items: center; |
| 63 | + justify-content: center; |
| 64 | + overflow: hidden; |
| 65 | + |
| 66 | + .framed-image { |
| 67 | + max-width: 100%; |
| 68 | + max-height: 100%; |
| 69 | + width: auto; |
| 70 | + height: auto; |
| 71 | + object-fit: contain; |
| 72 | + display: block; |
| 73 | + transition: 0.35s cubic-bezier(0.05, 1.04, 0.72, 0.98); |
| 74 | + } |
| 75 | + } |
| 76 | + |
| 77 | + &:hover .framed-image { |
| 78 | + transform: scale(1.05); |
33 | 79 | } |
34 | 80 | } |
35 | 81 | } |
|
0 commit comments