/* ============================================================
   SHOP PAGE STYLES
   ============================================================ */

/* Make all images scale down on small screens */
img {
  max-width: 100%;
  height: auto;
}


   /* Message above product grid */
.shop-msg {
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
}

/* Product Grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  padding: 10px;
}

.product {
  text-align: center;
}

/* Product Images */
.products .product img {
  width: 100%;
  max-width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product img:hover {
  transform: scale(1.06);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

/* Product title text */
.product p {
  margin-top: 10px;
  font-size: 16px;
}

/* ============================================================
   GALLERY PAGE — SCRAPBOOK STYLE
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  padding: 20px;
}

.scrap-photo {
  background: #fffef8;
  padding: 12px;
  border: 2px solid #e5dbc5;
  border-radius: 6px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  max-width: 260px;
  margin: 0 auto;
  position: relative;
}

.scrap-photo img {
  width: 100%;
  height: auto !important;
  max-height: 320px !important;
  object-fit: contain !important;
  border-radius: 4px;
  display: block;
  clip-path: none !important;
}

/* Washi tape */
.scrap-photo .tape {
  position: absolute;
  width: 80px;
  height: 20px;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  background: rgba(255, 230, 150, 0.8);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

/* Rotations */
.rotate1 { transform: rotate(-6deg); }
.rotate2 { transform: rotate(4deg); }
.rotate3 { transform: rotate(-3deg); }
.rotate4 { transform: rotate(5deg); }

/* Share button scrapbook container */
.share-wrapper {
  background: #fffef8;                 /* same as scrapbook */
  border: 2px solid #e5dbc5;
  border-radius: 6px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  padding: 20px;
  max-width: 260px;
  margin: 30px auto;
  position: relative;
  text-align: center;
}

/* Washed tape reused exactly from scrapbook items */
.share-wrapper .tape {
  position: absolute;
  width: 80px;
  height: 20px;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  background: rgba(255, 230, 150, 0.8);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

/* The button inside the scrapbook frame */
.share-btn {
  background: none;               /* No need for button bg */
  border: none;                   /* Let the frame do the styling */
  font-size: 18px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 4px;
  transition: 0.2s ease;
}

.share-btn:hover {
  transform: scale(1.05);
  color: #222;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px black;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

.lightbox-arrow.left {
  left: 30px;
}

.lightbox-arrow.right {
  right: 30px;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
  color: #ffddf4;
}

/* ============================================================
   NAVIGATION BAR + DROPDOWN
   ============================================================ */

.navbar {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px;
  background: purple;
}

.navbar a,
.dropbtn {
  color: white;
  text-decoration: none;
  font-weight: bold;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #e4a6d4;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 10;
}

.dropdown-content a {
  color: white;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #e4a6d4;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  text-decoration: underline;
}

.site-credit {
  text-align: center;
  font-size: 14px;
  color: #777;
  margin-top: 8px;
}

video {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
}

.share-btn {
  background: #e4a6d4;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 20px auto;
  text-align: center;
  transition: 0.2s ease;
}

.share-btn:hover {
  background: #d48fc3;
}

/* Mobile default */
.navbar {
  display: none;
  flex-direction: column;
  background: #e4a6d4;
  padding: 15px;
}

/* When hamburger is clicked */
.navbar.open {
  display: flex;
}

/* Hamburger button */
.nav-toggle {
  font-size: 28px;
  background: none;
  border: none;
  color: purple;
  cursor: pointer;
}

/* Desktop override */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .navbar {
    display: flex !important;
    flex-direction: row;
    gap: 20px;
    background: none;
    background-color: #e4a6d4;
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 30px auto;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

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

body{
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}