.ph-wrap { max-width: 1080px; }
.ph-block { margin: 0 0 28px; }
.ph-block h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.ph-sub { margin: 0 0 12px; color: var(--art-muted); font-size: 0.86rem; }

.ph-country-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: -4px 0 22px;
}
.ph-country-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
}
.ph-country-select {
  min-width: min(320px, 100%);
  max-width: 480px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--art-line);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  background: #fff;
  color: var(--art-ink);
}

.ph-stories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
}
.ph-story {
  flex: 0 0 92px;
  width: 92px;
  text-align: center;
  text-decoration: none;
  color: var(--art-ink);
}
.ph-story .ring {
  width: 80px;
  height: 80px;
  margin: 0 auto 6px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #2dd4bf, #1d4ed8);
}
.ph-story .ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #fff;
}
.ph-story span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-mag {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
}
.ph-mag.grid {
  grid-template-columns: repeat(3, 1fr);
}
.ph-mag.grid .ph-tile { height: 176px; }
.ph-mag-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ph-tile {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #dbe3ec;
  text-decoration: none;
  color: #fff;
}
.ph-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-tile.big { height: 328px; }
.ph-tile.small { height: 158px; }
.ph-tile-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0));
  font-weight: 800;
  line-height: 1.3;
}
.ph-tile.big .ph-tile-cap { font-size: 1.02rem; }
.ph-tile.small .ph-tile-cap { font-size: 0.76rem; }
.ph-pill {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  color: #1d4ed8;
}

.ph-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}
.ph-tab {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--art-line);
  background: #fafafa;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}
.ph-tab.on {
  background: #198486;
  border-color: #198486;
  color: #fff;
}

.ph-masonry {
  column-count: 4;
  column-gap: 10px;
}
.ph-pin {
  break-inside: avoid;
  display: block;
  margin: 0 0 10px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #dbe3ec;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
}
.ph-pin img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.ph-pin:nth-child(3n) img { aspect-ratio: 3 / 4; }
.ph-pin:nth-child(5n) img { aspect-ratio: 4 / 5; }
.ph-pin .stars {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(2, 6, 23, 0.72);
  color: #fde047;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}
.ph-pin .cnt {
  position: absolute;
  right: 6px;
  top: 6px;
  background: rgba(2, 6, 23, 0.65);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.ph-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.ph-card {
  flex: 0 0 min(280px, 82%);
  border: 1px solid var(--art-line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.ph-card .who { font-size: 0.75rem; color: var(--art-muted); margin: 0 0 4px; }
.ph-card .rate { color: #ca8a04; margin: 0 0 6px; font-size: 0.85rem; }
.ph-card .txt { margin: 0 0 8px; font-size: 0.86rem; line-height: 1.45; color: var(--art-ink); }
.ph-card-thumbs { display: flex; gap: 6px; }
.ph-card-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #e8eef5;
}

.ph-empty { color: var(--art-muted); font-size: 0.9rem; }

.ph-lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ph-lb[hidden] { display: none; }
.ph-lb-x {
  position: absolute;
  right: 16px;
  top: 12px;
  background: transparent;
  border: 0;
  color: #e2e8f0;
  font-size: 1.6rem;
  cursor: pointer;
}
.ph-lb-stage {
  width: min(920px, 100%);
  background: #0f172a;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}
.ph-lb-photo {
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  min-height: 240px;
}
.ph-lb-photo img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
}
.ph-lb-side { color: #e2e8f0; }
.ph-lb-who { font-size: 0.8rem; color: #94a3b8; margin: 0 0 6px; }
.ph-lb-rate { color: #fde047; margin: 0 0 8px; }
.ph-lb-txt { font-size: 0.92rem; line-height: 1.55; margin: 0 0 12px; }
.ph-lb-place { font-weight: 800; margin: 0 0 2px; }
.ph-lb-addr { font-size: 0.8rem; color: #94a3b8; margin: 0 0 12px; }
.ph-lb-go {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #1d4ed8;
  background: rgba(29, 78, 216, 0.18);
  color: #bfdbfe;
  font: inherit;
  margin-top: 8px;
}
.ph-lb-go b { display: block; color: #dbeafe; }
.ph-lb-go span { font: inherit; font-size: 0.76rem; text-decoration: underline; }
.ph-lb-hub {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  text-decoration: none;
  font: inherit;
  font-size: 0.88rem;
}
.ph-lb-hub:hover { border-color: #93c5fd; color: #bfdbfe; }
.ph-lb-hub[hidden] { display: none !important; }

@media (max-width: 900px) {
  .ph-mag { grid-template-columns: 1fr; }
  .ph-mag.grid { grid-template-columns: 1fr 1fr; }
  .ph-tile.big { height: 220px; }
  .ph-masonry { column-count: 3; }
  .ph-lb-stage { grid-template-columns: 1fr; }
  .ph-lb-photo img { height: 220px; }
}
@media (max-width: 640px) {
  .ph-masonry { column-count: 2; }
  .ph-mag-right { grid-template-columns: 1fr 1fr; }
  .ph-mag.grid { grid-template-columns: 1fr 1fr; }
  .ph-mag.grid .ph-tile { height: 140px; }
}
