@font-face {
  font-family: 'LearningCurveRegular';
  src: url('../fonts/learning_curve_regular_ot_tt.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;

}@font-face {
  font-family: 'LearningCurveBold';
  src: url('../fonts/learning_curve_bold_ot_tt.ttf') format('truetype');
}

:root {
  --primary-color: rgb(0,64,104);
  --background-color: #f4fbff; /* ffeebd */
  --padding-10: 10px;
  --padding-section: 40px;
  --font-size-small: 14px;
  --font-size-medium: 16px;
  --font-size-large: 25px;
  --font-size-xl: 32px;
  --font-size-big: 35px;
  --font-size-xxl: 50px;
  --font-size-heading1: 5em;
  --font-size-heading-title: 33px;
}

* {
  padding: 0;
  margin: 0;
  font-family: sans-serif;
}

h1, h2, h3, h4, h5, h6, h1 span {
  font-family: 'LearningCurveRegular', sans-serif;
}
h1.bold, h2.bold, h3.bold, h4.bold, h5.bold, h6.bold, h1.bold span {
  font-family: 'LearningCurveBold', sans-serif;
}

section {
  width: 100%;
  padding-top: var(--padding-section);  
}

section:not(:last-child){  
  padding-bottom: var(--padding-section);
}

footer {
  padding: 30px;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  vertical-align: middle;
}

/* HEADER STYLE */
header {
  height: 100vh;
  /* height: 100dvh; */
  overflow: hidden;
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  animation: slide 30s infinite;
}

.slide {
  flex: 1 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

#mainBox {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  transition: none 0.3s ease-in-out; /* Smooth transition */
  animation: backing 30s infinite;
}


#mainBox h1 span {
  margin-bottom: 10px;
  font-size: 100px;
  animation: coloring 30s infinite;
}


@keyframes backing {
  0%, 50% { /* First image persists */
    backdrop-filter: none;
    background: transparent
  }
  66.67%, 83.33% { /* Third image persists */
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.3);
  }
  100% { /* Loop back to the first image */
    backdrop-filter: none;
    background: transparent
  }
}

@keyframes coloring {
  0%, 16.67% { /* First image persists */
    color: white;
    text-shadow: 5px 5px 8px rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) translateX(50px);
  }
  33.33%, 50% { /* Second image persists */
    color: rgb(208,166,15);
    text-shadow: 5px 5px 8px rgba(0, 0, 0, 0.7);
    translate: translate(-50%, -50%);
  }
  66.67%, 83.33% { /* Third image persists */
    color: rgb(0,64,104);
    text-shadow: 15px 15px 18px rgba(255, 255, 255, 1);
  }
  100% { /* Loop back to the first image */
    color: white;
    text-shadow: 5px 5px 8px rgba(0, 0, 0, 0.7);
  }
}

#mainBox h2 {
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}


.slide:nth-child(1) {
  background-image: url('../images/header3.jpg');
  background-position-y: 80%;
}
.slide:nth-child(2) {
  background-image: url('../images/header1.jpg');
  background-position-y: 30%;
}
.slide:nth-child(3) {
  background-image: url('../images/header2.jpg');
}


@keyframes slide {
  0%, 16.67% { /* First image persists */
    transform: translateX(0);
  }
  33.33%, 50% { /* Second image persists */
    transform: translateX(-100%);
  }
  66.67%, 83.33% { /* Third image persists */
    transform: translateX(-200%);
  }
  100% { /* Loop back to the first image */
    transform: translateX(0);
  }
}

nav {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

h1 span {
  font-size: var(--font-size-heading1);
  z-index: 10;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.heading{
  position: relative;
  display: inline-block;
  width: 100%;
  vertical-align: middle;
  text-align: center;
  box-sizing: border-box;
  padding-bottom: 40px;
}

.heading .title{
  display: block;
  text-transform: uppercase;
  font-size: var(--font-size-heading-title);
  line-height: 1.36em;
  font-weight: 300;
  letter-spacing: .095em;
}

.heading .title span:not(:last-child):after{
  content: '';
  position: relative;
  display: inline-block;
  vertical-align: middle;
  top: -2px;
  left: 4px;
  width: 4px;
  height: 4px;
  background-color: currentColor;
  border-radius: 50%;
}

/*---------------------------------------
  GALLERY              
-----------------------------------------*/
.gallery-thumb,
.people-thumb {
  margin-bottom: 24px;
}

.gallery-thumb-small {
  /* height: 100%; */
}

.gallery-thumb-small .gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb::after {
  content: '';
  position: absolute;
  top: 1%;
  left: 1%;
  width: 98%;
  height: 98%;
  border-radius: 2%; /* Keep the overlay circular */
  border: 2px solid white; /* Semi-transparent overlay */
  z-index: 1; /* Ensure it sits on top of the image */
  background-color: transparent;
  pointer-events: none;
}
/*---------------------------------------
  IMAGE HOVER               
-----------------------------------------*/
.image-hover-thumb {
  position: relative;
  overflow: hidden;    
  border-radius: 10px;
  transition: all 0.3s;
  scale: 1;
}

.image-hover-thumb:hover
{
  scale: 1.1;
  
  z-index: 100;
}

.image-hover-thumb .img-fluid {
  border-radius: var(--border-radius-small);
  display: block;
  transition: all 1s;
}

.rvsp_info{
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 9fr 4fr;
}

.rvsp_info .item{
  /* display: table-cell; */
  vertical-align: middle;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-color: var(--background-color);
}

.rvsp_info .st-text{
  color: #818491;
  text-align: justify;
  letter-spacing: .02em;
}

.flower{
  position: relative;
  overflow: visible; /* Prevent cropping of the pseudo-element */
}

.flower:after {
  content: ''; /* Required for pseudo-elements to render */
  position: absolute;
  width: 430px;
  height: 322px;
  background-image: url('../images/rev-flower-img.png');
  background-repeat: no-repeat;
  background-size: contain; /* Ensures the image scales proportionally */
  top: -60px;
  right: -245px;
  z-index: 10;
}

#rvsp .heading{
  margin-bottom: 10px;
}

#rvsp-form{
  position: relative;
  background-color: white;
}


.rvsp-holder {
  -webkit-box-shadow: 0 1px 10px 0 rgba(211, 222, 227, .7);
  -moz-box-shadow: 0 1px 10px 0 rgba(211, 222, 227, .7);
  box-shadow: 0 1px 10px 0 rgba(211, 222, 227, .7);
  box-sizing: border-box;
  padding: 30px 10% 30px;
  position: relative;
  background-color: #fff;
  margin-top:-50px; 
  margin-bottom: -50px
}

input, textarea{
  position: relative;
    width: 100%;
    margin: 0 0 30px;
    padding: 0;
    font-weight: inherit;
    line-height: calc(50px -(5px* 2) - 2px);
    color: #c78665;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e1e1e1;
    border-radius: 0;
    outline: 0;
    cursor: text;
    box-sizing: border-box;
    -webkit-transition: border-color .2s ease-in-out;
    -moz-transition: border-color .2s ease-in-out;
    transition: border-color .2s ease-in-out;
    font-family: LearningCurveRegular !important;
    font-size: var(--font-size-large) !important;
}

.form-check-input:checked{
  background-color: #c78665 !important;
  border-color: #c78665 !important;
}
.form-check-input:active, .form-check-input:focus{
  border: none !important;
  box-shadow: none !important;
}

.st-title-black {
  font-family: LearningCurveRegular;
  font-size: var(--font-size-large);
}

#rvsp-form .st-title {
  font-family: LearningCurveBold;
  color: #c78665;
  font-size: var(--font-size-xl);
}

#informace .st-text {
  
  text-align: justify;
}

#informace .st-title {
  font-family: LearningCurveBold;
  color: #c78665;
  font-size: var(--font-size-xl);
}

.polaroid {
  position: relative;
  width: 300px;
  -webkit-box-shadow: 3px 3px 3px #77777740;
  -moz-box-shadow: 3px 3px 3px #77777740;
       box-shadow: 3px 3px 3px #77777740;
}
 
.polaroid img {
  border: 10px solid #fff;
  border-bottom: 45px solid #fff;
  transition: all 0.3s;
  
}
.polaroid img:hover {
  transform: scale(1.5);
  
}

.polaroid-gallery {
  position: relative;
  /* width: 300px; */
  -webkit-box-shadow: 6px 6px 6px #77777740;
  -moz-box-shadow: 6px 6px 6px #77777740;
       box-shadow: 6px 6px 6px #77777740;
}

.polaroid-gallery img {
  border: 10px solid #fff;  
}
 
.polaroid p {
  position: absolute;
  text-align: center;
  width: 100%;
  bottom: -10px;
  font-family: LearningCurveRegular;
  font-size: var(--font-size-large);
  color: #888;
}

/* Masonry layout */
.info-cards {
  column-count: 3; /* 3 columns on large screens */
  column-gap: 1.1rem; /* Spacing between columns */
}

/* Ensure cards break naturally into the masonry layout */
.info-cards .card {
  display: inline-block;
  width: 100%; /* Ensures the card width is proper in columns */
  margin-bottom: 1rem; /* Adjust spacing between cards */
  border: none;
  overflow: hidden; 
  border-radius: 10px;

  img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .info-cards {
    column-count: 2; /* 2 columns on medium screens */
  }
}

@media (max-width: 768px) {
  .info-cards {
    column-count: 1; /* 1 column on small screens */
  }
}

/* Box shadow for better visual */
.shadow-custom {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}


.bestman-item{
  text-align: center;
    max-width: 600px;
    margin: auto;
}


.bestman-item img{    
  
  border-radius: 3%;
  width: 100%;
  height: 500px;
  object-fit: cover;
}



.event-item{
  text-align: center;
    max-width: 340px;
    margin: auto;
}


.event-item img{    
  
  border-radius: 10%;
  width: 90%;
}

.vc_empty_space{
  height: 30px;
}

/* MEDIA QUERIES */
@media screen and (max-width: 1200px) {

  .flower:after {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .heading
  {
    padding-bottom: 0px;
  }

  .vc_empty_space{
    display: none;
  }
  section{
    padding-top: 20px;
  }
  h1 span {
    font-size: 3em;
  }
  h2{
    font-size: 1.5em;
  }
  .rvsp_info {
    display: block !important;
    overflow-x: clip;

    margin-top: 20px !important;
  }
  .rvsp_info .item:nth-child(2){
    width: 100%; /* Set width for the first column */
    position: relative;
  }
  .rvsp_info .item:not(:nth-child(2)) {
    display: none !important;
  }

  .polaroid-gallery {
    max-width: 85%;
  }

  .popup-image:not(.mobile-show){
    display: none;
  }
  .popup-image.mobile-show{
    display: block;
    margin: 10px;

    .polaroid-gallery{
      transform: none !important;
      margin: auto;
    }
  }
  #rvsp .heading{
    margin-bottom: 40px;
  }
  
  section:not(:last-child){  
    padding-bottom: 20px;
  }

  .rvsp-holder{
    margin-bottom: 0px;
  }

  #mainBox {    
    width: 80%;
    padding: 10px;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  
  #mainBox h1 span {
    font-size: 50px;
  }
}
