:root {
  --db-focus: #111111;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: #ffffff;
}

.chooser {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  overflow: hidden;
  background: #ffffff url("brass-band/assets/img/new_page/Background.jpg") center / cover no-repeat;
}

.chooser-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #111111;
  padding: 2rem;
  border-right: 1px solid #eeeeee;
}

.chooser-panel:last-child {
  border-right: none;
}

.panel-content {
  text-align: center;
  width: 100%;
  transform: none;
}

.panel-logo {
  display: block;
  width: min(82%, 300px);
  max-width: 40vw;
  margin: auto;
  height: auto;
  transition: transform 0.2s ease;
}

.chooser-panel.brass .panel-logo {
  width: min(92%, 500px);
  max-width: 56vw;
}

.chooser .chooser-panel:focus-visible {
  outline: 2px solid var(--db-focus);
  outline-offset: -2px;
}

.chooser-panel:hover .panel-logo,
.chooser-panel:focus-visible .panel-logo {
  transform: scale(1.08);
}

.photo-credit {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  z-index: 5;
  padding: 0.35rem 0.55rem;
  color: #111111;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.photo-credit:hover,
.photo-credit:focus-visible {
  color: #ffffff;
  background: #111111;
}

@media (max-width: 991px) {
  .chooser {
    grid-template-columns: 1fr;
  }

  .chooser-panel {
    min-height: 33.33dvh;
    border-right: none;
    border-bottom: 1px solid #eeeeee;
  }

  .chooser-panel:last-child {
    border-bottom: none;
  }

  .photo-credit {
    right: 0.75rem;
    bottom: 0.65rem;
    font-size: 0.7rem;
  }

  .panel-logo {
    width: min(82%, 300px);
    max-width: 52vw;
  }

  .chooser-panel:not(.brass) .panel-logo {
    width: min(72%, 220px);
    max-width: 40vw;
  }

  .chooser-panel.brass .panel-logo {
    width: min(92%, 430px);
    max-width: 82vw;
  }
}
