* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Georgia', serif; font-variant-numeric: lining-nums tabular-nums;}

body { background: #d9d9d9; color: #333; }

header {
  position: sticky; top: 0; z-index: 50;
  background: #347879; color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px;
}
header .center { text-align: center; flex: 1; }
header nav a { color: #fff; font-size: 1.5rem; text-decoration: none; transition: color .3s; line-height: 1; }
header nav a:hover { color: #40e0d0; }

@media (max-width: 768px) {
  header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    text-align: center;
  }

  header .left, header .right {
    display: flex; align-items: center;
  }
  
  header .left  { justify-self: start; }
  header .right { justify-self: end; }
  header .center { text-align: center; }
  header nav a { font-size: 1.25rem; }
}

.about-me {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fff;
  display: flex;
  line-height: 1.7;
  gap: 2rem;
  font-size: 1.1em;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  position: relative;
  overflow: hidden;
}

.about-me::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: #347879;
}


.about-me img { max-width: 250px; height: auto; border-radius: 10px; }

@media (max-width: 768px) {
  .about-me {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: none;
    border-top: 5px solid #347879;
  }
  .about-me img { max-width: 180px; margin-bottom: 1rem; }
}

.divider { height: 2px; border: 0; background-color: #347879; }
.divider.wide { width: 90%; margin: 20px auto; }

.gallery-section {
    padding: 40px 20px;
    text-align: center;
    position: relative;
}
.gallery-section h2 { color: #347879; margin-bottom: 20px; font-size: 2rem; }

.masonry-wrapper {
    max-height: 500px;
    overflow: hidden;
    transition: max-height .5s ease;
}
.masonry-wrapper.expanded { max-height: 9999px; }

.masonry {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 10px; grid-auto-flow: row dense; gap: 1em;
  align-items: start; max-width: 90%; margin: 0 auto;
}

.gallery-item { break-inside: avoid; }
.gallery-item img { width: 100%; height: auto; border-radius: 10px; display: block; }

@media (max-width: 1024px) { .masonry { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); } }
@media (max-width: 768px)  { .masonry { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); } }
@media (max-width: 480px)  { .masonry { grid-template-columns: 1fr; } }

.studio {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fff;
  display: flex;
  align-items: center;
  line-height: 1.7;
  gap: 2rem;
  font-size: 1.1em;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.studio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: #347879;
}

.studio img {
  width: 250px;
  height: 250px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0; 

}

.studio-img img {
  max-width: 350px;
  max-height: 350px;
  height: auto;
  width: auto;
  object-fit: contain;

}

@media (max-width: 768px) {
  .studio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: none;
  }
  .studio img { max-width: 180px; margin-bottom: 1rem; }
}

.stockists {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fff;
  align-items: center;
  line-height: 1.7;
  gap: 2rem;
  font-size: 1.1em;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.stockists h2 { color: #000; font-size: 2rem; text-align: center; }
.stockists p { text-align: center; }

.stockists::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: #347879;
}

.stockist-entry {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 5%;
}

.stockist-entry img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.stockist-info h1 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  color: #000;
}

.stockist-info p {
  text-align: left;
  margin: 0;
}

.stockist-info a {
  color: #347879;
  text-decoration: none;
  font-weight: bold;
}

.stockist-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .stockist-entry {
    flex-direction: column;
    text-align: center;
  }

  .stockist-entry img {
    margin-bottom: 1rem;
  }
  
  .stockist-info p {
    text-align: center;
  }
}

.toggle-btn {
    margin: 15px 0;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #347879;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .3s ease;
}
.toggle-btn:hover { background: #2d7272; }

.masonry-wrapper.expanded + .toggle-btn {
    position: sticky;
    bottom: 10px;
    z-index: 10;
}

.lightbox {
  display: none; position: fixed; z-index: 999; inset: 0;
  background: rgba(0,0,0,.9); justify-content: center; align-items: center;
}
.lightbox img { max-width: 90%; max-height: 80%; border-radius: 10px; }

.lightbox .close, .lightbox .prev, .lightbox .next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  z-index: 1001;
}

.lightbox .close {
  top: 20px;
  right: 20px;
}

.lightbox .prev {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.lightbox .prev,
.lightbox .next {
  color: white;
  -webkit-text-stroke: 2px black;
  text-shadow: -1px -1px 0 #000,
               1px -1px 0 #000,
              -1px  1px 0 #000,
               1px  1px 0 #000;
}

.lightbox .next {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lightbox .prev,
  .lightbox .next {
    font-size: 2.5rem;
    padding: 14px;
  }
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 80%;
}

.lightbox img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
}

.lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  max-width: 80%;
}

footer { background: #347879; color: #fff; text-align: center; padding: 15px 10px; margin-top: 30px; }

.price-list { max-width: 1100px; margin: 0 auto; padding: 20px; }
.price-list h2 { text-align: center; color: #347879; font-size: 2rem; margin-bottom: 10px; }

.pill.note {
  display: inline-block; margin: 8px auto 24px; padding: 6px 12px; border-radius: 999px;
  background: #e7f3f3; color: #215d5e; font-size: 0.95rem;
}

.price-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px;
}
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  background: #ffffff; border-radius: 16px; padding: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.05);
  border: 1px solid rgba(52,120,121,.12);
}
.price-card h3 {
  color: #347879; font-size: 1.15rem; display: flex; gap: 8px; align-items: center; margin-bottom: 8px;
}

.price-items { list-style: none; }
.price-items li {
  display: flex; justify-content: space-between; gap: 6px;
  padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,.08);
}
.price-items li:last-child { border-bottom: none; }
.price-items span:last-child { font-weight: bold; }

.fineprint { margin-top: 6px; font-size: 0.85rem; color: #5a6a6a; }

.portrait-table {
  background: #ffffff; border-radius: 16px; padding: 16px;
  border: 1px solid rgba(52,120,121,.12);
  box-shadow: 0 6px 16px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.05);
}
.portrait-table h3 { color: #347879; margin-bottom: 10px; }

.portrait-table table {
  width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px; margin-bottom: 8px;
}
.portrait-table thead th {
  background: #347879; color: #fff; text-align: left; padding: 10px 12px; font-weight: normal;
}
.portrait-table tbody td, .portrait-table tfoot td { padding: 10px 12px; border-bottom: 1px solid #eee; }
.portrait-table tbody tr:nth-child(odd) { background: #f7fbfb; }
.portrait-table tfoot td { font-weight: bold; background: #f0f7f7; }

.bullet-notes { list-style: disc; margin-left: 18px; color: #475c5c; }
.bullet-notes li { margin: 6px 0; }

.muted { color: #5a6a6a; }
.tnc { margin-top: 12px; font-style: italic; }

.contact-wrap {
  max-width: 1100px;
  margin: 10px auto 40px;
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(52,120,121,.15);
  box-shadow: 0 8px 20px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.05);
}

.contact-header h2 {
  text-align: center;
  color: #347879;
  font-size: 2rem;
  margin-bottom: 6px;
}

.contact-header .muted {
  text-align: center;
  margin-bottom: 16px;
}

.contact-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0 16px;
  font-size: 0.98rem;
}
.contact-alert.success {
  background: #e7f3f3;
  color: #215d5e;
  border: 1px solid rgba(52,120,121,.2);
}
.contact-alert.error {
  background: #fff1f1;
  color: #7a1d1d;
  border: 1px solid rgba(200,0,0,.15);
}
.contact-alert.error ul { margin: 8px 0 0 18px; }

.contact-form { display: block; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-field label {
  color: #347879;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  border: 1px solid rgba(52,120,121,.25);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: #347879;
  box-shadow: 0 0 0 3px rgba(52,120,121,.12);
}

.btn-primary {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: #347879;
  color: #fff;
  border: 1px solid rgba(52,120,121,.3);
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease, transform .02s ease-in-out;
}
.btn-primary:hover { background: #2d7272; }
.btn-primary:active { transform: translateY(1px); }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
