diff --git a/components/ContentType/HotelPage/PreviewImages/previewImages.module.css b/components/ContentType/HotelPage/PreviewImages/previewImages.module.css index fdf7ef319..f333c4ead 100644 --- a/components/ContentType/HotelPage/PreviewImages/previewImages.module.css +++ b/components/ContentType/HotelPage/PreviewImages/previewImages.module.css @@ -37,7 +37,6 @@ } .baseImage { - cursor: pointer; object-fit: cover; border-radius: var(--Corner-radius-Medium); display: block; diff --git a/components/Lightbox/Desktop/desktopLightbox.module.css b/components/Lightbox/Desktop/desktopLightbox.module.css index 5272d98eb..15460ab00 100644 --- a/components/Lightbox/Desktop/desktopLightbox.module.css +++ b/components/Lightbox/Desktop/desktopLightbox.module.css @@ -1,9 +1,5 @@ .content { - background-color: white; - border-radius: 6px; - box-shadow: - hsl(206 22% 7% / 35%) 0px 10px 38px -10px, - hsl(206 22% 7% / 20%) 0px 10px 20px -15px; + border-radius: var(--Corner-radius-Large); position: fixed; top: 50%; left: 50%; @@ -11,15 +7,18 @@ width: 1090px; height: 725px; overflow: hidden; + z-index: 10; } .overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.5); + z-index: 10; } .galleryContainer { + background-color: var(--Base-Background-Primary-Normal); padding: var(--Spacing-x5) var(--Spacing-x6); height: 100%; display: flex; @@ -48,26 +47,31 @@ .imageCaption { background-color: #f0f0f0; - padding: 5px 10px; + padding: var(--Spacing-x-half) var(--Spacing-x1); border-radius: 4px; } .mainImageContainer { flex: 1; position: relative; - margin-bottom: 20px; + margin-bottom: var(--Spacing-x2); + will-change: transform; + overflow: hidden; } .mainImageContainer img, .thumbnailContainer img { border-radius: var(--Corner-radius-Small); cursor: pointer; + transition: opacity 0.3s ease-in-out; } .thumbnailGrid { display: grid; grid-template-columns: repeat(5, 1fr); - gap: 10px; + gap: var(--Spacing-x1); + max-height: 125px; + overflow: hidden; } .thumbnailContainer { @@ -77,7 +81,6 @@ .fullViewContainer { background-color: var(--UI-Text-High-contrast); - color: #fff; height: 100%; padding: var(--Spacing-x5); display: flex; @@ -141,7 +144,7 @@ } .prevButton { - left: 10px; + left: 0; } .leftTransformIcon { @@ -149,7 +152,7 @@ } .nextButton { - right: 10px; + right: 0; } .portraitImage { diff --git a/components/Lightbox/Desktop/index.tsx b/components/Lightbox/Desktop/index.tsx index 9ad9a6771..c485bb47f 100644 --- a/components/Lightbox/Desktop/index.tsx +++ b/components/Lightbox/Desktop/index.tsx @@ -156,30 +156,45 @@ function Gallery({