/* CULI Photos — dark gallery theme matching the original photos.yliapps.com */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #141414;
  color: #f5f5f5;
  font-family: trade-gothic-next, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.ph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background-color: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
}

.ph-header__brand {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: .02em;
}

.ph-header__home {
  font-size: .85rem;
  color: #a5a5a5;
}

.ph-header__home:hover { color: #F56600; }

.ph-main {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

.ph-back {
  display: inline-block;
  color: #F56600;
  font-size: .9rem;
  margin-bottom: .75rem;
}

.ph-back:hover { color: #ff8c33; }

.ph-title {
  font-size: 1.9rem;
  font-weight: bold;
  margin-bottom: 1.25rem;
}

.ph-title--center {
  text-align: center;
  font-size: 2.4rem;
  margin: 2.5rem 0 3rem;
}

/* ---------- album lists ---------- */

.ph-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1.6rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.ph-album {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  background-color: #3b3b3b;
  border-radius: 16px;
  transition: background-color .15s ease-in-out;
}

.ph-album:hover {
  background-color: #474747;
}

.ph-album__icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: #4a4a4a;
  color: #F58C3C;
}

.ph-album__name {
  font-weight: bold;
  font-size: 1.25rem;
}

.ph-album__count {
  font-size: .82rem;
  color: #a5a5a5;
}

/* ---------- photo grid ---------- */

.ph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.ph-card {
  position: relative;
  background-color: #202020;
  border-radius: 10px;
  overflow: hidden;
}

.ph-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ph-card__dl {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .92);
  color: #141414;
  font-size: .8rem;
  font-weight: bold;
  transition: background-color .15s ease-in-out;
}

.ph-card__dl:hover { background-color: #F56600; color: #FFF; }

.ph-empty {
  color: #909090;
  padding: 2rem 0;
}

.ph-footer {
  padding: 1.5rem;
  text-align: center;
  color: #6a6a6a;
  font-size: .8rem;
  border-top: 1px solid #2a2a2a;
}
