/* SHARED */ 
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: url("indeximages/background.webp") repeat-y center top;
    background-repeat: repeat-y;
    background-size: 100% auto;  
  }
  

  .background-overlay {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
      background: transparent;
  }

  header {
    padding: 2rem 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #ccc; 
  }
  
  
.top-banner {
  width: 100%;
  height: 50px;
  background: linear-gradient(to right, #275086, #2C84C4);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
}

.top-logo {
  height: 42px;
  width: auto;
}

.logo {
  max-width: 900px;
  width: 90%;
  height: auto;
}

footer {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: #333;
}

/* Replaced center tag */
.page-wrapper {
  text-align: center;
}

/* GALLERY*/
.gallery-block{
  background: rgba(255, 255, 255, 0.95);
  margin: 24px auto;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  max-width: 1280px;
  width: 98%;
  box-sizing: border-box;
}

h2.set-name {
  font-family: 'Segoe UI', sans-serif;
  font-size: 32pt;
  margin-top: 20px;
}

h3.gallery-header {
  font-family: 'Segoe UI', sans-serif;
  font-size: 28pt;
  margin: 30px 0 10px 0;
  padding-top: 15px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  justify-items: center;
  gap: 12px;
  max-width: 1200px;
  margin-bottom: 32px;
  padding: 12px; 
  box-sizing: border-box;
  margin: 1em auto;
}


.gallery-image {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.gallery-image:hover {
  transform: scale(1.03);
}

/* MODAL */

.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0,0,0,0.95);
  flex-direction: column;
}

.modal-content-wrapper {
  position: relative;
  text-align: center;
}

.modal-content {
  max-width: 90vw;
  max-height: 80vh;
}

#caption {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffff;
  font-size: 1.2em;
  padding: 8px 8px;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  font-size: 48px;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  padding: 8px;
}

.modal-arrow.left {
  left: 20px;
}

.modal-arrow.right {
  right: 20px;
}

@media screen and (max-width: 600px) {
  h2 { font-size: 24pt; }
  h3.gallery-header { font-size: 20pt; }
  #caption { font-size: 16pt; }
  .modal-arrow { font-size: 36px; }
  .modal-close { font-size: 32px; top: 10px; right: 20px; }
}

/* GUIDE */ 
.guide-section {
  text-align: justify;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  line-height: 1.6;
  box-sizing: border-box;
}
.guide-section img {
  width: 50%;
  height: auto;
  display: block;
  margin: 1em auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .guide-section {
    padding: 0 1.25rem; /* Slightly larger padding for very narrow screens */
  }
}

/* DETAILS */

.details {
  padding: 12px;
  font-size: 1rem;
  text-align: justify
}

.details summary {
  font-weight: bold;
  font-size: 1.2em;
  cursor: pointer;
}

.details > div {
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 0px;
  line-height: 1.5;
}

/* INDEX */

.content {
  max-width: 800px;
  width: 90%;
  padding: 2rem 1rem;
  box-sizing: border-box;
  text-align: center;
}

.restorations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; 
  background: rgba(255, 255, 255, 1.0);
  padding: 1rem;
  border-radius: 0 0 12px 12px;
   box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.category-group h2 {
  background: #4a6cf7;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px 12px 0 0;
  margin: 0;
}

.restoration {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem;
  background: #f7f7f7;
  border: 2px solid #ccc;
  border-radius: 12px;
  text-decoration: none;
  color: #000; 
  text-decoration: none;
  transition: background 0.3s ease;

}

.restoration:hover {
  background: #e0eaff;
}

.restoration-icon {
width: 60px;
height: 60px;
background-color: #fff;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
border: 1px solid #888; 
}

.restoration-icon-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid #888;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  display: block; /* Prevents inline spacing issues */
}

.category-group {
  margin: 2rem auto;
  max-width: 900px;
}

.category-group h2 {
  margin-top: 0;
  font-size: 2rem;
  border-bottom: 1px solid #999;
  padding-bottom: 0.5rem;
  text-align: center;
  background-color: #2C84C4;
   box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.restoration-icon img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
}

.restoration span {
  font-size: 1.5rem;
  text-align: left;
}

.cardlist-link {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.cardlist-link a {
  color: #2222ff;
  text-decoration: underline;
}