/* ==========================================================
   Photos — album index and album pages
   ========================================================== */

/* ---------- Album index grid (photos.html) ---------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 1em;
}

.album-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.45s ease;
}

.album-card:hover,
.album-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
}

.album-cover {
  position: relative;
  width: 100%;
  padding-bottom: 66.66%; /* 3:2 aspect ratio */
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.album-card:hover .album-cover,
.album-card:focus .album-cover {
  transform: scale(1.08);
}

/* Soft gradient at the bottom for readability behind the info bar */
.album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0) 55%
  );
}

/* Solid translucent info bar at the bottom */
.album-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 22px;
  z-index: 2;
  color: #fff;
  background: rgba(28, 32, 38, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(0);
  transition:
    background 0.35s ease,
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.album-card:hover .album-card-info,
.album-card:focus .album-card-info {
  background: rgba(18, 22, 28, 0.82);
}

.album-card-info h4 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.album-card-info .album-meta {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.82;
}

/* Subtle "View album" hint that appears on hover */
.album-card-info::after {
  content: "View album →";
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #fff;
}

.album-card:hover .album-card-info::after,
.album-card:focus .album-card-info::after {
  opacity: 0.95;
  transform: translateX(0);
}

/* ---------- Album page (masonry) ---------- */
.album-breadcrumb {
  margin: 0 0 1.6em;
  font-size: 13px;
  color: #888;
}

.album-breadcrumb a {
  color: #0099e5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.album-breadcrumb a:hover {
  color: #007bb5;
  text-decoration: underline;
}

.album-masonry {
  column-count: 3;
  column-gap: 12px;
}

@media (max-width: 900px) {
  .album-masonry {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .album-masonry {
    column-count: 1;
  }
}

.album-masonry .photo-item {
  position: relative;
  display: block;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 4px;
  break-inside: avoid;
  cursor: zoom-in;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.album-masonry .photo-item:hover,
.album-masonry .photo-item:focus {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.album-masonry .photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.album-masonry .photo-item:hover img {
  transform: scale(1.06);
}

/* Dark overlay + zoom icon on hover */
.album-masonry .photo-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.album-masonry .photo-item:hover::before {
  background: rgba(0, 0, 0, 0.25);
}

.album-masonry .photo-item::after {
  content: "\f00e"; /* Font Awesome search-plus icon */
  font-family: "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.album-masonry .photo-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
