.flickr-container {
  position: relative;
}

.flickr-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.flickr-photos a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.flickr-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.flickr-photos a:hover img {
  transform: scale(1.1);
}

.flickr-lightbox {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  justify-content: center;
  align-items: center;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 4px;
}

.flickr-lightbox.active {
  display: flex;
  flex-direction: column;
}

.flickr-lightbox-img-container {
  position: relative;
  display: inline-block;
}

.flickr-lightbox img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.flickr-lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flickr-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.flickr-lightbox-title {
  margin-top: 6px;
  text-align: center;
  color: #333;
  font-size: 11px;
}
