/*
--terracotta:      #c0622a;
--terracotta-light:#e8906a;
into: 
--modal-primary:   #4a6274;
--modal-dark:      #3a5060;
*/
 
/* Style for (Modal) */
.popupable_img {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
.popupable_img:hover {
    transform: scale(1.08); 
	box-shadow: 0 3px 3px rgba(44, 36, 22, 0.4);
}
#myImg2 {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

#myImg2:hover {opacity: 0.7;}

/* The Modal (background) */
.img_modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 20px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    /* height: 100%;  Full height */
    overflow: auto; /* Enable scroll if needed */
    /* background-color: lightgray; Fallback color */
    background-color: transparent; /* Black w/ opacity */
}
/* Modal Content (Image) */
.img_modal-content {
	position: relative;	/* */
	background-color: white;	/* */
	margin: auto;
	display: block;
	padding: 15px;	/* */
	border: 2px solid silver;	/* */
	width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}
.dayphoto {
	width: 98%;
}
.img_modal-content-vertical {
	position: relative;	/* */
	background-color: white;	/* */
	margin: auto;
	display: block;
	padding: 15px;	/* */
	border: 2px solid silver;	/* */
	width: 50%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.img_modal-content, .img_modal-content-vertical, #caption { 
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.5s;
    animation-name: zoom;
    animation-duration: 0.5s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top: -300px; opacity: 0} 
    to {top: 0; opacity: 1}
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* The Close Button 
    color: #f1f1f1;
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #808080;
    font-size: 33px;
    font-weight: bold;
    transition: 0.3s;
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
*/

.popup_row {
	margin: 8px 10px 8px 10px;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 650px){
    .modal-content {
        width: 100%;
    }
}
@media only screen and (max-width: 641px){
	.img_modal-content-vertical {
		padding: 5px;	/* 15px */
		border: 1px solid silver;	/* 2px */
		width: 96%;	/* 50% */
	}
	.img_modal-content {
		padding: 5px;	/* 15px */
		border: 1px solid silver;	/* 2px */
		width: 98%;	/* 50% */
	}
}











/* ─── OVERLAY ───────────────────────────── 
  position: fixed;
  inset: 0;
  ────────────────── */
.popup_modal {
  display: none; 
  position: absolute;
  top: 135px; 
  left: 0; 
  right: 0;
  background: rgba(30, 18, 8, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeOverlay 0.2s ease;
}
.popup_modal.open {
  display: flex;
}
@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── MODAL CONTENT BOX ───────────────────────────────────── */
.popup_modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
/* ─── HEADER ──────────────────────────────────────────────── */
.modal-header {
  background: linear-gradient(135deg, #4a6274 0%, #3a5060 100%);
  padding: 1.1rem 1.4rem 1rem;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.modal-header-icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
}
.modal-header-icon svg { display: block; }

.modal-header-text { flex: 1; min-width: 0; }
.modal-header-text .modal-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 2px;
}
#popup_header {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
#popup_header u {
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 3px;
}

/* close button */
.close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(255,255,255,0.7);
  cursor: pointer; 
  transition: color 0.3s;
  user-select: none;
}
.close:hover { color: #fff; }

/* ─── FORM BODY ───────────────────────────────────────────── */
#popup_form,    
#popup_event,   
#vacancy_form {
  padding: 1.3rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#cl_images {
	font-size: 70% !important; 
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-field label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.09em; 
  color: #888;
  font-family: Verdana, sans-serif;
  font-weight: bold;
  /* 
  text-shadow: 0.5px 0.5px 1.4px rgb(22, 32, 70);
  */
}

/* shared input / textarea style */
.form-field input[type="text"],
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #e0d5cc;
  border-radius: 7px;
  padding: 0.55rem 0.75rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.8rem;
  color: #2c2c2c;
  background: #fdfaf7;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  resize: none;
}
.form-field input[type="text"]:focus,
.form-field textarea:focus {
  border-color: #4a6274;
  box-shadow: 0 0 0 3px rgba(74, 98, 116, 0.12);
  background: #fff; 
}
.form-field input[type="text"]::placeholder,
.form-field textarea::placeholder {
  color: #bbb;
  font-size: 0.78rem;
}
.form-field textarea {
  min-height: 90px;
  line-height: 1.5;
}

/* two-column row for phone + email */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* contact hint */
.contact-hint {
  font-size: 0.68rem;
  color: #aaa;
  margin-top: -0.5rem;
  line-height: 1.4;
}

/* ─── SUBMIT BUTTON ───────────────────────────────────────── */
.form-submit-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.2rem;
}
#popup_form button[type="button"], 
#popup_event button[type="button"], 
#vacancy_form button[type="button"] {
  background: #4a6274;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.6rem 1.6rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer; 
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.18s, transform 0.12s;
}
#popup_form button[type="button"]:hover, 
#vacancy_form button[type="button"]:hover {
  background: #3a5060;  
  transform: translateY(-1px);
}
#popup_form button[type="button"]:active, 
#vacancy_form button[type="button"]:active {
  transform: translateY(0);
}

/* ─── DIVIDER ─────────────────────────────────────────────── */
.form-divider {
  border: none;
  border-top: 1px solid #f0e8e0;
  margin: 0;
}

/* ─── PRIVACY NOTE ────────────────────────────────────────── */
.privacy-note {
  font-size: 0.65rem;
  color: #bbb;
  line-height: 1.5;
  text-align: center;
  padding: 0 1.4rem 1.1rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .popup_modal-content { border-radius: 10px; }
}




