:root {
  --primary: #aa0077; /* Gold/Beige tone */
  --bg: #e2bedf; /* Off-white */
  --secondary: #86cdf7; /* Light Pink */
  --text: #333;
}

body {
  /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    text-align: center;*/
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #420057;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  /* background: #c0c2c2; */
  background: radial-gradient(
      ellipse farthest-corner at right bottom,
      #fedb37 0%,
      #fdb931 8%,
      #9f7928 30%,
      #8a6e2f 40%,
      transparent 80%
    ),
    radial-gradient(
      ellipse farthest-corner at left top,
      #ffffff 0%,
      #ffffac 8%,
      #d1b464 25%,
      #5d4a1f 62.5%,
      #5d4a1f 100%
    );
  background-image: url(/N-O-gold-no_bg.png);
  background-repeat: no-repeat, no-repeat;
  background-position: 50% 20%;
  background-size: 150%;
  /* opacity: 0.5; */
}

.gold-radial {
  background: radial-gradient(
      ellipse farthest-corner at right bottom,
      #fedb37 0%,
      #fdb931 8%,
      #9f7928 30%,
      #8a6e2f 40%,
      transparent 80%
    ),
    radial-gradient(
      ellipse farthest-corner at left top,
      #ffffff 0%,
      #ffffac 8%,
      #d1b464 25%,
      #5d4a1f 62.5%,
      #5d4a1f 100%
    );
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotate-glow {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}
@keyframes counter-glow {
  from {
    --angle: 360deg;
  }
  to {
    --angle: 0deg;
  }
}

.container {
  width: 350px;
  height: 667px;
  margin-top: 30px;

  position: relative;
  z-index: 1;
  border-radius: 15px;
  background-color: #dfe07e;
  background-image: conic-gradient(
    from var(--angle),
    transparent,
    #ffffac,
    #d1b464,
    #5d4a1f,
    transparent
  );
  filter: brightness(120%);
  animation: rotate-glow 3s linear infinite;
}
.container:before {
  z-index: -1;
  position: absolute;
  content: "";
  width: 340px;
  height: 650px;
  left: 10px;
  top: 0;
  background-image: conic-gradient(
    from var(--angle),
    transparent,
    #ffffac,
    #d1b464,
    #5d4a1f,
    transparent
  );
  filter: blur(30px);
  animation: counter-glow 3s linear infinite;
}

.card {
  /*background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(243, 7, 152, 0.1);
    width: 100%;
    max-width: 400px;*/
  width: 310px;
  height: 627px;
  padding: 15px;
  margin: 5px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  /* box-shadow: 15px 10px 25px 0px #e0b4e0; */
  background: #1a1f2b;
  background-image: url(/N-O-gold-no_bg.png);
  background-repeat: no-repeat, no-repeat;
  background-position: 50% 0%;
  background-size: 100%;
  /* opacity: 0.98;
  -webkit-animation: open 0.5s;
  animation: open 0.5s; */
}

h1 {
  margin: 0;
  font-weight: 350;
  letter-spacing: 2px;
  color: rgb(146, 125, 3);
}

.gold-gradient-text {
  background: radial-gradient(
      ellipse farthest-corner at right bottom,
      #fedb37 0%,
      #fdb931 8%,
      #9f7928 30%,
      #8a6e2f 40%,
      transparent 80%
    ),
    radial-gradient(
      ellipse farthest-corner at left top,
      #ffffff 0%,
      #ffffac 8%,
      #d1b464 25%,
      #5d4a1f 62.5%,
      #5d4a1f 100%
    );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: -2px -1px 1px rgba(209, 180, 100, 0.8),
    /* Lighter shadow at top-left (light source) */ 2px 2px 2px
      rgba(0, 0, 0, 0.4);
}
.subtitle {
  color: #838383;
  margin-top: 5px;
  margin-bottom: 30px;
}

/* The Text Input */
input[type="text"] {
  width: 100%;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box; /* Keeps padding inside width */
  margin-bottom: 20px;
  outline: none;
  color: rgb(146, 125, 3);
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  border-color: rgb(146, 125, 3);
}

/* Hide the ugly default file input */
input[type="file"] {
  display: none;
}

.actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}
/* The Big Camera Button */
/* Button Styles */
.btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  cursor: pointer;
  border: none;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.1s;
}
.btn:active {
  transform: scale(0.96);
}
.icon {
  font-size: 24px;
  margin-bottom: 5px;
  display: block;
}

.primary-btn {
  background: radial-gradient(
      ellipse farthest-corner at right bottom,
      #fedb37 0%,
      #fdb931 8%,
      #9f7928 30%,
      #8a6e2f 40%,
      transparent 80%
    ),
    radial-gradient(
      ellipse farthest-corner at left top,
      #ffffff 0%,
      #ffffac 8%,
      #d1b464 25%,
      #5d4a1f 62.5%,
      #5d4a1f 100%
    );
  color: white;
}
.secondary-btn {
  background: radial-gradient(
    ellipse farthest-corner at left top,
    #cccccc 22%,

    #b8b8b8 26%,
    #b8b8b8 27%,
    #d9d9d9 40%,
    #3e3e3e 78%
  );
  color: #a78903;
}

/* Hide default file input */
input[type="file"] {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
  width: 100%;

  /* This makes it take remaining space and scroll internally */
  flex: 1;
  overflow-y: auto;

  /* Optional: Custom scrollbar for webkit */
  scrollbar-width: thin;
  padding-bottom: 10px;
}

.gallery-img {
  width: 100%;
  height: 120px; /* Slightly smaller to fit more */
  object-fit: cover;
  border-radius: 12px;
  background-color: #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer; /* Show pointer to indicate clickable */
}

/* --- NEW: MODAL (LIGHTBOX) STYLES --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: zoom 0.3s;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Status */
.status-message {
  text-align: center;
  margin-bottom: 20px;
  min-height: 20px;
  font-size: 0.9em;
}
.error {
  color: #e63946;
}
.success {
  color: #2a9d8f;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 10px;
  margin-top: 20px;
}

.gallery-img {
  width: 100%;
  height: 150px; /* Fixed height for uniformity */
  object-fit: cover;
  border-radius: 12px;
  background-color: #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
.gallery-img:active {
  transform: scale(1.02);
}

/* Status Messages */
.status-message {
  margin-top: 20px;
  font-weight: 500;
  min-height: 24px;
}
.error {
  color: #e63946;
}
.success {
  color: #2a9d8f;
}
.loading {
  color: #e9c46a;
}
