/* Variables
-------------------------------------------------------------- */
:root {
	--background: #F9F9F9;
	--color-base: #4A4A4A;
	--color-highlight: #1A1A1A;
	--color-faint: #d5d0d0;
	--color-accent: #2546f0;
	
	--sans: 'Roboto', Helvetica;
	--serif: 'Roboto Serif', serif;
	--hebrew-font: "Noto Sans Hebrew", serif;
	
	--font-size: 1.1rem;
	--font-size-s: .8rem;
	--font-size-m: calc(1 * var(--font-size));	
	--font-size-l: calc(1.2 * var(--font-size));	
	--font-size-xl: calc(1.4 * var(--font-size));	
	--font-size-xxl: calc(3.4 * var(--font-size));	
	
	--line-height-base: 1.7rem;
	--line-height-s: calc(0.9 * var(--line-height-base));
	--line-height-m: calc(1.2 * var(--line-height-base));
	--line-height-l: calc(1.4 * var(--line-height-base));
	--line-height-xl: calc(1.6 * var(--line-height-base));	
	
	--spacing: 1.1em;
	--spacing-xs: calc(0.4 * var(--spacing));
	--spacing-s: calc(0.8 * var(--spacing));
	--spacing-sm: calc(1 * var(--spacing));
	--spacing-m: calc(1.1 * var(--spacing));
	--spacing-l: calc(1.4 * var(--spacing));
	--spacing-xl: calc(1.8 * var(--spacing));
	--spacing-xxl: calc(6 * var(--spacing));
	
	--max-width: 1200px;
	--max-width-l: 1200px;
}


/* Typography
-------------------------------------------------------------- */
h1 {
	font-family: var(--sans);
	font-size: var(--font-size-xl);
	margin: 0;
	padding: 0 auto;
	font-weight: 700;
	transition: background-color 0.5s, color 0.5s;
	line-height: var(--line-height-xl);
}

h2 {
	font-family: var(--sans);
	font-size: var(--font-size-l);
	margin: 0;
	padding: 0 auto;
	font-weight: 700;
	transition: background-color 0.5s, color 0.5s;
	line-height: var(--line-height-l);
}

h3 {
	font-family: var(--sans);
	font-size: var(--font-size-m);
	margin: 0 0 var(--spacing-s) 0;
	line-height: var(--line-height-s);
	padding: 0 auto;
	font-weight: 700;
	transition: background-color 0.5s, color 0.5s;
}

.gallery h3 {
	width: 100%;
	background: var(--color-highlight);
	text-align: center;
	padding-top: var(--spacing-s);
	padding-bottom: var(--spacing-s);
	color: var(--background);
	border: 1px solid var(--color-highlight);
}

.gallery-nav h3 {
	width: 100%;
	background: var(--color-highlight);
	text-align: center;
	padding-top: var(--spacing-s);
	padding-bottom: var(--spacing-s);
	color: var(--background);
	border: 1px solid var(--color-highlight);
}

p {
	font-family: var(--sans);
	line-height: var(--line-height-base);
	margin: 0 0 var(--spacing-s) 0;
	padding: auto 0;
}

a {	
	color: var(--color-accent);
	text-decoration: none;
}

a:hover {	
	color: var(--color-a);
}

a.selected {
	font-weight: 700;
	color: var(--color-highlight);
}

h1 a {
	color: var(--color-highlight);
}

.strong {
	font-weight: 700;
	transition: background-color 0.5s, color 0.5s;
}



/* Page layout
-------------------------------------------------------------- */
body {
	font-family: var(--sans);
	font-size: var(--font-size);
	line-height: var(--line-height-base);
	margin: 0 auto;
	font-weight: 400;
	background-color: #FAF8F4; 
}

header {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--spacing-sm) 0 var(--spacing-sm) 0;
}

.info-section header{
	border-bottom: 1px solid var(--color-faint);
	margin-bottom: var(--spacing-xl);
}

section {
	margin: 0 auto;
	padding: 0 0 var(--spacing-xl) 0;
	max-width: var(--max-width);
	width: 100%;
}

section.grid-image {
	margin: 0 auto;
	padding: 0 auto;
	max-width: var(--max-width-l);
}

footer {
	max-width: var(--max-width);
	width: 100%;
	margin: 0 auto;
	padding: 0 0  var(--spacing-xl) 0;
}

.grid-left {
	display: grid;
	width: 100%;
	grid-template-columns: 30% auto;
	grid-gap: 32px;
	align-items: flex-start;
	padding-bottom: var(--spacing-s);
}

.grid-half {
	display: grid;
	grid-template-columns: auto auto;
	grid-gap: 0px;
	align-items: center;
	justify-content: space-between;
}

.nav-right {
	text-align: right;
}

img {
  max-width: 100%;
  display: block;
}

.contact-details {
	background-color: #e5e2dc;
	padding: var(--spacing-m);	
}

.contact-details p {
	margin: 0 0 0 0;
}

.contact-details img {
	margin-bottom: var(--spacing-s);
}

.gallery {
  column-count: 3; /* Adjust the number of columns */
  column-gap: 10px; /* Space between columns */
  padding: 0;
}

.gallery-item {
  break-inside: avoid; /* Prevent breaking items across columns */
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 5px; /* Optional rounded corners */
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 5px; /* Matches the container */
}

.homescreen-img .gallery img, .homescreen-img .gallery-nav img  {
	margin-bottom: 0;
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border: 1px solid black
}


.gallery-nav {
  display: grid;
	grid-template-columns: repeat(3, 1fr); /* Three equal columns */
	gap: 10px; /* Space between rows and columns */
	padding: 10px;
}

.toggle-bar {
	border-top: 1px solid var(--color-faint);
	border-bottom: 1px solid var(--color-faint);
	padding: var(--spacing-s) 0 var(--spacing-s) 0;
}

ul p {
	margin: 0 auto;
}

ul {
	margin: 0;
	padding: 0;
}

li {
	margin: 0;
	padding: 0;
}


.last {
	margin: 0px;
	padding: 0px; 
}

.main-navigation ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}

.main-navigation li {
	display: inline;
	padding: 0 var(--spacing-s) 0 0 ;
	margin: 0px;
}

.main-navigation li.last {
	padding: 0 0 0 0;
}

.main-navigation li a{
	font-family: var(--sans);
	font-size: var(--font-size-s);
	margin: 0px;
}

.right {
	text-align: right;
}

.center {
	text-align: center;
}


/* Lightbox
-------------------------------------------------------------- */

.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.lightbox img {
	max-width: 90%;
	max-height: 90%;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
	border-radius: 5px;
}

.lightbox:target {
	display: flex;
}

.lightbox .close {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 30px;
	color: white;
	text-decoration: none;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.lightbox .close:hover {
	background: rgba(255, 255, 255, 0.6);
	color: black;
}

.lightbox-title {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 16px;
	text-align: center;
	z-index: 1000;
}

.lightbox-next, .lightbox-prev {
	background-color: white;
	padding: var(--spacing-m);
	cursor: pointer;
}


/* Hebrew
-------------------------------------------------------------- */

.hebrew-ver body {
	direction: rtl;
	text-align: right;
}

.hebrew-ver h1, .hebrew-ver h2, .hebrew-ver h3, .hebrew-ver p {
	font-family: var(--hebrew-font);
}

.hebrew-ver .main-navigation li {
	padding: 0 0 0 var(--spacing-s);
}



/* Media queries
-------------------------------------------------------------- */
@media screen and (max-width: 1190px)  {

	header {
		width: 90%;
	}

	section {
		width: 90%;
	}

	footer	 {
		width: 90%;
	}
	
	.grid-half {
		width: 100%;
	}
	.grid-left {
		grid-template-columns: 40% auto;
	}
	
	
	.lightbox-next {
		position: relative;
		left: -50px;
		
	}
	.lightbox-prev {
		position: relative;
		right: -50px;
		
	}
	.hebrew-ver .lightbox-next {
		position: relative;
		right: -50px;
		
	}
	.hebrew-ver .lightbox-prev {
		position: relative;
		right: 50px;
		
	}

}

@media screen and (max-width: 650px)  {

	header {
		width: 90%;

	}

	section {
		width: 90%;
	}

	footer	 {
		width: 90%;
	}
	
	
	.grid-half {
		width: 100%;
	}
	
	.grid-left {
		grid-template-columns: 100%;
		grid-gap: 0;
	}
	
	
	.lightbox-next {
		position: relative;
		left: -50px;
		
	}
	.lightbox-prev {
		position: relative;
		right: -50px;
		
	}
	
	.hebrew-ver .lightbox-next {
		position: relative;
		right: -50px;
		
	}
	.hebrew-ver .lightbox-prev {
		position: relative;
		right: 50px;
		
	}
	.gallery {
		column-count: 2; /* Fewer columns on smaller screens */
	  }
  	.gallery-nav {
		display: grid;
		  grid-template-columns: repeat(2, 1fr); /* Three equal columns */
		  gap: 10px; /* Space between rows and columns */
		  padding: 10px;
  	}

}






