#block-metalpartsfooter .footer-menu .block {
    margin-bottom: 0 !important;
}
.path-frontpage .content_layout {
	text-align: unset;	
}

/*START front page factory img with text*/
.factory {
  display: flex;
  flex-direction: row;
  align-items: center; /* Ensures vertical alignment is centered for all children */
}
.factory-text h2 {
    padding: 0;
}

.factory > div {
  margin: 10px;
  padding: 2vh;
}

.factory:nth-child(2n) {
  flex-direction: row-reverse;
}

.reverse-row {
  flex-direction: row-reverse;
}

.factory-image {
  flex-shrink: 0; /* Prevents the image container from shrinking */
  overflow: hidden; /* Ensures no part of the image spills out */
  width: 40%; /* Sets width to 100% of its parent which is .factory div */
}

.factory-image img {
  width: 100%; /* Ensures image width is responsive and adapts to the container */
  height: auto; /* Maintains aspect ratio */
  max-height: 200px;
  object-fit: cover; /* Covers the area without distorting aspect ratio */
  border-radius: 7px;
  transition: transform 0.2s ease;
}

.factory-image img:hover {
  transform: scale(1.1);
}

.factory-image a:hover {
  opacity: 0.6;
  cursor: pointer;
}

.factory-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1; /* Takes up remaining space in .factory */
}

.factory-text h2 {
  color: #ffbe01;
}

.factory-text a {
  color: black;
  text-decoration: none;
}

.factory-text a:hover {
  opacity: 0.6;
}

@media (max-width: 425px) {
  .factory {
    flex-direction: column;
  }
  .factory-image, .factory-text {
    width: 100%; /* Ensures full width on small screens */
    max-width: 100%; /* Prevents any overflow */
    padding: 0; /* Removes padding for full-width usage */
    margin: 10px 0; /* Adds vertical spacing only */
  }
}

/*END front page factory img with text*/

.views-element-container > .front {
    display: none;
}

.slider-caption {
	display: none!important;
}

@media (min-width: 1200px) {
	.flexslider .slides img {
	    max-width: 100%;
	    height: auto;
	    object-fit: cover;
	    width: 100%;
	    max-height: 700px;
	    min-height: 700px;
	}
}

@media (min-width: 992px) {
	.flexslider .slides img {
	    max-width: 100%;
	    height: auto;
	    object-fit: cover;
	    width: 100%;
	    max-height: 550px;
	    min-height: 550px;
	}
}

@media (max-width: 768px) {
	.flexslider .slides img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    width: 100%;
    max-height: 300px;
    min-height: 300px;
	}
}


.uvod-misto {
	/*background-color: #FAFAFA;*/
	border-radius: 7px;
	padding: 14px;
}

.uvod-misto h4{
	opacity: 0.7;
}

/*ANIMATION*/
/*
.uvod-misto {
  opacity: 0;                 
  transition: opacity 2s;  
  visibility: hidden;         
}

.uvod-misto.visible {
  opacity: 1;
  visibility: visible;
}
*/
/*END ANIMATION*/

.uvod-misto img{
	border-radius: 4px;
	margin: 10px;
	object-fit: fill;
	transition: transform 0.2s ease;
}

.uvod-misto img:hover {
	transform: scale(1.1);
  transition: transform 0.2s ease;
}

.uvod-misto h1, h2, h3, h4, h5, p{
	padding: 5px;
}

.uvod-misto h2 {
		font-size: 2.3em;
		color: #6C757D;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.uvod-misto a {
	color: #002443;
}


.uvod-misto a:hover {
color: #6c757db5;
transition: color 0.3s ease
}

.uvod-tlacitko a{
		appearance: auto;
    color: #013e62;
    font-size: large;
    background-color: #013e623d;
    border-radius: 7px;
    padding: 0.4em;
}

.volna-pracovni-mista-tlacitko a:visited {
    text-decoration: none;
}

.path-frontpage .content_layout {
    width: 80%;
    max-width: 80%;
}

/*TEST FRONT FULLSCREEN*/

/*END TEST FULLSCREEN*/


@media (max-width: 768px) {
	.path-frontpage .content_layout {
    width: 100%;
    max-width: 100%;
	}
	
	.uvod-misto img{
		margin: 0;
		float: none;
	}
}

@media only screen and (max-width: 920px) {
  .uvod-misto > div {
      float: none !important; /* The !important is used to override any inline styles */
      margin: 0 auto;
      text-align: center; /* To center the content inside the divs */
      margin-left: 0px!important;
  }
}