/**
 * Content thumbnails, sensitive images, and navigation controls.
 *
 * Loaded by inc/core.php.
 */

ul.images li.smalltxt div.description,
ul.images li.smalltxt div.description a{
	font-size: 12px;
    line-height: 20px;
}

ul.images{
    list-style:none;
	display: block;
}

ul.images li.image_thumb_wrapper{
    width:22%;
    margin:1%;
    height:380px;    
    float:left;
}

ul.images li.image_thumb_wrapper div.image_thumb{
    background-color:#8cb4ca !important;
    border:2px solid #317eb1;
    padding-top:12px;
    text-align:center;
    height:340px; 
	position:relative;
}
ul.images li.image_thumb_wrapper div.image_thumb div.image_wrapper,
div.image_wrapper{
	position:relative;
/*	
    min-height:170px;
*/
    min-height:250px;
	
}

ul.images li.image_thumb_wrapper div.image_thumb img{
    width:auto;
    max-width:90%;
    height:auto;
    max-height:250px;
	margin-left:auto;
	margin-right:auto;

}


/*======================
Hidden image classes
=======================*/

/* ================================
   Sensitive Image Overlay (scoped)
   Only affects: .image_thumb[data-sensitive="true"]
   ================================ */

/* Base layout for *sensitive* thumbs only */
.image_thumb[data-sensitive="true"] .image_wrapper {
  position: relative;
  overflow: hidden;           /* keeps overlay/vignette inside the image box */
  border-radius: 6px;         /* optional; match your theme or remove */
}

/* --- HARD CENSOR EFFECT (only while hidden) --- */
.image_thumb[data-sensitive="true"] .image_wrapper:not(.revealed) img {
  /* Do NOT change width/height here — preserves original size */
  filter: blur(20px) grayscale(1) brightness(.30) contrast(1.15);
}

/* Optional vignette for stronger censor look */
.image_thumb[data-sensitive="true"] .image_wrapper:not(.revealed)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 140px rgba(0,0,0,.6);
}

/* --- OVERLAY PANEL (warning message + eye) --- */
.image_thumb[data-sensitive="true"] .image_overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .5rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: inherit;

  /* Opaque veil + your blurred background */
  background:
    linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,.25)),
    url("../images/white-blurred-background.jpg") center/cover no-repeat;

  color: #fff;
  opacity: 1;
  transition: opacity .2s ease-in-out;
}

/* Fade overlay away after reveal */
.image_thumb[data-sensitive="true"] .image_wrapper.revealed .image_overlay {
  opacity: 0;
  pointer-events: none;
}

/* Eye icon + texts (scoped) */
.image_thumb[data-sensitive="true"] .image_overlay .eye {
  width: 44px;
  height: 44px;
  display: inline-block;
}
.image_thumb[data-sensitive="true"] .image_overlay .msg {
  font: 700 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.image_thumb[data-sensitive="true"] .image_overlay .hint {
  font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  opacity: .95;
}

/* Keyboard focus ring for accessibility */
.image_thumb[data-sensitive="true"] .image_overlay:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .image_thumb[data-sensitive="true"] .image_overlay {
    transition: none;
  }
}


/*======================
End hidden image classes
=======================*/


ul.images li.image_thumb_wrapper div.title,
ul.images li.image_thumb_wrapper  div.description,
ul.images li.image_thumb_wrapper div.title a,
ul.images li.image_thumb_wrapper  div.description a
{
    background-color:#317eb1 !important;
    color:#fff;
    text-align:center;
    vertical-align:bottom;
}

div.titledescwrapper{
	position:absolute;
	bottom:5px;
	width:100%;
}

div.readmore,
div.readmore2{
	display:block;
/*
	background-color:#b15e31;
*/
	background-color:#ee7600;

	font-weight:bold;
	color:#fff;
	padding:2px;
	line-height:20px;
	padding:5px 10px;
	z-index:999;
}
div.readmore{
	position:absolute;
	right:0;
}
div.readmoreback{
	bottom:0 !important;
}
div.backto{
	display:inline-block;
	width:auto;
/*
	background-color:#b15e31;
*/
	background-color:#ee7600;
	font-weight:bold;
	padding:2px;
	line-height:20px;
	padding:5px 10px;
	
	width:300px !important;
}

div.backto a{
	color:#fff;	
}

/* Flip cards */

.flip-card {
	width: 300px;
	height: 326px;
	border: 3px solid #f1f1f1;
	background-color: transparent;
	perspective: 1000px;
}

.flip-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 0.8s;
	transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
	transform: rotateY(180deg);
}

.flip-card:hover .readmorefront,
.flip-card:focus .readmorefront {
	display: none;
}

.flip-card-front,
.flip-card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.flip-card-front {
	color: black;
	background-color: #bbb;
}

.flip-card-back {
	padding: 15px;
	border: 3px solid #ee7600;
	color: white;
	background-color: #317eb1;
	transform: rotateY(180deg);
}
