/***************************************************************
*
* FONTS
*
****************************************************************/

@font-face
{
	font-family: 'Playfair Display';
	src: url('/fonts/PlayfairDisplay-Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

.quiltFont
{
	font-family: 'Playfair Display', serif;
	font-weight: bold;
}

/***************************************************************
*
* BODY / MAIN
*
****************************************************************/

body
{
	display: flex;
	flex-direction: column;
	min-height: 100vh; /* Full height of the viewport */
}

main {
	flex: 1;
}

/***************************************************************
*
* NAV
*
****************************************************************/

.nav-link
{
	color: #dddddd !important;
}

.nav-link:hover
{
	color: #ffffff !important;
}

/***************************************************************
*
* COLORS
*
****************************************************************/

.red
{
	color: #af1417;
}

/***************************************************************
*
* MAIN LINKS
*
****************************************************************/

main a
{
	color: #af1417;
	text-decoration: none;
}

/***************************************************************
*
* QUILT
*
****************************************************************/

.image-grid
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.image-container
{
	width: 12.5%; /* 8 columns: 100% / 8 = 12.5% */
	aspect-ratio: 1 / 1;
	overflow: hidden;
	cursor: pointer;
}

.image-container img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 767.98px)
{
	.image-container
	{
		width: 12.5%; /* 8 columns: 100% / 8 = 12.5% */
	}
}

.grid-border
{
	background-color: #af1417;
	border: 20px solid #e9ebd4;
	padding: 3px; /* Sdds space between the border and the grid */
}

/***************************************************************
*
* MODAL
*
****************************************************************/

/***************************************************************
*
* BUTTONS
*
****************************************************************/

.btn-primary
{
	background-color: #af1417 !important;
	color: #ffffff !important;
	border: none !important;
}

.btn-primary:hover
{
	background-color: #000000 !important;
	color: #ffffff !important;
	border: none !important;
}

/***************************************************************
*
* YOUTUBE
*
****************************************************************/

.youtube-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  cursor: pointer;
  background-color: #000;
  overflow: hidden;
}

.youtube-wrapper img,
.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-wrapper .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.youtube-wrapper .play-button::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 18px solid #000;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/***************************************************************
*
* GRID LOADER
*
****************************************************************/

.loading-bar-container {
	height: 6px;
	background-color: #eee;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
	border-radius: 3px;
}

.loading-bar {
	height: 100%;
	width: 0%;
	background-color: #007bff;
	transition: width 0.2s ease;
}

.fade-in {
	animation: fadeIn 0.6s ease forwards;
	opacity: 0;
}

@keyframes fadeIn {
	to {
		opacity: 1;
	}
}


/***************************************************************
*
* FOOTER
*
****************************************************************/

footer
{
	background-color: #000000 !important;
	color: #dddddd;
}

footer a
{
	color: #dddddd !important;
}

footer a:hover
{
	color: #ffffff !important;
}