body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0ece3;
    color: #333;
  }
  
  .nav {
    background: #fff;
    padding: 10px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #ddd;
  }
  .nav a {
    text-decoration: none;
    color: #444;
  }
  .nav .logo {
    font-weight: bold;
    color: #e63946;
  }
  
  main {
    padding: 20px;
    text-align: center;
  }
  
  footer {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    background: #fff;
    border-top: 1px solid #ddd;
    cursor: pointer;
  }
  
  /* Gallery styles */
  .gallery-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
  }
  .polaroid {
    background: white;
    padding: 15px 15px 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border: 1px solid #ddd;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .polaroid img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
  }
  .caption {
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #555;
    margin-top: 8px;
  }
  .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: rgba(0,0,0,0.6);
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    padding: 8px 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
  }
  .arrow:hover {
    background: rgba(255,255,255,0.95);
  }
  .arrow.left {
    left: 20px;
  }
  .arrow.right {
    right: 20px;
  }
  
  .gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
  }
  
  .polaroid-frame {
    position: relative;
    display: inline-block;
  }
  
  .photo {
    display: block;
    width: 400px; /* Adjust as needed */
    height: auto;
    position: relative;
    z-index: 1;
  }
  
  .frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px; /* Match photo width */
    height: auto;
    z-index: 2;
    pointer-events: none; /* Let clicks go through to arrows */
  }
  
  .caption {
    text-align: center;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
  }
  
  .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: rgba(0,0,0,0.6);
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    padding: 8px 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    z-index: 5;
  }
  .arrow:hover {
    background: rgba(255,255,255,0.95);
  }
  .arrow.left {
    left: 20px;
  }
  .arrow.right {
    right: 20px;
  }

  
  /* Fonts */
body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #ffe8f0, #ffcad4);
    color: #422c3e;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  .main-container {
    max-width: 450px;
    padding: 20px 30px;
    background: rgba(255 255 255 / 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(255, 102, 131, 0.3);
    text-align: center;
  }
  
  .header h1 {
    font-family: 'Gill Sans', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 1.3px;
    color: #d63e50;
    position: relative;
  }
  
  .heart {
    color: #ff516f;
    font-size: 3.2rem;
    vertical-align: middle;
    margin-left: 8px;
    animation: heartbeat 1.5s infinite;
  }
  
  @keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
  }
  
  .quote-section blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: #7a4a58;
    margin: 20px 0 30px;
    padding: 15px 25px;
    border-left: 5px solid #d63e50;
    background: #fff0f3;
    border-radius: 12px;
    box-shadow: 2px 2px 8px rgba(214, 62, 80, 0.15);
  }
  
  .nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    display: block;
    background: #ff6f91;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 0;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(255, 111, 145, 0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  }
  
  .btn:hover,
  .btn:focus {
    background: #ff4c6d;
    box-shadow: 0 8px 16px rgba(255, 76, 109, 0.6);
    transform: translateY(-3px);
  }
  
  .footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #7a4a58;
  }
  
  .linkish {
    cursor: pointer;
    color: #d63e50;
    font-weight: 700;
    user-select: none;
    transition: color 0.25s ease;
  }
  
  .linkish:hover {
    color: #ff4c6d;
    text-decoration: underline;
  }
  
  /* Responsive */
  @media (max-width: 480px) {
    .main-container {
      max-width: 90vw;
      padding: 20px;
    }
  
    .header h1 {
      font-size: 2.4rem;
    }
  
    .quote-section blockquote {
      font-size: 1rem;
    }
  }
  
  .polaroid-frame {
    position: relative;
    width: 928px;
    height: 1137px;     /* Fixed height, including space for caption */
    margin: 0 auto;
    user-select: none;
  }
  
  .photo {
    position: absolute;
    top: 30px;          /* Adjust to fit inside frame’s transparent window */
    left: 25px;
    right: 25px;
    bottom: 90px;       /* Leave space below for caption & frame bottom */
    object-fit: contain;
    width: auto;
    height: auto;
    max-width: calc(100% - 50px);  /* account for left + right inset */
    max-height: calc(100% - 120px); /* account for top + bottom inset */
    cursor: pointer;
    z-index: 1;
  }
  
  .frame-overlay {
    width: 928px;
    height: 1137px;
    position: relative;
    z-index: 2;
    pointer-events: none;
  }
  
  .caption {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #555;
    z-index: 3;
  }
  .polaroid-frame {
    position: relative;
    width: 928px;
    height: 1137px;
    margin: 0 auto;
    user-select: none;
  }
  
  .photo {
    position: absolute;
    top: 63px;        /* match transparent window top */
    left: 72px;       /* match transparent window left */
    width: 802px;     /* transparent window width */
    height: 839px;    /* transparent window height */
    object-fit: cover;  /* or 'contain' depending on your preference */
    cursor: pointer;
    z-index: 1;
  }
  
  .frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 928px;
    height: 1137px;
    z-index: 2;
    pointer-events: none;
  }
  
  .caption {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #555;
    z-index: 3;
  }
  