/* ========================================
   Gallery & Exhibition Pages
   Common styles for coin/bill galleries
   ======================================== */

/* Main content container */
.gallery-content {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin: 2rem auto;
  max-width: 1200px;
}

/* Page titles */
.gallery-content > h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Subtitles */
.gallery-content > h2 {
  color: #2c3e50;
  text-align: center;
  font-size: 1.5rem;
  margin: 1rem 0;
}

/* Descriptions */
.gallery-content > p {
  text-align: center;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
}

/* ========================================
   Coin Gallery Layout
   ======================================== */

.coin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Coin cards */
.coin-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #333;
  transition: all 0.3s ease;
}

.coin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Coin image container with flip animation */
.coin-img {
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 200px;
  perspective: 1000px;
}

.coin-img img {
  max-width: 180px;
  height: auto;
  border-radius: 50%;
  border: 3px solid #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  position: absolute;
  background: white;
  padding: 2px;
}

.coin-img img:first-child {
  transform: rotateY(0deg);
}

.coin-img img:last-child {
  transform: rotateY(180deg);
}

.coin-card:hover .coin-img img:first-child {
  transform: rotateY(-180deg);
}

.coin-card:hover .coin-img img:last-child {
  transform: rotateY(0deg);
}

/* Coin captions */
.coin-caption {
  font-size: 1rem;
  line-height: 1.8;
  color: #2c3e50;
}

.coin-caption strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: #2c3e50;
  font-weight: 700;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ddd;
}

/* ========================================
   Bill Gallery Layout
   ======================================== */

.bill-container {
  margin-top: 3rem;
  text-align: center;
}

.bill-container > h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border: 2px solid #ddd;
  border-left: 5px solid #0066cc;
  border-radius: 8px;
  display: inline-block;
  min-width: 400px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.bill-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border: 3px solid #0066cc;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin: 1rem auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  padding: 4px;
}

.bill-image:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.bill-label {
  font-weight: 600;
  color: #2c3e50;
  margin: 1rem 0;
  font-size: 1.15rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bill-info {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #ddd;
  border-left: 5px solid #0066cc;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  margin: 1.5rem auto;
  max-width: 800px;
  text-align: left;
}

.bill-info p {
  margin: 0.75rem 0;
  color: #37474f;
  font-size: 1.05rem;
  line-height: 1.7;
  padding-left: 1.5rem;
}

.bill-info p strong {
  color: #0066cc;
  font-weight: 600;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .gallery-content {
    padding: 1.5rem;
  }
  
  .gallery-content > h1 {
    font-size: 2rem;
  }
  
  .coin-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .coin-card {
    padding: 1.5rem;
  }
  
  .bill-container > h3 {
    font-size: 1.5rem;
    min-width: auto;
    width: 100%;
  }
  
  .bill-info {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-content > h1 {
    font-size: 1.75rem;
  }
  
  .coin-img {
    height: 150px;
  }
  
  .coin-img img {
    max-width: 140px;
  }
  
  .coin-caption strong {
    font-size: 1.1rem;
  }
}
