* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
   background-color: #f7f7f7;
   font-family: 'Special Elite', 'Courier New', monospace;
}

div#intro {
    margin: 1vh 2vw;
    font-size: 2vw;
}

div#zoomed {
    display:none;
    width:100vw;
    position:fixed;
    left: 0px;
    top:52px;
    height: 94vh;
    background-color:white;
}

div#filter {
    width: 100%;
    height: 6vh;
    padding: 1vh;
}

.gallery {
    column-count: 2;
    column-gap: 1rem;
    padding: 1rem;
}

@media (orientation: landscape) and (min-width: 768px) {
    .gallery {
        column-count: 4;
    }
}

.art-piece {
    background-color: #fff;             /* brighter card background */
    border: 1px solid #eee;             /* softer border */
    border-radius: 0.75rem;             /* rounded corners */
    padding: 0.75rem;                   /* breathing room inside card */
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;

    /* subtle shadow to lift card off background */
    box-shadow: 0 2px 6px rgba(128,128,128,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.art-piece:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(128,128,128,0.15);
}

.art-image {
    position: relative;
    overflow: hidden;
}

.art-image img {
    position: relative;
    width: 100%;         /* ?? responsive */
    height: auto;        /* ?? maintain aspect ratio */
    display: block;
    max-width: 100%;     /* ?? never overflow */
    border-radius: 0.5rem;
    overflow:hidden;
}

.art-caption {
    margin-top: 0.5rem;
    text-align: center;
    word-wrap: break-word;
}

#zoomedHeader {
    width: 100%;
    height: 6.5vh;
    margin: 0px;
    background-color:#D0D0D0;
    padding: 0.5vw;
}

#zoomedClose {
    font-size: 4vh;
    float: right;
    font-weight: bold;
    margin-right: 1vh;
    cursor: pointer;
}

#zoomedTitle {
    font-size: 4vh;
    float: left;
    font-weight: bold;
    margin-left: 1vh;
}

#zoomedMainPic {
    flex: 1;
    backgruound-color:cyan;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 0.5rem;
}

#zoomedTally {
    width: 100%;
    height: 18%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

#zoomedNoTally {
    width: 50vw;
    height: 10vh;
}

#zoomedNav {
    width: 20vw;
    height: 9vh;

    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#zoomedMiddle {
    display: inline-block;
    width:10vw;
    height:9vh;
    margin: 0px;
    text-align: center;
    padding-top: 3.2vh;
}

#zoomedPrev {
    transform: scaleX(-1);
}

#zoomedPrev,
#zoomedNext {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 4vw;
  height: 9vh;
  font-size: 6vh;
  cursor: pointer;

  /* Rounded cue card look */
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);

  /* Smooth hover effect */
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#zoomedPrev:hover,
#zoomedNext:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  background: #f3f3f3;
}

#zoomedPrev:hover {
    transform: scaleX(-1.08);
}

#zoomedDetails {
    display: flex;
    flex-direction: column;
    background-color: #eee;
    width: 100%;
}

#zoomedSlideShow {
    background: #fff;                       /* white card background */
    border: 1px solid #ddd;                 /* soft border */
    border-radius: 0.75rem;                 /* rounded corners */
    margin: 0.25rem;                       /* inner spacing */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);  /* subtle shadow */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    margin-right: 0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

#zoomedMeta {
    gap: 2vh;             /* space between zones */
    border-left: 1px solid #ddd;

    width: 100%;
    flex: 0 0 auto;
    background: #fff;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centers vertically */
    align-items: center;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}



/* Landscape */
@media (min-aspect-ratio: 4/3) {
    #zoomedDetails {
        flex-direction: row;
        height: 85.5vh; /* let it size naturally */
    }

    #zoomedSlideShow,
    #zoomedMeta {
        flex: 1;
    }

    #zoomedSlideShow {
        margin-right: 0.0625rem;
        margin-bottom: 0.25rem;
        max-width: 70%;
        max-height: 100%;
    }

    #zoomedMeta {
        margin-left: 0.125rem;
        margin-top: 0.25rem;
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
        max-width: 30%;
        max-height: 100%;
    }

    #metaTop, #metaBottom {
        text-align: left;
    }

}

/* Portrait but with enough height = split 50/50 */
@media (max-aspect-ratio: 4/3) and (min-height: 700px) {
    #zoomedDetails {
        height: calc(100vh - 12vh); /* adjust for header+title bar */
    }

    #zoomedSlideShow {
        flex: 1;           /* split vertically */
        overflow-y: hidden;  /* allow scroll if content overflows */
        max-width: 100%;
        max-height: 60%;
        margin-bottom: 0.125rem;
        margin-right: 0.25rem;
        margin-left: 0.25rem;
    }

    #zoomedMeta {
        flex: 1;           /* split vertically */
        overflow-y: auto;  /* allow scroll if content overflows */
        margin-left: 0.25rem;
        margin-top: 0.125rem;
        margin-right: 0.25rem;
        margin-bottom: 1.25rem;
        max-width: 100%;
        max-height: 40%;
    }

    #metaTop, #metaBottom {
        text-align: center;
    }
}

/* ---------- Top Zone ---------- */
#metaTop h2 {
  font-size: 3vw;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.25rem;
}

#metaArtist {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
}

#metaMedium,
#metaDimensions,
#metaDescription,
#metaYear,
#metaEdition {
  font-size: 1.7vw;
  color: #555;
  line-height: 1.4;
  text-align: center;
}

.meta-price {
  font-size: 2vw;
  font-weight: 600;
  color: #3b3b3b;
  margin-top: 0.75rem;
}

.meta-shipping {
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.25rem;
}

#metaContact {
  margin-top: 1rem;
}

/* ---------- Contact Button ---------- */
#contactArtistBtn {
  padding: 0.6rem 1.2rem;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
#contactArtistBtn:hover {
  background: #666;
}

/* ---------- Default Button ---------- */

input[type="button"] {
  padding: 0.6rem 1.2rem;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
input[type="button"]:hover {
  background: #666;
}



/* ---------- Middle Zone ---------- */
#metaMiddle {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 0.8rem 0;
  font-size: 2vw;
  color: #555;
}

#metaMiddle > div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color 0.2s;
}
#metaMiddle > div:hover {
  color: #000;
}

/* ---------- Bottom Zone ---------- */
#metaBottom h3 {
  font-size: 2vw;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.25rem;
}

#metaBottom p {
  font-size: 2vw;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Arrange smaller contextual items side-by-side on large screens */
@media (min-width: 900px) {
  #metaBottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

.share-btn {
  padding: 0.5rem 1rem;
  background: #444;
  color: white;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.share-btn:hover {
  background: #666;
}

#about {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Landscape / wide layout */
@media (min-width: 768px) {
  #about {
    flex-direction: row;
  }

  .profile-image {
    flex: 0 0 30%;
    max-width: 30%;
    margin-right: 20px;
  }

  .profile-detail {
    flex: 1;
    max-width: 65%;
    font-size: 2vw;
  }
}

/* Portrait / narrow layout */
@media (max-width: 767px) {
  #about {
    flex-direction: column;
  }

  .profile-image {
    width: 80%;
    margin-bottom: 20px;
  }

  .profile-detail {
    width: 90%;
    font-size: 2.5vw;
  }
}

/* Image behavior */
.profile-image img {
  width: 100%;
  height: auto; /* preserve aspect ratio */
  object-fit: contain; /* ensure full image shows */
  display: block;
  border-radius: 12px; /* optional, for aesthetics */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

div#metaTitle {
  font-size: 3vw;
  text-align: center;
}

div#metaPrice {
    text-align:center;
    font-size: 2vw;
}

div#metaStatus {
    text-align:center;
    font-size: 2vw;
}

div#metaContact {
    text-align:center;
}

.notforsale {
    display: none;
}




/* Status tag (always visible) */
.status-tag {
  position: absolute;
  top: 16px;
  right: -28px;           /* pushes ribbon toward center */
  transform: rotate(45deg);
  transform-origin: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 4px 40px;
  background: rgba(200, 0, 0, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none;  /* clicks go through */
  user-select: none;
}

/* Variants by status */
.art-image.sold .status-tag {
  background: rgba(200, 0, 0, 0.9);
}

.art-image.showing .status-tag {
  background: rgba(0, 100, 255, 0.9);
  top: 25px;
  right: -35px;
}

.art-image.comingsoon .status-tag {
  background: rgba(139, 128, 0, 0.9);
  top: 25px;
  right: -35px;
}

.art-image.forsale .status-tag {
  background: rgba(00, 98, 66, 0.9);
  top: 25px;
  right: -35px;
}

.art-image.pending .status-tag {
  background: rgba(0, 0, 160, 0.9);
  top: 25px;
  right: -35px;
}

.art-image.private .status-tag {
  background: rgba(120, 120, 120, 0.9);
}

/* Fullscreen overlay */
#imageOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#imageOverlay img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  cursor: pointer;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 1000 !important;
}

/* Modal */
.contact-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 20px 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 80vw;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  z-index: 1001 !important;
}

.contact-modal h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.contact-modal label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

.contact-modal input,
.contact-modal textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-modal textarea {
  height: 120px;
}

.button-row {
  margin-top: 16px;
  text-align: right;
}

.button-row2 {
  display: block;
  grid-column: 1 / -1;
}

.btn {
  padding: 8px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: #3478f6;
  color: white;
}

.btn.secondary {
  background: #ddd;
}

#captchaContainer {
    grid-column: 1 / -1;
    width: 100%;
    display: block;
    margin: 1rem 0;        /* spacing above & below */
    text-align: center;    /* optional: center the captcha */
}

#captchaContainer .g-recaptcha {
    display: inline-block; /* keeps Google’s widget a normal size */
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}