html {
  scroll-behavior: smooth;
}

body {
  background-color: #9ca383;
  font-family: "Questrial", sans-serif;
  font-size:22px;
/*  font-family: "Poiret One", sans-serif; 
  font-weight: 200;
  font-style: normal; */
}

video, img {
	max-width:100%;
}

.clear_bud1 {
	clear:both;
}

.clear_bud1.nincsgyerek {
	display:none;
}

header > div:last-child {
	/* background-image:url('csempek/fellap.jpg'); 
  background: linear-gradient(to right, #2e2e2e, #cccccc);*/
  background:#e4e4e4;
}

header > div:last-child p {
	font-weight:bold;
}

header .w3-display-topmiddle h1 {
	  font-family: "Poiret One", sans-serif;
  font-weight: 800;
}

.w3-display-bottommiddle h1, .w3-display-bottommiddle, h1 {
	font-family: "Questrial", sans-serif;
	  font-family: "Poiret One", sans-serif;
  font-weight: 200;
  font-style: normal;
  font-weight:bold;
}

.w3-content.tartalom {
	background:#ffffff63;
	padding:10px 30px 30px 30px;
	margin-top:20px;
}

.w3-content.nincsgyerek {
	width:79.9999999%;
	float:right;
	margin-top:0;
}

.w3-panel.cikkben {
    margin: 0;
    padding: 0;
    margin: 8px 0px;
}

.w3-panel.cikkben .w3-button {
	padding:4px 9px;
}

.cimpcsempe {
	margin-top:0;
}

.h1cim {
	display:flex;
}

.w3-content .tartalom h1 {
margin:10px auto 10px auto;
  position: relative;
  font-size: 39px;
}

.w3-content .tartalom h2 {
	  font-family: "Poiret One", sans-serif;
}

.cimcsempe {
  margin-top:0!important;
}

.cimcsempe.ragad {
	margin-top:20px!important;
  position: fixed;
  top: 0;
  z-index: 1000;
}


.tartalom h1::after {
  content:'';
    position: absolute;
  top: 10px;
  right:-65px;
  width: 50px;
  height: 50px;
  background-image: url('https://budairezidenciaeladas.hu/wordpress/wp-content/uploads/2025/07/madar.png');
  background-size: 40px 40px;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.tartalom h1::before {
  content:'';
    position: absolute;
  top: 10px;
  left:-65px;
  width: 50px;
  height: 50px;
  background-image: url('https://budairezidenciaeladas.hu/wordpress/wp-content/uploads/2025/07/madar.png');
  background-size: 40px 40px;
  background-repeat: no-repeat;
  opacity: 0.8;
    transform: scaleX(-1);

}


.w3-content.tartalom h3 {
	font-weight:bold;
	color:darkred;
}

.w3-display-bottommiddle, .w3-display-topmiddle {
	width:100%;
	text-align:center;	
}

.w3-display-bottommiddle {
	font-size:21px;
	    white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w3-display-left {
	padding:0 10px;
	font-size:17px;
}

.w3-display-bottommiddle.w3-white {
  background-color: rgba(255, 255, 255, 0.75)!important; /* 20% átlátszóságú fehér */
}

header .w3-display-bottommiddle, header .w3-display-topmiddle {
	text-transform:uppercase;
  background-color: rgba(255, 255, 255, 0.75); /* 20% átlátszóságú fehér */
}


@media (min-width:993px) {

header {
	display:flex;
  column-gap: 20px;
      align-items: stretch; /* Ez húzza ki az elemeket egyforma magasságra */
}

header > div:first-child {
      flex: 3;
}

header > div:last-child {
      flex: 1;
}

	.clear_bud {
		clear:both;
	}

}

.w3-col {
	cursor:pointer;
}


.w3-col  IMG {
	/*  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); */

}

            .overlay {
            position: fixed;
            top: 10%;
            left: 10%;
            width: 80%;
            height: 80%;
            background: rgba(0, 0, 0, 0.9);
            color: white;
            display: none;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 20px;
            box-sizing: border-box;
            z-index: 1000;
        }
		
		        .overlay-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.5);
            display: none;
            z-index: 999;
        }
		
        .overlay-content {
            max-height: 100%;
            overflow-y: auto;
        }
        .close-btn {
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 30px;
            cursor: pointer;
        }
		.tartalomVan:hover {
			cursor:pointer;
		}
		
ul {
    list-style-position: inside;
    text-align: left;
    padding: 0;
}

ul li {
    display: list-item;
}

	
	.wp-block-gallery {
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  width: 100%;
    margin-bottom: 25px;
}
	
	

	.NEM-KELL-wp-block-gallery:first-of-type::before {
		content:'Kattintson a képekre a teljes képernyős nézethez!';
		display:block;
		text-align:center;
		font-size:17px;
		margin-bottom:0;
		font-style:italic;
		width:100%;
	}

	
.wp-block-gallery figure {
		padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  width: calc(50% - 13px);
  aspect-ratio: 16 / 9;

	}

		
.wp-block-gallery figure:nth-of-type(3),.wp-block-gallery figure:nth-of-type(4),
.wp-block-gallery figure:nth-of-type(5),
.wp-block-gallery figure:nth-of-type(13),.wp-block-gallery figure:nth-of-type(14),
.wp-block-gallery figure:nth-of-type(15) {
  width: calc(33% - 15px);
  aspect-ratio: 16 / 9;

	}

		
.wp-block-gallery figure:nth-of-type(8),
.wp-block-gallery figure:nth-of-type(9),
.wp-block-gallery figure:nth-of-type(10) {
  width: calc(33% - 15px);
  aspect-ratio: 9 / 16;

	}
	
	.wp-block-gallery figure:nth-of-type(18) {
  width: calc(100%);
  aspect-ratio: 16 / 9;

	}
	
	
	
	.wp-block-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

    .wp-block-image img {
      max-width: 100%;
      height: auto;
      cursor: pointer;
      transition: transform 0.2s ease;
    }


/*
    .lightbox {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.9);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
	
	*/
	
	
		.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}


    .lightbox img {
      max-width: 90vw;
      max-height: 90vh;
      box-shadow: 0 0 20px #000;
	  cursor:pointer;
    }

    .lightbox.active {
      display: flex;
    }
	
	 .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
    padding: 10px;
  }
  .nav-arrow.left { left: 20px; }
  .nav-arrow.right { right: 20px; }
  
    .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
  }
  
  
    .thumbnail-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    max-width: 90vw;
    overflow-x: auto;
  }
  .thumbnail-bar img {
    width: 65px;
    height: 65px;
    object-fit: cover;
	cursor:pointer;
  }
  
  
    .flags {
	width:30%;
	margin-top:10px;
  }
  .flags a img {
	overflow:hidden;
    width: 30px;
    height: 30px;
	margin-right:10px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
	float:left;
  }