/*
 * Styles rcpernik.com's articles carried in <style> blocks of their own.
 * Article HTML is sanitised and <style> dropped, so each distinct block is
 * kept here, scoped to the articles that had it: their content is wrapped
 * in .rc-legacy-N by the import. Unscoped, the table rules of one article
 * would have reflowed every table on the site on a phone.
 */


/* ---- rc-legacy-1 ---- */
.rc-legacy-1 .team-section {
		max-width: 100%;
		padding: 20px;
		box-sizing: border-box;
		font-family: Arial, sans-serif;
	}
.rc-legacy-1 .team-category {
		margin-bottom: 30px;
	}
.rc-legacy-1 .team-category h3 {
		background: #f0f0f0;
		padding: 10px;
		margin-bottom: 10px;
		font-size: 1.2em;
		color: #000;
	}
.rc-legacy-1 .team-list {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}
.rc-legacy-1 .team-member {
		flex: 1 1 auto;
		background: #fafafa;
		border: 1px solid #ddd;
		padding: 10px;
		margin: 0;
		box-sizing: border-box;
		display: block;
	}
.rc-legacy-1 .team-member p {
		margin: 0;
		line-height: 1.5;
	}
.rc-legacy-1 .director {
		text-align: center;
		margin-bottom: 30px;
	}
.rc-legacy-1 .director img {
		width: 250px;
		height: auto;
		border-radius: 6px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	}
@media (max-width: 768px)  {
.rc-legacy-1 .team-list {
			flex-direction: column;
		}
.rc-legacy-1 .team-member {
			width: 100%;
		}
}

/* ---- rc-legacy-2 ---- */
.rc-legacy-2 .gallery-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: flex-start;
	padding: 10px;
}
.rc-legacy-2 .gallery-item {
	width: 48%;
	max-width: 500px;
	position: relative;
	overflow: hidden;
	border-radius: 5px;
}
.rc-legacy-2 .gallery-item img {
	width: 100%;
	display: block;
	border-radius: 5px;
}
.rc-legacy-2 .gallery-plus {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 20px;
	background: rgba(0, 0, 0, 0.6);
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
}
@media (max-width: 768px)  {
.rc-legacy-2 .gallery-item {
		width: 100%;
	}
}

/* ---- rc-legacy-3 ---- */
.rc-legacy-3 .gallery-container {
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
		justify-content: flex-start;
		padding: 10px;
	}
.rc-legacy-3 .gallery-item {
		width: 30%;
		max-width: 350px;
		position: relative;
		overflow: hidden;
		border-radius: 5px;
	}
.rc-legacy-3 .gallery-item img {
		width: 100%;
		display: block;
		border-radius: 5px;
	}
.rc-legacy-3 .gallery-plus {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		color: white;
		font-size: 20px;
		background: rgba(0, 0, 0, 0.6);
		width: 40px;
		height: 40px;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 50%;
	}
@media (max-width: 768px)  {
.rc-legacy-3 .gallery-item {
			width: 100%;
		}
}

/* ---- rc-legacy-4 ---- */
.rc-legacy-4 .gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 10px;
  }
.rc-legacy-4 .gallery-item {
    width: 23%;
    max-width: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    
  }
.rc-legacy-4 .gallery-item img {
    width: 100%;
    display: block;
    border-radius: 5px;
  }
.rc-legacy-4 .gallery-plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
  }
@media (max-width: 768px)  {
.rc-legacy-4 .gallery-item {
      width: 100%;
    }
}

/* ---- rc-legacy-5 ---- */
@media (max-width: 768px)  {
.rc-legacy-5 div[style*="width: 32%;"] {
      width: 100% !important;
      max-width: none !important;
    }
}

/* The article's inline positioning, which the sanitizer does not let through
   (position, top, left, transform): the "+" centred on each picture. */
.rc-legacy-5 div[style*="width: 32%;"] {
	position: relative;
}
.rc-legacy-5 div[style*="width: 32%;"] a > span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	justify-content: center;
	align-items: center;
}

/* ---- rc-legacy-6 ---- */
@media (max-width: 768px)  {
.rc-legacy-6 table,
.rc-legacy-6 tbody,
.rc-legacy-6 tr,
.rc-legacy-6 td {
      display: block;
      width: 100%;
    }
.rc-legacy-6 td {
      margin-bottom: 10px;
    }
.rc-legacy-6 td img {
      width: 100%;
      height: auto;
    }
}
