body
{
  background: #222;
  font-family: sans-serif;
  color: #ccc;
}
button
{
  background: transparent;
  font-size: 1rem;
  border: solid 0.25rem #00A79D;
  border-radius: 1rem;
  padding: 0.5rem;
  color: #00a79d;
  margin: 0 0.5rem;
}
button:hover
{
  background: black;
  transition: all 0.7s ease-in-out;
}
#container
{
width: 100vw;
margin: 0 auto;
}
.darkbg
{
background: #000;
transition: 3s background;
}
#container .cell {
  margin: 0.25%;
}
#container .cell img:hover {
  opacity: 0.8;
  cursor: pointer;
}

/* Order Print button — revealed on thumbnail hover */
#container .cell {
  position: relative;
}
#container .cell-order {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  margin: 0;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-display, sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
  background: rgba(14, 14, 14, 0.8);
  border: 1px solid #00A79D;
  border-radius: 2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.4rem);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  z-index: 2;
}
#container .cell-order:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
/* Only reveal on real hover. Touch screens stay hidden (a tap would leave :hover
   stuck on); tapping a thumbnail opens the lightbox, which has its own Order Print. */
@media (hover: hover) {
  #container .cell:hover .cell-order {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  #container .cell-order:hover {
    background: #00A79D;
  }
}

/* CanvasPop store goes full-screen on phones, leaving its tiny "×" at the very top
   edge (under the notch/status bar) and scrolling away with the store. Pin a proper
   tap target to the viewport instead. Breakpoint matches CanvasPop's widget CSS. */
@media (max-width: 600px), (max-height: 600px) {
  #cp-store-root .cp-modal-x {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 0.6rem);
    right: calc(env(safe-area-inset-right, 0px) + 0.6rem);
    width: 44px;
    height: 44px;
    padding: 0;
    line-height: 42px;
    font-size: 28px;
    color: #fff;
    background: rgba(14, 14, 14, 0.8);
    border: 1px solid #00A79D;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000010;
    transform: translateZ(0);
  }
}

.dynamic-content {
    display:none;
}
@media only screen 
and (max-width : 767px) {
  
  /* 2 columns for phones */
  #container .cell .caption {
    margin: 5% 0 10%;
    font-size: 1.5rem;
    width: 100vw;
    text-align: center;
  }
 .cell
  {
    width: 49%;
  }
  .photo .small-image { display: block;width: 100%;margin: 0 -3%; }
  .photo.large .big-image { display: block;margin: 0 -4.5% }
  .cell .caption
  {
    width: 100vw;
  }
}

@media screen and (min-width: 768px) {
  /* 3 columns for larger screens */
  #container .cell .caption {
  margin: .5rem 0 10%;
  font-size: 1.5rem;
  text-align: center;
  color: #aaa;
  width: 100vw;
}
  .cell
  {
    width: 32.8%;
    max-width: 500px;
    margin: 0.25rem;
  }
  .photo { 
    width: 48.9%;
    float: left;
    border-radius: 1rem;
    }

.photo .small-image { display: block;width: 100%; }
}

.big-image
{
  width:100vw;
  height:80vh;
  transition: all 2s;
  z-index: 2;

}


.photo.large {
  width: auto;
  z-index: 3;
  clear: both;
}

.photo.large .small-image,
.photo .big-image { display: none; }

.photo.large .big-image { display: block; }

.photo img {
  display: block;
  max-width:100%;
  height:auto;
  max-height:100%;
  border-radius: 0.5rem;
  margin: 0 auto;
}

.photo .loading {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  background: hsla( 0, 0%, 100%, 0.7 );
}

.photo .loading span {
  position: absolute;
  left: 50%;
  top: 50%;
}

.photo .loading img {
  width: auto;
  position: absolute;
  left: -16px;
  top: -16px;
}

/* Start: Recommended Isotope styles */

/**** Isotope Filtering ****/

.isotope-item {
  z-index: 2;
}

.isotope-hidden.isotope-item {
  pointer-events: none;
  z-index: 1;
}

/**** Isotope CSS3 transitions ****/

.isotope,
.isotope .isotope-item {
  -webkit-transition-duration: 0.8s;
     -moz-transition-duration: 0.8s;
          transition-duration: 0.8s;
           transition: width 0.4s, height 0.4s;
}

.isotope {
  -webkit-transition-property: height, width;
     -moz-transition-property: height, width;
          transition-property: height, width;
}

.isotope .isotope-item {
  -webkit-transition-property: -webkit-transform, opacity;
     -moz-transition-property:    -moz-transform, opacity;
          transition-property:         transform, opacity;
}

/**** disabling Isotope CSS3 transitions ****/

.isotope.no-transition,
.isotope.no-transition .isotope-item,
.isotope .isotope-item.no-transition {
  -webkit-transition-duration: 0s;
     -moz-transition-duration: 0s;
          transition-duration: 0s;
}

/* End: Recommended Isotope styles */

/* ======================================================
   LIGHTBOX
   ====================================================== */

body.lb-open { overflow: hidden; }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
#lightbox.open {
  opacity: 1;
  visibility: visible;
}

#lb-inner {
  max-width: 1024px;
  width: 82vw;
  flex-shrink: 1;
}

#lb-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
#lb-img.loaded { opacity: 1; }

#lb-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.25rem 0;
  gap: 1rem;
}
#lb-title {
  color: #bbb;
  font-size: 0.9rem;
}
.lb-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* ── Close button ── */
#lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(25, 25, 25, 0.85);
  border: 1px solid #444;
  border-radius: 50%;
  color: #aaa;
  font-size: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, color 0.2s, background 0.2s;
  z-index: 10;
}
#lightbox.open #lb-close {
  opacity: 0.6;
  pointer-events: auto;
}
#lb-close:hover {
  opacity: 1 !important;
  color: #fff;
  background: #333;
  border-color: #555;
}

/* ── Prev / Next arrows ── */
#lb-prev,
#lb-next {
  background: rgba(25, 25, 25, 0.75);
  border: 1px solid #444;
  border-radius: 50%;
  color: #bbb;
  font-size: 1.9rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, color 0.2s, background 0.2s, border-color 0.2s;
}

/* Show arrows when hovering anywhere over the open lightbox */
#lightbox.open:hover #lb-prev:not(.lb-edge),
#lightbox.open:hover #lb-next:not(.lb-edge) {
  opacity: 1;
  pointer-events: auto;
}

#lb-prev:hover,
#lb-next:hover {
  color: #00A79D;
  border-color: #00A79D;
  background: rgba(0, 167, 157, 0.15);
}

/* At first/last photo — keep them invisible and non-clickable */
#lb-prev.lb-edge,
#lb-next.lb-edge {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 600px) {
  #lb-inner { width: 92vw; }
  #lb-prev, #lb-next { width: 2.4rem; height: 2.4rem; font-size: 1.5rem; }
  #lb-caption { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* CanvasPop modal close button: undo the site-wide button styling */
#cPopModalX {
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  color: #000;
  background: transparent;
}
