/* Photoset player: same frame as the hangman player (title left, Full screen link right). */

main.player-main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  margin-bottom: 0;
  padding: 8px 16px 16px;
  box-sizing: border-box;
}

.player-heading {
  margin: 0 auto;
}

.lh-player {
  width: 100%;
  margin: 0 auto;
  color: #212529;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.lh-player *,
.lh-player *::before,
.lh-player *::after {
  box-sizing: border-box;
}

.lh-player [hidden] {
  display: none !important;
}

.lh-player h1 {
  margin: 0;
  padding: 8px 0 12px;
  color: #212529;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left;
}

.player-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.player-tools {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding-top: 12px;
}

.lh-player button {
  width: auto;
  height: auto;
  margin: 0;
  font-family: inherit;
  line-height: 1.2;
  box-shadow: none;
  transform: none;
}

.lh-player .text-link,
.lh-player .text-link:hover {
  padding: 8px;
  border: 0;
  background: transparent;
  color: #1875d0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lh-player .text-link:hover {
  text-decoration: underline;
}

/* Slides: 16:9 (plus the Google Slides control bar), sized by JS to fit the window */

.ps-frame {
  width: 100%;
}

.ps-slides {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  background: #f1f3f5;
}

.ps-slides iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .lh-player h1 {
    font-size: 24px;
  }

  .player-tools {
    display: none;
  }
}

/* No footer on player pages, so drop the empty 40px footer row from the site grid */
body.page-photoset .grid {
  grid-template-rows: auto 1fr;
}
