WIP Add basic photo gallery

This commit is contained in:
2026-04-27 16:45:49 +01:00
parent 2087cfc4f7
commit c1d3f25d50
2 changed files with 105 additions and 1 deletions

View File

@@ -909,6 +909,7 @@ abbr[title] {
}
.carousel-slide {
cursor: pointer;
position: relative;
flex: 0 0 100%;
scroll-snap-align: start;
@@ -1866,3 +1867,80 @@ button.create-place {
.btn-link:hover {
text-decoration: underline;
}
/* Photo Gallery */
.photo-gallery-overlay {
position: fixed;
inset: 0;
background: rgb(0 0 0 / 80%);
z-index: 9999;
display: flex;
flex-direction: column;
}
.photo-gallery-overlay .photo-gallery-content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
position: relative;
}
.photo-gallery-overlay .close-btn {
position: absolute;
top: 0.5rem;
right: 1rem;
width: 48px;
height: 48px;
z-index: 10;
color: white;
background: transparent;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s ease;
}
@media (width <= 768px) {
.photo-gallery-overlay .close-btn {
right: 0.5rem;
}
}
.photo-gallery-overlay .main-photo-container {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
overflow: hidden;
}
.photo-gallery-overlay .main-photo-container img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.photo-gallery-overlay .thumbnail-strip {
height: 100px;
display: flex;
gap: 0.5rem;
padding: 1rem;
overflow-x: auto;
background: rgb(0 0 0 / 50%);
}
.photo-gallery-overlay .thumbnail-strip .thumbnail {
height: 100%;
flex-shrink: 0;
cursor: pointer;
}
.photo-gallery-overlay .thumbnail-strip img {
height: 100%;
width: auto;
object-fit: cover;
border-radius: 4px;
}