/* The media wrapper occupies the same grid cell as the original photo link. */
.place-card .card-media {
  position: relative;
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
  background: #252823;
}
.place-card .card-media .card-photo {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
}
.place-card .card-media .card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: var(--photo-focus, 50% 50%);
}
.card-photo-controls {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 9px;
  background: rgba(24, 27, 25, .92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.card-photo-controls[hidden], .card-photo-status[hidden] { display: none; }
.card-photo-controls button {
  min-height: 44px;
  min-width: 62px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.card-photo-controls button[aria-pressed="true"] {
  border-color: #e4edc8;
  background: #d9ed95;
  color: #1c291e;
}
.card-photo-controls button:hover { border-color: #fff; }
.card-photo-controls button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.card-photo-status {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 75px;
  left: 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  margin: 0 0 0 auto;
  padding: 7px 9px;
  border-radius: 5px;
  background: rgba(24, 27, 25, .95);
  color: #fff;
  font-size: .78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
@media (max-width: 740px) {
  .place-card .card-media {
    grid-column: 1 / -1;
    min-height: 220px;
    height: 220px;
  }
}
