@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
@{
	string swiftVersion = ReadFile("/Files/Templates/Designs/Swift-v2/swift_version.txt");
	string lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
}
<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html style="border:0;margin:0;outline:0;padding:0" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" lang="@lang">
	<head>
		<!-- @swiftVersion -->
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="x-apple-disable-message-reformatting">
		<meta http-equiv="content-type" content="text/html;">
		<meta content="telephone=no" name="format-detection">

		<!--[if gte mso 9]>
		<xml>
			<o:OfficeDocumentSettings>
				<o:AllowPNG/>
				<o:PixelsPerInch>96</o:PixelsPerInch>
			</o:OfficeDocumentSettings>
		</xml>
		<![endif]-->
		<!--[if (gte mso 9)|(IE)]>
		<style type="text/css">
			table {
				border-collapse: collapse;
				border-spacing: 0;
				mso-table-lspace: 0pt !important;
				mso-table-rspace: 0pt !important;
			}
		</style>
		<![endif]-->

		<meta name="robots" content="noindex,nofollow">
		@if (Model.Item?.TryGetString("Title", out string title) ?? false) 
		{
			<title>@title</title>
			<meta property="og:title" content="@title">
		}
		<style type="text/css">
			* {
				box-sizing: border-box;
			}

			body {
				margin: 0;
				padding: 0;
			}

			html,
			body {
				font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
			}

			a {
				color: inherit !important;
			}

			table,
			td {
				mso-table-lspace: 0pt !important;
				mso-table-rspace: 0pt !important;
			}

			img {
				-ms-interpolation-mode: bicubic;
			}

			a[x-apple-data-detectors] {
				color: inherit !important;
				font-size: inherit !important;
				font-family: inherit !important;
				font-weight: inherit !important;
				line-height: inherit !important;
				text-decoration: inherit !important;
			}

			#MessageViewBody a {
				color: inherit !important;
				font-size: inherit !important;
				font-family: inherit !important;
				font-weight: inherit !important;
				line-height: inherit !important;
				text-decoration: inherit !important;
			}

			p {
				line-height: inherit;
			}

			.column p:first-of-type,
			.column h1:first-of-type,
			.column h2:first-of-type,
			.column h3:first-of-type {
				margin: 0;
			}

			.column p:last-of-type {
				margin-bottom: 0;
			}

			@@media (max-width:660px) {
				.icons-inner {
					text-align: center;
				}

				.icons-inner td {
					margin: 0 auto;
				}

				.row-content {
					width: 100% !important;
				}

				.column {
					display: inline-table;
				}
				
				.col-width-mobile-12 {
					width: 100%;
				}
				
				.col-width-mobile-6 {
					width: 50%;
				}
			}

			@@media all {
				.ExternalClass {
					width: 100%;
				}
		
				.ExternalClass,
				.ExternalClass p,
				.ExternalClass span,
				.ExternalClass font,
				.ExternalClass td,
				.ExternalClass div {
					line-height: 100%;
				}

				.apple-link a {
					color: inherit !important;
					font-family: inherit !important;
					font-size: inherit !important;
					font-weight: inherit !important;
					line-height: inherit !important;
					text-decoration: none !important;
				}
			}
		</style>
	</head>
	<body style="font-family:Arial,Helvetica Neue,Helvetica,sans-serif;border:0;margin:0;outline:0;padding:0;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:none;text-size-adjust:none;mso-line-height-rule:exactly;line-height:1;">
		<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;mso-line-height-rule:exactly;border:0;border-collapse:collapse;border-spacing:0;margin:0;outline:0;padding:0;" width="100%">
			<tbody>
				<tr>
					<td style="border:0;margin:0;outline:0;padding:0;">
						<span class="preheader" style="color:transparent;display:none;height:0;max-height:0;max-width:0;opacity:0;overflow:hidden;mso-hide:all;visibility:hidden;width:0;">
							{{EmailMarketing:Email.PreHeader.Clean}}
						</span>
						<div class="email-content-wrapper" role="presentation" style="border:0;margin:0;outline:0;padding:0;color:@(Model.ColorScheme?.ForegroundColor?.Hex);background-color:@(Model.ColorScheme?.BackgroundColor?.Hex);">
							@Model.Grid("Grid", "Email Grid", "default:true;sort:1", "Email")
						</div>
					</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>