.modal {
  display: none;
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: auto;
  background: rgba(10, 6, 0, 0.72);
  padding: 28px 14px;
}

.modal-content {
  box-sizing: border-box;
  width: min(calc(100vw - 24px), 560px);
  max-width: 560px;
  margin: 6vh auto;
  padding: 12px 12px 16px;
  border: 5px outset beige;
  background-color: beige;
  background-image: url('../img/Stones-Marble4.jpg');
  background-repeat: repeat;
  background-position: center center;
  color: #201400;
  box-shadow:
    0 0 0 1px rgba(60, 30, 0, 0.85),
    0 18px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  color: beige;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.06em;
}

.close {
  flex: 0 0 auto;
  border: 3px outset beige;
  background: beige;
  color: #201400;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.close:hover,
.close:focus {
  background: #f8efc2;
  color: #000;
}

.close:active {
  border-style: inset;
}

.modal iframe {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 560px;
  border: 3px inset beige;
  background: rgba(255, 255, 255, 0.9);
}

.modal p {
  margin: 12px 0 0;
}

.modal a {
  color: #0037a6;
  font-weight: bold;
}

body {
  background-image: url('../img/bg14.jpg');
  background-size: 250px 250px;
  display: flex;
  justify-content: center;
  height: 100vh;
  margin: 0;
  text-align: center;
}

.title {
  transform: rotate(270deg);
  max-width: 200px;
  max-height: 50px;
  margin-top: 200px;
  margin-right: -50px;
}

.cover {
  max-width: 200px;
}

button {
  border: 0;
  background-color: transparent;
}

button:hover {
  animation: breathe 3s infinite ease-in-out;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.gallery {
  top-margin: 15px;
}

#music-gallery {
  margin-top: 24px;
  max-width: 920px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media screen and (max-width: 640px) {
  .modal {
    padding: 14px 6px;
  }

  .modal-content {
    width: calc(100vw - 12px);
    max-width: 420px;
    margin: 4vh auto;
    padding: 10px 10px 14px;
  }

  .modal-header {
    gap: 8px;
  }

  .modal-title {
    font-size: 0.95rem;
  }
}


