/* Popup settings modal */
#settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#settings-modal > div {
  background: #fff;
  padding: 32px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  max-width: 95vw;
  max-height: 95vh;
  overflow: auto;
}
#open-settings {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999;
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(233,30,99,0.07);
}
.settings-form label, .settings-form fieldset {
  display: block;
  margin-bottom: 12px;
}
.settings-form input, .settings-form textarea {
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #e91e63;
  padding: 6px 12px;
  margin-top: 4px;
  margin-bottom: 4px;
  width: 80%;
  box-sizing: border-box;
}
.settings-form textarea {
  resize: vertical;
}
.settings-form button {
  margin-top: 8px;
}
#photos-list div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.photo-url {
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #e91e63;
  padding: 4px 8px;
}
.remove-photo {
  background: #fff;
  color: #e91e63;
  border: 1px solid #e91e63;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
}
.gallery-container > div {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(233,30,99,0.12);
  margin: 8px;
}
.gallery-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-container .remove-photo {
  position: absolute;
  top: 6px;
  right: 6px;
}
@media (max-width: 700px) {
  #settings-modal > div {
    padding: 12px 4px;
  }
  .settings-form input, .settings-form textarea {
    width: 98%;
  }
  .gallery-container > div {
    width: 70px;
    height: 70px;
    border-radius: 8px;
  }
}
body {
  background: #fffbe9;
  font-family: 'Quicksand', sans-serif;
  margin: auto;
  padding: auto;
}

.main-content {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px 24px;
}

h1 {
  text-align: center;
  font-family: 'Dancing Script', cursive;
  color: #e26a6a;
  margin-bottom: 32px;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.gallery-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(226,106,106,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 24px rgba(226,106,106,0.22);
}

.back-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  background: #e26a6a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(226,106,106,0.18);
  transition: background 0.2s;
  z-index: 1000;
  cursor: pointer;
  opacity: 1;
}

.back-btn:hover {
  background: #c94c4c;
}
