/* ---- Comment media layout: hero + thumbs ---- */
.tgs-comment-media {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.tgs-comment-media a.tgs-lightbox-link {
  display: block;
  text-decoration: none;
}

/* HERO full width */
.tgs-comment-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Thumbs grid */
.tgs-comment-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .tgs-comment-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

.tgs-comment-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

/* ---- Lightbox ---- */
#tgs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}
#tgs-lightbox.is-open { display: block; }

.tgs-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.tgs-lightbox-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

/* Image */
.tgs-lightbox-img {
  max-width: min(1400px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
}

/* Close */
.tgs-lightbox-close {
  position: fixed;
  top: 12px;
  right: 14px;
  font-size: 34px;
  line-height: 1;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

/* Counter */
.tgs-lightbox-counter {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.35);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Lock scroll */
html.tgs-lightbox-open,
html.tgs-lightbox-open body {
  overflow: hidden;
}

/* neutralize plugin defaults */
.tgs-lightbox-nav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* remove default arrow content completely */
.tgs-lightbox-prev::before,
.tgs-lightbox-prev::after,
.tgs-lightbox-next::before,
.tgs-lightbox-next::after {
  display: none !important;
  content: none !important;
}

/* remove any text inside buttons */
.tgs-lightbox-prev,
.tgs-lightbox-next {
  font-size: 0 !important;
  color: transparent !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
}

/* Place buttons INSIDE the inner overlay */
.tgs-lightbox-inner .tgs-lightbox-prev,
.tgs-lightbox-inner .tgs-lightbox-next {
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 52px;
  height: 52px;

  border: none !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* spacing */
.tgs-lightbox-inner .tgs-lightbox-prev { left: 18px; }
.tgs-lightbox-inner .tgs-lightbox-next { right: 18px; }

/* Your SVGs */
.tgs-lightbox-prev {
  background-image: url("https://staging.surfweer.nl/wp-content/uploads/2026/01/yellow-arrow-left.svg") !important;
}

.tgs-lightbox-prev:hover {
  background-image: url("https://staging.surfweer.nl/wp-content/uploads/2026/03/left-blue.svg") !important;
}

.tgs-lightbox-next {
  background-image: url("https://staging.surfweer.nl/wp-content/uploads/2026/01/yellow-arrow-right.svg") !important;
}

.tgs-lightbox-next:hover {
  background-image: url("https://staging.surfweer.nl/wp-content/uploads/2026/01/Group-1995.svg") !important;
}

/* Hover/active polish */
@media (hover: hover) {
  .tgs-lightbox-inner .tgs-lightbox-prev:hover,
  .tgs-lightbox-inner .tgs-lightbox-next:hover {
    filter: drop-shadow(0 0 12px rgba(255, 255, 0, 0.35));
    transform: translateY(-50%) scale(1.05);
  }
}

.tgs-lightbox-inner .tgs-lightbox-prev:active,
.tgs-lightbox-inner .tgs-lightbox-next:active {
  transform: translateY(-50%) scale(0.98);
}

/* Mobile: give a bit more room */
@media (max-width: 480px) {
  .tgs-lightbox-inner .tgs-lightbox-prev,
  .tgs-lightbox-inner .tgs-lightbox-next {
    width: 46px;
    height: 46px;
  }
  .tgs-lightbox-inner .tgs-lightbox-prev { left: 10px; }
  .tgs-lightbox-inner .tgs-lightbox-next { right: 10px; }
}

/* Optional: make the hero look cleaner in the comment stream */
.tgs-comment-hero,
.tgs-comment-thumb {
  background: rgba(255,255,255,0.04);
}

/* --- Upload preview spacing + upload button alignment --- */
.tgs-upload-preview {
  margin-top: 24px;
}

.lp-upload {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Upload preview grid ---- */
.tgs-upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tgs-upload-warning {
  margin-bottom: 8px;
  font-size: 13px;
  opacity: 0.9;
}

.tgs-upload-item {
  position: relative;
  width: 50px;
  height: 50px;
}

.tgs-upload-thumb {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
}

.tgs-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Red X (no box), top right */
.tgs-upload-remove {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;

  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;

  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;

  color: #d40000 !important;
  text-shadow: none !important;

  cursor: pointer !important;
  opacity: 0.95;
}

@media (hover: hover) {
  .tgs-upload-item:hover .tgs-upload-remove { opacity: 1; }
}

/* (optioneel) highlight nieuw geplaatste reactie */
.tgs-new-comment {
  outline: 2px solid rgba(255,255,0,0.25);
  border-radius: 12px;
}

#respond .form-submit{
display:flex;
gap:10px;
align-items:center;
}

/* Reply buttons container */
#respond .form-submit{
display:flex;
gap:10px;
align-items:center;
margin-top:12px;
}

/* Plaatsen knop */
#respond .form-submit input[type="submit"]{
background:#fff;
color:#000;
border:none;
padding:10px 16px;
border-radius:6px;
cursor:pointer;
transition:all .2s ease;
}

/* Annuleren knop */
#respond .tgs-cancel-btn{
background:#fff;
color:#000;
border:none;
padding:10px 16px;
border-radius:6px;
cursor:pointer;
text-decoration:none;
display:inline-block;
transition:all .2s ease;
}

/* Hover voor beide knoppen */
#respond .form-submit input[type="submit"]:hover,
#respond .tgs-cancel-btn:hover{
background:#000;
color:#fff;
}

/* Focus states (accessibility) */
#respond .form-submit input[type="submit"]:focus,
#respond .tgs-cancel-btn:focus{
outline:none;
box-shadow:0 0 0 2px rgba(0,0,0,0.2);
}

/* Plaatsen knop hoofdformulier */
.lp-submit{
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #dcdcdc !important;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px !important;
    border-radius: 5px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    font-weight: 300;
    letter-spacing: 0.05em;
    white-space: nowrap;
    height: 50px;
    width: auto !important;
}

.lp-submit::after {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background-image: url("https://staging.surfweer.nl/wp-content/uploads/2026/01/blue-right-arrow.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lp-submit:hover {
    background-color: #b5e7ff !important;
}

.lp-submit:hover::after {
    background-image: url("https://staging.surfweer.nl/wp-content/uploads/2026/01/yellow-arrow-right.svg");
}

.tgs-lightbox-close {
    background-image: url("https://staging.surfweer.nl/wp-content/uploads/2026/03/close.svg");
    background-color: transparent !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0 !important;
}
/* Standaard */
.lp-upload{
    border-radius: 5px;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    font-weight: 300 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em !important;
    height: 50px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}

/* Hover */
.lp-upload:hover{
background:#b5e7ff;
color:black;
}

.lp-comment-form textarea {
    width: 100%;
    height: 207px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 20px;
    font-size: 16px;
    font-family: 'Urbanist';
}

.lp-fields input[type="text"] {
    flex: 1;
    min-width: 120px;
    border-radius: 5px;
    padding: 0 14px;
    border: 1px solid #dcdcdc;
    font-family: 'Urbanist';
    font-size: 16px;
    height: 50px;
    box-sizing: border-box;
}

.comment-body {
	border-radius: 5px;
}

.comment-author {
    font-family: 'Urbanist';
	text-transform: none;
}	

.comment-metadata {
	    font-family: 'Space Grotesk';
	text-transform: uppercase;
	font-size: 12px;
}

.reply a {
	font-family: 'Space Grotesk', sans-serif !important;
	font-size: 13px !important;
	font-weight: 300 !important;
	letter-spacing: 0.05em !important;
	display: inline-block;
	padding: 0px;
	margin: 0px;
	min-height: 44px;
	line-height: 44px;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(0,0,0,0.1);
	user-select: none;
	-webkit-user-select: none;
}


/* Verberg het standaard WordPress formulier, wordt alleen getoond bij reply via JS */
#respond {
    display: none;
}

.tgs-reply-indicator {
    margin-top: 24px;
}

/* Reply form font consistency */
#respond input[type="text"],
#respond textarea {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

#respond input[type="submit"],
#respond button {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 300;
}

#respond label {
    font-family: 'Urbanist', sans-serif;
}

/* Minder margin onder reply indicator */
.tgs-reply-indicator {
    margin-bottom: 8px;
}

/* Mobile layout: naam veld full width, buttons eronder */
@media (max-width: 600px) {
    .lp-fields {
        flex-wrap: wrap;
    }
    .lp-fields input[type="text"] {
        width: 100%;
        flex: 0 0 100%;
    }
    .lp-upload,
    .lp-submit {
        flex: 1;
    }
}

/* Inline foutmelding onder het formulier */
.tgs-form-error {
    display: none;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 5px;
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Voorkom dat lange URLs uit het comment block lopen */
.comment-content,
.comment-content p,
.comment-content a {
    overflow-wrap: break-word;
    word-break: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

/* ---- Admin author: klikbare naam + (official) badge ---- */
.tgs-author-link {
    text-decoration: none !important;
    color: inherit !important;
}

.tgs-author-link:hover {
    text-decoration: underline !important;
}

.tgs-official-badge {
    display: inline-block;
    font-size: 0.7em;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #0077cc;
    vertical-align: middle;
    margin-left: 2px;
    opacity: 0.85;
}