/* --- scrollbar & browser defaults --- 
   hides scrollbars across all browsers while keeping the page scrollable 
*/

html, body, .page-container {
  -ms-overflow-style: none;  
  scrollbar-width: none;     
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar,
.page-container::-webkit-scrollbar { 
  display: none;  
}

/* --- text selection colors --- 
   customizes the highlight color when you click and drag over text 
*/

::selection {
  background-color: #fef4fa;
  color: #8d7c76;
}

::-moz-selection {
  background-color: #fef4fa;
  color: #8d7c76;
}

/* --- main layout container --- 
   sets up the full-screen scrolling and "snap" effect 
*/

.page-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-container::-webkit-scrollbar {
  display: none;
}

/* --- individual topic sections --- 
   manages the full-page sections and centers the content boxes 
*/

.topic-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  padding: 80px 0; 
  box-sizing: border-box;
}

/* --- the white content box --- 
   styles the floating cards, including shadows, borders, and typography 
*/

.white-box {
  background: white;
  width: 100%;
  max-width: 700px;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative; 
  overflow: visible; 
  font-family: 'Crimson Pro', serif;
  color: #333; 
  line-height: 1.6;
  text-align: left; 
}

.white-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 15px;
}

.white-box p {
  font-family: 'Crimson Pro', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 20px;
}

/* --- list & typography details --- 
   styles the bullet points and the custom "✦" icons 
*/

.white-box ul {
  list-style-type: none; 
  padding-left: 0;
}

.white-box li {
  font-family: 'Crimson Pro', serif;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start; 
  gap: 10px;
  line-height: 1.4;
  font-style: italic;
}

.white-box li::before {
  content: "✦";
  color: #333;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  height: 1.6em;
  flex-shrink: 0;
  position: relative;
  top: 3px;
  font-style: normal;
}

/* --- topic titles & numbers --- 
   styles the headers and the pink decorative bottom border 
*/

.topic-title {
  font-family: 'Crimson Pro', serif;
  font-size: 28px;
  color: #333;
  display: inline-flex; 
  align-items: baseline;
  gap: 12px;
  border-bottom: 6px solid #fccce1; 
  padding-bottom: 2px; 
  margin-bottom: 24px; 
}

.topic-num {
  font-family: 'Playfair Display', serif; 
  font-style: italic;
  font-weight: 400;
  color: #333; 
  font-variant-numeric: lining-nums;
  display: inline-block;
}

/* --- floating character images --- 
   positions the little images at the corner of boxes with hover animations 
*/

.box-char {
  position: absolute;
  bottom: -30px;
  right: -40px;
  width: 120px;
  height: auto;
  z-index: 10;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.box-char:hover {
  transform: translateY(-15px) rotate(5deg);
}

@media (max-width: 600px) {
  .box-char {
    right: -10px;
    width: 80px;
  }
}

/* --- standard photo grid --- 
   a basic 2-column grid for uniform images 
*/

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 15px; 
  margin-top: 20px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 2; 
  object-fit: cover; 
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

@media (max-width: 480px) {
  .photo-grid {
    gap: 10px;
  }
}

/* --- pinterest masonry grid --- 
   creates the vertical columns for images with different heights 
*/

.masonry-grid {
  column-count: 2; 
  column-gap: 15px;
  margin-top: 20px;
}

.masonry-grid img {
  width: 100%;
  display: block;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  break-inside: avoid; 
}

@media (max-width: 480px) {
  .masonry-grid {
    column-count: 2;
    column-gap: 10px;
  }
}

/* --- image hover & caption effects --- 
   handles the blur effect and the text overlays when hovering over photos 
*/

.img-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.img-container img {
  width: 100%;
  display: block;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.img-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  box-sizing: border-box;
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  color: white;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; 
  z-index: 2;
}

.img-container:hover img {
  filter: blur(4px);
  transform: scale(1.05); 
}

.img-container:hover .img-caption {
  opacity: 1;
}

.masonry-grid .img-container {
  margin-bottom: 15px;
  break-inside: avoid;
}

/* --- navigation buttons --- 
   styles the circular arrow buttons used to scroll between sections 
*/

.arrow-btn {
  margin-top: 20px; 
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.arrow-btn:hover {
  transform: translateY(5px);
}

.arrow-btn img {
  width: 30px;
  height: 30px;
}