@charset "UTF-8";
.plugin-gallery {
  --color-smoke: #cecece;
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
  place-items: center;
}

.gallery-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: right;
  gap: 4px 8px;
  justify-content: space-between;
  margin-bottom: 8px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.gallery-control .search {
  padding: 0 12px;
  height: 32px;
  outline: none;
  border-radius: 20px;
}
.gallery-control .sorter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 8px;
}
.gallery-control .sort {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: lightblue;
  padding: 4px 8px;
  border-radius: 20px;
  width: 96px;
}
.gallery-control .sort::after {
  content: "";
}
.gallery-control .sort.desc::after {
  content: "▼";
}
.gallery-control .sort.asc::after {
  content: "▲";
}

.gallery-items {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  width: 100%;
}
.gallery-items[data-break=true] {
  flex-wrap: wrap;
}
.gallery-items[data-break=false] {
  overflow: auto;
}
.gallery-items[data-break=false] .gallery-item {
  flex: 0 0 fit-content;
  max-width: unset;
}
.gallery-items[data-crop] .gallery-item {
  aspect-ratio: 1;
}
.gallery-items[data-crop] .gallery-image {
  -o-object-fit: cover;
     object-fit: cover;
}
.gallery-items[data-crop=circle] .gallery-item {
  border-radius: 50%;
}
.gallery-items[data-crop=circle] .gallery-item::after {
  display: none;
}
.gallery-items[data-wrap=true] .gallery-item {
  background: #4e4e4e;
  border: 4px solid #4e4e4e;
}

.gallery-item {
  border-radius: 4px;
  filter: drop-shadow(2px 2px 4px rgba(20, 20, 20, 0.6));
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.gallery-item[data-cap]::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent);
  bottom: 0;
  color: var(--color-smoke);
  content: attr(data-cap);
  font-size: 13px;
  left: 0;
  overflow: hidden;
  padding: 12px 8px 4px 8px;
  pointer-events: none;
  position: absolute;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 3px #333;
  white-space: nowrap;
  width: 100%;
}
.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}
.gallery-item a:link,
.gallery-item a:hover,
.gallery-item a:visited {
  background-color: transparent;
  text-decoration: none;
}

.gallery-image {
  transition: transform 0.15s ease-out;
}

a.gallery-add {
  background: #56b372;
  border-radius: 40px;
  box-shadow: 0 4px 8px -4px rgba(20, 20, 20, 0.6);
  color: #fff;
  font-weight: bold;
  padding: 8px 16px;
  text-align: center;
  text-shadow: 1px 1px 3px #333;
}
a.gallery-add:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

.pswp__custom-caption {
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  background: rgba(80, 80, 80, 0.65);
  border-radius: 4px;
  bottom: 24px;
  color: #cecece;
  left: 50%;
  padding: 8px 16px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  width: clamp(320px, 40vw, 768px);
}

.pswp__custom-caption a {
  color: #fff;
  text-decoration: underline;
}

.pswp-caption-content {
  display: none;
}
