.woocommerce-product-gallery__trigger {
	width:35px;
	height:35px;
	border-radius:50px;
	background-color:#e8c0c0;
	border:none;
	cursor:pointer;
}

.woocommerce-product-gallery__trigger img { 
	width:20px;
	height:auto;
}

/* Zichtbare focus */
.wc-thumb:focus,
.woocommerce-product-gallery__trigger:focus,
.wc-gallery-close:focus,
.wc-dialog-controls button:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Dialog basis */
.wc-gallery-dialog[hidden] { display: none; }
.wc-gallery-dialog {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  padding: 1rem;
  overflow: auto;
}
.wc-gallery-dialog__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.wc-gallery-close {
  font-size: 1.5rem;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.wc-gallery-figure {
  margin: 1rem 0;
  text-align: center;
}
.wc-gallery-figure img {
  max-width: 100%;
  height: auto;
}
.wc-dialog-controls {
  display: flex;
  gap: .5rem;
  justify-content: center;
}

/* Screenreader tekst (WordPress heeft dit vaak al) */
.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Close knop rechtsboven en groot klikvlak */
.wc-gallery-dialog { position: fixed; inset: 0; background: #fff; z-index: 9999; padding: 1rem; overflow: auto; }
.wc-gallery-dialog__inner { max-width: 1100px; margin: 0 auto; position: relative; }
.wc-gallery-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

/* Afbeelding moet binnen viewport passen */
.wc-gallery-figure { margin: 3rem 0 1rem; text-align: center; }
.wc-gallery-figure img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
}

/* Thumbs focus duidelijk zichtbaar en niet weggesneden */
.flex-control-thumbs { overflow: visible; }
.flex-control-thumbs li { overflow: visible; }
.wc-thumb { display: inline-block; border: 0; background: transparent; padding: 0; cursor: pointer; }
.wc-thumb:focus { outline: 2px solid #000; outline-offset: 2px; }
